Documentation
¶
Index ¶
Constants ¶
const ( // HealthStatusUp captures enum value "up" HealthStatusUp string = "up" // HealthStatusDown captures enum value "down" HealthStatusDown string = "down" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type APIError struct {
// error code
ErrorCode string `json:"error_code,omitempty"`
// error message
ErrorMessage string `json:"error_message,omitempty"`
}
APIError Api error swagger:model ApiError
func (*APIError) MarshalBinary ¶
MarshalBinary interface implementation
func (*APIError) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Health ¶
type Health struct {
// Status of the service. Can either be `up` or `down`.
// Enum: [up down]
Status string `json:"status,omitempty"`
}
Health health swagger:model Health
func (*Health) MarshalBinary ¶
MarshalBinary interface implementation
func (*Health) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Links ¶
type Links struct {
// Link to the first resource in the list
First string `json:"first,omitempty"`
// Link to the last resource in the list
Last string `json:"last,omitempty"`
// Link to the next resource in the list
Next string `json:"next,omitempty"`
// Link to the previous resource in the list
Prev string `json:"prev,omitempty"`
// Link to this resource type
Self string `json:"self,omitempty"`
}
Links links swagger:model Links
func (*Links) MarshalBinary ¶
MarshalBinary interface implementation
func (*Links) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Tweet ¶
type Tweet struct {
// attributes
// Required: true
Attributes *TweetAttributes `json:"attributes"`
// created on
CreatedOn *int64 `json:"created_on,omitempty"`
// Unique resource ID
// Pattern: ^[[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$
ID string `json:"id,omitempty"`
// modified on
ModifiedOn *int64 `json:"modified_on,omitempty"`
// Name of the resource tag
// Required: true
// Pattern: ^[A-Z a-z_]*$
Tag *string `json:"tag"`
}
Tweet tweet swagger:model Tweet
func (*Tweet) MarshalBinary ¶
MarshalBinary interface implementation
func (*Tweet) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type TweetAttributes ¶
type TweetAttributes struct {
// Tweet message
// Required: true
// Pattern: ^[A-Z a-z_]*$
Message *string `json:"message"`
// Unique ID of the user this resource is created by
// Pattern: ^[[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}$
UserID string `json:"user_id,omitempty"`
}
TweetAttributes tweet attributes swagger:model TweetAttributes
func (*TweetAttributes) MarshalBinary ¶
func (m *TweetAttributes) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TweetAttributes) UnmarshalBinary ¶
func (m *TweetAttributes) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TweetCreation ¶
type TweetCreation struct {
// data
Data *Tweet `json:"data,omitempty"`
}
TweetCreation tweet creation swagger:model TweetCreation
func (*TweetCreation) MarshalBinary ¶
func (m *TweetCreation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TweetCreation) UnmarshalBinary ¶
func (m *TweetCreation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TweetCreationResponse ¶
type TweetCreationResponse struct {
// data
Data *Tweet `json:"data,omitempty"`
// links
Links *Links `json:"links,omitempty"`
}
TweetCreationResponse tweet creation response swagger:model TweetCreationResponse
func (*TweetCreationResponse) MarshalBinary ¶
func (m *TweetCreationResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TweetCreationResponse) UnmarshalBinary ¶
func (m *TweetCreationResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TweetDetailsListResponse ¶
type TweetDetailsListResponse struct {
// data
Data []*Tweet `json:"data"`
// links
Links *Links `json:"links,omitempty"`
}
TweetDetailsListResponse tweet details list response swagger:model TweetDetailsListResponse
func (*TweetDetailsListResponse) MarshalBinary ¶
func (m *TweetDetailsListResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TweetDetailsListResponse) UnmarshalBinary ¶
func (m *TweetDetailsListResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TweetDetailsResponse ¶
type TweetDetailsResponse struct {
// data
Data *Tweet `json:"data,omitempty"`
// links
Links *Links `json:"links,omitempty"`
}
TweetDetailsResponse tweet details response swagger:model TweetDetailsResponse
func (*TweetDetailsResponse) MarshalBinary ¶
func (m *TweetDetailsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TweetDetailsResponse) UnmarshalBinary ¶
func (m *TweetDetailsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type TweetUpdate ¶
type TweetUpdate struct {
// data
Data *Tweet `json:"data,omitempty"`
}
TweetUpdate tweet update swagger:model TweetUpdate
func (*TweetUpdate) MarshalBinary ¶
func (m *TweetUpdate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*TweetUpdate) UnmarshalBinary ¶
func (m *TweetUpdate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation