Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// email
Email string `json:"email,omitempty"`
// username
Username string `json:"username,omitempty"`
}
Account account
swagger:model Account
func (*Account) ContextValidate ¶
ContextValidate validates this account based on context it is used
func (*Account) MarshalBinary ¶
MarshalBinary interface implementation
func (*Account) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type AccountCreated ¶
type AccountCreated struct {
// password
Password string `json:"password,omitempty"`
// prefix
Prefix string `json:"prefix,omitempty"`
}
AccountCreated account created
swagger:model AccountCreated
func (*AccountCreated) ContextValidate ¶
ContextValidate validates this account created based on context it is used
func (*AccountCreated) MarshalBinary ¶
func (m *AccountCreated) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AccountCreated) UnmarshalBinary ¶
func (m *AccountCreated) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AccountUpdate ¶
type AccountUpdate struct {
// status
Status string `json:"status,omitempty"`
// username
Username string `json:"username,omitempty"`
}
AccountUpdate account update
swagger:model AccountUpdate
func (*AccountUpdate) ContextValidate ¶
ContextValidate validates this account update based on context it is used
func (*AccountUpdate) MarshalBinary ¶
func (m *AccountUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AccountUpdate) UnmarshalBinary ¶
func (m *AccountUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AccountUpdated ¶
type AccountUpdated struct {
// status
Status string `json:"status,omitempty"`
}
AccountUpdated account updated
swagger:model AccountUpdated
func (*AccountUpdated) ContextValidate ¶
ContextValidate validates this account updated based on context it is used
func (*AccountUpdated) MarshalBinary ¶
func (m *AccountUpdated) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AccountUpdated) UnmarshalBinary ¶
func (m *AccountUpdated) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Error ¶
type Error struct {
// code
Code int64 `json:"code,omitempty"`
// message
Message string `json:"message,omitempty"`
}
Error error
swagger:model Error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Link ¶
type Link struct {
// long url
LongURL string `json:"long_url,omitempty"`
}
Link link
swagger:model Link
func (*Link) ContextValidate ¶
ContextValidate validates this link based on context it is used
func (*Link) MarshalBinary ¶
MarshalBinary interface implementation
func (*Link) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type LinkCreated ¶
type LinkCreated struct {
// short url
ShortURL string `json:"short_url,omitempty"`
// short url key
ShortURLKey string `json:"short_url_key,omitempty"`
}
LinkCreated link created
swagger:model LinkCreated
func (*LinkCreated) ContextValidate ¶
ContextValidate validates this link created based on context it is used
func (*LinkCreated) MarshalBinary ¶
func (m *LinkCreated) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LinkCreated) UnmarshalBinary ¶
func (m *LinkCreated) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LinkUpdate ¶
type LinkUpdate struct {
// new long url
NewLongURL string `json:"new_long_url,omitempty"`
// short url key
ShortURLKey string `json:"short_url_key,omitempty"`
// status
Status string `json:"status,omitempty"`
// tracking status
TrackingStatus string `json:"tracking_status,omitempty"`
}
LinkUpdate link update
swagger:model LinkUpdate
func (*LinkUpdate) ContextValidate ¶
ContextValidate validates this link update based on context it is used
func (*LinkUpdate) MarshalBinary ¶
func (m *LinkUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LinkUpdate) UnmarshalBinary ¶
func (m *LinkUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LinkUpdated ¶
type LinkUpdated struct {
// long url
LongURL string `json:"long_url,omitempty"`
// status
Status string `json:"status,omitempty"`
// tracking status
TrackingStatus string `json:"tracking_status,omitempty"`
}
LinkUpdated link updated
swagger:model LinkUpdated
func (*LinkUpdated) ContextValidate ¶
ContextValidate validates this link updated based on context it is used
func (*LinkUpdated) MarshalBinary ¶
func (m *LinkUpdated) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LinkUpdated) UnmarshalBinary ¶
func (m *LinkUpdated) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LoginInfo ¶
type LoginInfo struct {
// password
Password string `json:"password,omitempty"`
// username
Username string `json:"username,omitempty"`
}
LoginInfo login info
swagger:model LoginInfo
func (*LoginInfo) ContextValidate ¶
ContextValidate validates this login info based on context it is used
func (*LoginInfo) MarshalBinary ¶
MarshalBinary interface implementation
func (*LoginInfo) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type LoginSuccess ¶
type LoginSuccess struct {
// success
Success bool `json:"success,omitempty"`
// token
Token string `json:"token,omitempty"`
}
LoginSuccess login success
swagger:model LoginSuccess
func (*LoginSuccess) ContextValidate ¶
ContextValidate validates this login success based on context it is used
func (*LoginSuccess) MarshalBinary ¶
func (m *LoginSuccess) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LoginSuccess) UnmarshalBinary ¶
func (m *LoginSuccess) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation