Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingValues = errors.New("required values are missing") ErrInvalidKey = errors.New("key is invalid") ErrServiceNotFound = errors.New("cannot find requested service") ErrInvalidLVType = errors.New("location value type is invalid") ErrTooManyData = errors.New("too many data request(no more than 1000)") ErrTooManyRequest = errors.New("too many request") ErrServerError = errors.New("server error occurred") ErrDBConnection = errors.New("database connection error occurred") ErrSQLQuery = errors.New("sql query error occurred") ErrKeyRestricted = errors.New("key is restricted by administrator") ErrMissingData = errors.New("cannot find data") )
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
type NeisClient ¶
type NeisClient struct {
// contains filtered or unexported fields
}
func NewNeisClient ¶
func NewNeisClient(key string) *NeisClient
NewNeisClient returns new neis api wrapper client. Key is optional. If key is missing(""), it will use sample key(5 data only).
func (NeisClient) GetSchoolInfo ¶
func (c NeisClient) GetSchoolInfo(officeCode string, schoolCode string, schoolName string, schoolType string, location string, foundationName string) ([]School, error)
GetSchoolInfo returns Schools All arguments are optional. If arguments are missing(""), it will return all schools.
type Parameters ¶
type School ¶
type School struct {
OfficeCode string
OfficeName string
Code string
Name string
EnglishName string
Type string
ZipCode string
Address string
DetailedAddress string
TelNumber string
Homepage string
Gender string
FaxNumber string
HighSchoolType string
SPHighSchoolType string
FoundationDate string
FoundationDay string
}
Click to show internal directories.
Click to hide internal directories.