models

package
v0.0.0-...-3b1adbd Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PlayerRequestRoleRifler captures enum value "rifler"
	PlayerRequestRoleRifler string = "rifler"

	// PlayerRequestRoleIgl captures enum value "igl"
	PlayerRequestRoleIgl string = "igl"

	// PlayerRequestRoleSupport captures enum value "support"
	PlayerRequestRoleSupport string = "support"

	// PlayerRequestRoleAwper captures enum value "awper"
	PlayerRequestRoleAwper string = "awper"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AllRosters

type AllRosters []*Roster

AllRosters all rosters swagger:model AllRosters

func (AllRosters) Validate

func (m AllRosters) Validate(formats strfmt.Registry) error

Validate validates this all rosters

type AuthRequest

type AuthRequest struct {

	// login
	// Required: true
	Login *string `json:"login"`

	// password
	// Required: true
	Password *string `json:"password"`
}

AuthRequest auth request swagger:model AuthRequest

func (*AuthRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*AuthRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AuthRequest) Validate

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

Validate validates this auth request

type AuthToken

type AuthToken struct {

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

AuthToken auth token swagger:model AuthToken

func (*AuthToken) MarshalBinary

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

MarshalBinary interface implementation

func (*AuthToken) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AuthToken) Validate

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

Validate validates this auth token

type Error

type Error struct {

	// code
	// Required: true
	Code *int64 `json:"code"`

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

Error error swagger:model Error

func (*Error) MarshalBinary

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

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Error) Validate

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

Validate validates this error

type Player

type Player struct {

	// alias
	// Required: true
	Alias *string `json:"alias"`

	// first name
	// Required: true
	FirstName *string `json:"first_name"`

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

	// last name
	// Required: true
	LastName *string `json:"last_name"`

	// role
	Role string `json:"role,omitempty"`
}

Player player swagger:model Player

func (*Player) MarshalBinary

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

MarshalBinary interface implementation

func (*Player) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Player) Validate

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

Validate validates this player

type PlayerRequest

type PlayerRequest struct {

	// alias
	// Required: true
	Alias *string `json:"alias"`

	// first name
	// Required: true
	FirstName *string `json:"first_name"`

	// last name
	// Required: true
	LastName *string `json:"last_name"`

	// role
	// Required: true
	// Enum: [rifler igl support awper]
	Role *string `json:"role"`
}

PlayerRequest player request swagger:model PlayerRequest

func (*PlayerRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*PlayerRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PlayerRequest) Validate

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

Validate validates this player request

type RearrangeRequest

type RearrangeRequest struct {

	// to active
	ToActive []int64 `json:"to_active"`

	// to benched
	ToBenched []int64 `json:"to_benched"`
}

RearrangeRequest rearrange request swagger:model RearrangeRequest

func (*RearrangeRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*RearrangeRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RearrangeRequest) Validate

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

Validate validates this rearrange request

type Roster

type Roster struct {

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

	// players
	// Required: true
	Players *RosterPlayers `json:"players"`
}

Roster roster swagger:model Roster

func (*Roster) MarshalBinary

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

MarshalBinary interface implementation

func (*Roster) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Roster) Validate

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

Validate validates this roster

type RosterPlayers

type RosterPlayers struct {

	// active
	Active []*Player `json:"active,omitempty"`

	// benched
	Benched []*Player `json:"benched,omitempty"`
}

RosterPlayers roster players swagger:model RosterPlayers

func (*RosterPlayers) MarshalBinary

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

MarshalBinary interface implementation

func (*RosterPlayers) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RosterPlayers) Validate

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

Validate validates this roster players

Jump to

Keyboard shortcuts

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