models

package
v0.0.0-...-ebf7ab8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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

func (m *APIError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*APIError) UnmarshalBinary

func (m *APIError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*APIError) Validate

func (m *APIError) Validate(formats strfmt.Registry) error

Validate validates this Api error

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

func (m *Health) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Health) UnmarshalBinary

func (m *Health) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Health) Validate

func (m *Health) Validate(formats strfmt.Registry) error

Validate validates this health

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

func (m *Links) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Links) UnmarshalBinary

func (m *Links) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Links) Validate

func (m *Links) Validate(formats strfmt.Registry) error

Validate validates this links

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

func (m *Tweet) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Tweet) UnmarshalBinary

func (m *Tweet) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Tweet) Validate

func (m *Tweet) Validate(formats strfmt.Registry) error

Validate validates this tweet

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

func (*TweetAttributes) Validate

func (m *TweetAttributes) Validate(formats strfmt.Registry) error

Validate validates this tweet attributes

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

func (*TweetCreation) Validate

func (m *TweetCreation) Validate(formats strfmt.Registry) error

Validate validates this tweet creation

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

func (*TweetCreationResponse) Validate

func (m *TweetCreationResponse) Validate(formats strfmt.Registry) error

Validate validates this tweet creation response

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

func (*TweetDetailsListResponse) Validate

func (m *TweetDetailsListResponse) Validate(formats strfmt.Registry) error

Validate validates this tweet details list response

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

func (*TweetDetailsResponse) Validate

func (m *TweetDetailsResponse) Validate(formats strfmt.Registry) error

Validate validates this tweet details response

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

func (*TweetUpdate) Validate

func (m *TweetUpdate) Validate(formats strfmt.Registry) error

Validate validates this tweet update

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址