models

package
v0.0.0-...-e797cc8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateStream

type CreateStream struct {

	// track
	// Required: true
	Track *string `json:"track"`
}

CreateStream create stream swagger:model CreateStream

func (*CreateStream) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateStream) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateStream) Validate

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

Validate validates this create stream

type CreateTopic

type CreateTopic struct {

	// is active
	// Required: true
	IsActive *bool `json:"isActive"`

	// name
	// Required: true
	Name *string `json:"name"`
}

CreateTopic create topic swagger:model CreateTopic

func (*CreateTopic) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateTopic) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateTopic) Validate

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

Validate validates this create topic

type Credentials

type Credentials struct {

	// email
	// Required: true
	Email *string `json:"email"`

	// password
	// Required: true
	// Format: password
	Password *strfmt.Password `json:"password"`
}

Credentials credentials swagger:model Credentials

func (*Credentials) MarshalBinary

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

MarshalBinary interface implementation

func (*Credentials) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Credentials) Validate

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

Validate validates this credentials

type DefaultError

type DefaultError struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

DefaultError default error swagger:model DefaultError

func (*DefaultError) MarshalBinary

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

MarshalBinary interface implementation

func (*DefaultError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DefaultError) Validate

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

Validate validates this default error

type DefaultSuccess

type DefaultSuccess struct {

	// message
	// Required: true
	Message *string `json:"message"`
}

DefaultSuccess default success swagger:model DefaultSuccess

func (*DefaultSuccess) MarshalBinary

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

MarshalBinary interface implementation

func (*DefaultSuccess) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DefaultSuccess) Validate

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

Validate validates this default success

type SavedTweet

type SavedTweet struct {
	Tweet

	// streams
	Streams []*Stream `json:"streams"`
}

SavedTweet saved tweet swagger:model SavedTweet

func (*SavedTweet) MarshalBinary

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

MarshalBinary interface implementation

func (SavedTweet) MarshalJSON

func (m SavedTweet) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*SavedTweet) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SavedTweet) UnmarshalJSON

func (m *SavedTweet) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*SavedTweet) Validate

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

Validate validates this saved tweet

type Stream

type Stream struct {

	// created at
	// Required: true
	CreatedAt *string `json:"createdAt"`

	// id
	// Required: true
	ID *int64 `json:"id"`

	// track
	// Required: true
	Track *string `json:"track"`
}

Stream stream swagger:model Stream

func (*Stream) MarshalBinary

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

MarshalBinary interface implementation

func (*Stream) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Stream) Validate

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

Validate validates this stream

type Topic

type Topic struct {

	// created at
	// Required: true
	CreatedAt *string `json:"createdAt"`

	// id
	// Required: true
	ID *int64 `json:"id"`

	// is active
	// Required: true
	IsActive *bool `json:"isActive"`

	// name
	// Required: true
	Name *string `json:"name"`
}

Topic topic swagger:model Topic

func (*Topic) MarshalBinary

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

MarshalBinary interface implementation

func (*Topic) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Topic) Validate

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

Validate validates this topic

type Tweet

type Tweet struct {

	// created at
	// Required: true
	CreatedAt *string `json:"createdAt"`

	// full text
	// Required: true
	FullText *string `json:"fullText"`

	// id
	// Required: true
	ID *int64 `json:"id"`

	// twitter Id
	// Required: true
	TwitterID *int64 `json:"twitterId"`

	// twitter user Id
	// Required: true
	TwitterUserID *int64 `json:"twitterUserId"`

	// twitter username
	// Required: true
	TwitterUsername *string `json:"twitterUsername"`
}

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 User

type User struct {

	// email
	// Required: true
	Email *string `json:"email"`

	// id
	// Required: true
	ID *int64 `json:"id"`

	// token
	// Required: true
	Token *string `json:"token"`
}

User user swagger:model User

func (*User) MarshalBinary

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

MarshalBinary interface implementation

func (*User) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*User) Validate

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

Validate validates this user

Jump to

Keyboard shortcuts

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