Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct { // code Code int64 `json:"code,omitempty"` // a (key, value) map. Details interface{} `json:"details,omitempty"` // message Message string `json:"message,omitempty"` }
func (*APIResponse) ContextValidate ¶
ContextValidate validates this Api response based on context it is used
func (*APIResponse) MarshalBinary ¶
func (m *APIResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIResponse) UnmarshalBinary ¶
func (m *APIResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type APIResponseSignUp ¶
type APIResponseSignUp struct { // code Code int32 `json:"code,omitempty"` // token Token *Token `json:"token,omitempty"` }
func (*APIResponseSignUp) ContextValidate ¶
ContextValidate validate this Api response sign up based on the context it is used
func (*APIResponseSignUp) MarshalBinary ¶
func (m *APIResponseSignUp) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*APIResponseSignUp) UnmarshalBinary ¶
func (m *APIResponseSignUp) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Login ¶
type Login struct { // email // Required: true Email *string `json:"email"` // password // Required: true Password *string `json:"password"` }
func (*Login) ContextValidate ¶
ContextValidate validates this login based on context it is used
func (*Login) MarshalBinary ¶
MarshalBinary interface implementation
func (*Login) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Pagination ¶
type Pagination struct { // items Items interface{} `json:"items,omitempty"` // page Page int64 `json:"page,omitempty"` // page count PageCount int64 `json:"pageCount,omitempty"` // page size PageSize int64 `json:"pageSize,omitempty"` // total count TotalCount int64 `json:"totalCount,omitempty"` }
func (*Pagination) ContextValidate ¶
ContextValidate validates this pagination based on context it is used
func (*Pagination) MarshalBinary ¶
func (m *Pagination) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Pagination) UnmarshalBinary ¶
func (m *Pagination) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SignUp ¶
type SignUp struct { // email // Required: true Email *string `json:"email"` // firstname // Required: true Firstname *string `json:"firstname"` // lastname // Required: true Lastname *string `json:"lastname"` // password // Required: true Password *string `json:"password"` }
func (*SignUp) ContextValidate ¶
ContextValidate validates this sign up based on context it is used
func (*SignUp) MarshalBinary ¶
MarshalBinary interface implementation
func (*SignUp) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SoleToken ¶
type SoleToken struct { // code Code int32 `json:"code,omitempty"` // token Token string `json:"token,omitempty"` }
func (*SoleToken) ContextValidate ¶
ContextValidate validates this sole token based on context it is used
func (*SoleToken) MarshalBinary ¶
MarshalBinary interface implementation
func (*SoleToken) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Token ¶
type Token struct { // access token AccessToken string `json:"access_token,omitempty"` // refresh token RefreshToken string `json:"refresh_token,omitempty"` }
func (*Token) ContextValidate ¶
ContextValidate validates this token based on context it is used
func (*Token) MarshalBinary ¶
MarshalBinary interface implementation
func (*Token) UnmarshalBinary ¶
UnmarshalBinary interface implementation