Documentation ¶
Index ¶
- type Body
- type Days
- type EchoResponse
- type Employee
- func (o *Employee) GetAddress() string
- func (o *Employee) GetAge() int64
- func (o *Employee) GetBirthday() types.Date
- func (o *Employee) GetBirthtime() time.Time
- func (o *Employee) GetBoss() *Person
- func (o *Employee) GetDepartment() string
- func (o *Employee) GetDependents() []Person
- func (o *Employee) GetHiredAt() string
- func (o *Employee) GetJoiningDay() Days
- func (o *Employee) GetName() string
- func (o *Employee) GetPersonType() string
- func (o *Employee) GetSalary() int
- func (o *Employee) GetUID() string
- func (o *Employee) GetWorkingDays() []Days
- func (e Employee) MarshalJSON() ([]byte, error)
- func (e *Employee) UnmarshalJSON(data []byte) error
- type Input
- type Person
- func (o *Person) GetAddress() string
- func (o *Person) GetAge() int64
- func (o *Person) GetBirthday() types.Date
- func (o *Person) GetBirthtime() time.Time
- func (o *Person) GetName() string
- func (o *Person) GetPersonType() string
- func (o *Person) GetUID() string
- func (p Person) MarshalJSON() ([]byte, error)
- func (p *Person) UnmarshalJSON(data []byte) error
- type QueryParameter
- type ServerResponse
- type SuiteCode
- type Validate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Days ¶
type Days string
Days - A string enum representing days of the week
func (*Days) UnmarshalJSON ¶
type EchoResponse ¶
type EchoResponse struct { Body map[string]Body `json:"body,omitempty"` Headers map[string]string `json:"headers,omitempty"` Method *string `json:"method,omitempty"` // relativePath Path *string `json:"path,omitempty"` Query map[string]QueryParameter `json:"query,omitempty"` UploadCount *int `json:"uploadCount,omitempty"` }
EchoResponse - Raw http Request info
func (*EchoResponse) GetBody ¶
func (o *EchoResponse) GetBody() map[string]Body
func (*EchoResponse) GetHeaders ¶
func (o *EchoResponse) GetHeaders() map[string]string
func (*EchoResponse) GetMethod ¶
func (o *EchoResponse) GetMethod() *string
func (*EchoResponse) GetPath ¶
func (o *EchoResponse) GetPath() *string
func (*EchoResponse) GetQuery ¶
func (o *EchoResponse) GetQuery() map[string]QueryParameter
func (*EchoResponse) GetUploadCount ¶
func (o *EchoResponse) GetUploadCount() *int
type Employee ¶
type Employee struct { Address string `json:"address"` Age int64 `json:"age"` Birthday types.Date `json:"birthday"` Birthtime time.Time `json:"birthtime"` Boss *Person `json:"boss,omitempty"` Department string `json:"department"` Dependents []Person `json:"dependents"` HiredAt string `json:"hiredAt"` // A string enum representing days of the week JoiningDay Days `json:"joiningDay"` Name string `json:"name"` PersonType string `json:"personType"` Salary int `json:"salary"` UID string `json:"uid"` WorkingDays []Days `json:"workingDays"` }
func (*Employee) GetAddress ¶
func (*Employee) GetBirthday ¶
func (*Employee) GetBirthtime ¶
func (*Employee) GetDepartment ¶
func (*Employee) GetDependents ¶
func (*Employee) GetHiredAt ¶
func (*Employee) GetJoiningDay ¶
func (*Employee) GetPersonType ¶
func (*Employee) GetWorkingDays ¶
func (Employee) MarshalJSON ¶
func (*Employee) UnmarshalJSON ¶
type Person ¶
type Person struct { Address string `json:"address"` Age int64 `json:"age"` Birthday types.Date `json:"birthday"` Birthtime time.Time `json:"birthtime"` Name string `json:"name"` PersonType string `json:"personType"` UID string `json:"uid"` }
func (*Person) GetAddress ¶
func (*Person) GetBirthday ¶
func (*Person) GetBirthtime ¶
func (*Person) GetPersonType ¶
func (Person) MarshalJSON ¶
func (*Person) UnmarshalJSON ¶
type QueryParameter ¶
type QueryParameter struct {
Key *string `json:"key,omitempty"`
}
QueryParameter - Query parameter key value pair echoed back from the server.
func (*QueryParameter) GetKey ¶
func (o *QueryParameter) GetKey() *string
type ServerResponse ¶
type ServerResponse struct { Message *string `json:"Message,omitempty"` Input map[string]Input `json:"input,omitempty"` Passed bool `json:"passed"` }
func (*ServerResponse) GetInput ¶
func (o *ServerResponse) GetInput() map[string]Input
func (*ServerResponse) GetMessage ¶
func (o *ServerResponse) GetMessage() *string
func (*ServerResponse) GetPassed ¶
func (o *ServerResponse) GetPassed() bool
type SuiteCode ¶
type SuiteCode int64
SuiteCode - A integer based enum representing a Suite in a game of cards
func (*SuiteCode) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.