models

package
v0.0.0-...-86e536e Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: GPL-3.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse struct {

	// code
	Code int32 `json:"code,omitempty"`

	// message
	Message string `json:"message,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

APIResponse is the response to an API call.

func (*APIResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*APIResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*APIResponse) Validate

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

Validate validates this Api response

type Competition

type Competition struct {

	// category
	Category *CompetitionCategory `json:"category,omitempty"`

	// date of the competition
	// Format: date
	EventDate strfmt.Date `json:"eventDate,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// range
	Range *Range `json:"range,omitempty"`

	// type
	Type *CompetitionType `json:"type,omitempty"`
}

Competition competition swagger:model Competition

func (*Competition) MarshalBinary

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

MarshalBinary interface implementation

func (*Competition) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Competition) Validate

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

Validate validates this competition

type CompetitionCategory

type CompetitionCategory struct {

	// code
	Code string `json:"code,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

CompetitionCategory competition category swagger:model CompetitionCategory

func (*CompetitionCategory) MarshalBinary

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

MarshalBinary interface implementation

func (*CompetitionCategory) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CompetitionCategory) Validate

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

Validate validates this competition category

type CompetitionType

type CompetitionType struct {

	// code
	Code string `json:"code,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

CompetitionType competition type swagger:model CompetitionType

func (*CompetitionType) MarshalBinary

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

MarshalBinary interface implementation

func (*CompetitionType) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CompetitionType) Validate

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

Validate validates this competition type

type HTMLResponse

type HTMLResponse struct {

	// payload
	Payload interface{} `json:"payload,omitempty"`

	// template
	Template string `json:"template,omitempty"`
}

HTMLResponse Html response swagger:model HtmlResponse

func (*HTMLResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*HTMLResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HTMLResponse) Validate

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

Validate validates this Html response

type LoginRequest

type LoginRequest struct {

	// login
	Login string `json:"login,omitempty"`

	// password
	Password string `json:"password,omitempty"`
}

LoginRequest login request swagger:model LoginRequest

func (*LoginRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginRequest) Validate

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

Validate validates this login request

type LoginResponse

type LoginResponse struct {

	// JWT token to be used in subsequent calls
	Token string `json:"token,omitempty"`

	// date to which the token is valid
	// Format: datetime
	ValidTo strfmt.DateTime `json:"validTo,omitempty"`
}

LoginResponse login response swagger:model LoginResponse

func (*LoginResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*LoginResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*LoginResponse) Validate

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

Validate validates this login response

type Principal

type Principal struct {

	// name
	Name string `json:"name,omitempty"`

	// raw token
	RawToken string `json:"rawToken,omitempty"`

	// roles
	Roles []string `json:"roles"`

	// valid to
	// Format: datetime
	ValidTo strfmt.DateTime `json:"validTo,omitempty"`
}

Principal principal swagger:model principal

func (*Principal) MarshalBinary

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

MarshalBinary interface implementation

func (*Principal) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Principal) Validate

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

Validate validates this principal

type Range

type Range struct {

	// shooting range active
	Active bool `json:"active,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// latitude
	Latitude float64 `json:"latitude,omitempty"`

	// longitude
	Longitude float64 `json:"longitude,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

Range range swagger:model Range

func (*Range) MarshalBinary

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

MarshalBinary interface implementation

func (*Range) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Range) Validate

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

Validate validates this range

type Situation

type Situation struct {

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// number
	Number int64 `json:"number,omitempty"`

	// list of situations
	Targets []*Target `json:"targets"`
}

Situation situation swagger:model Situation

func (*Situation) MarshalBinary

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

MarshalBinary interface implementation

func (*Situation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Situation) Validate

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

Validate validates this situation

type Target

type Target struct {

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// type
	Type *TargetType `json:"type,omitempty"`
}

Target target swagger:model Target

func (*Target) MarshalBinary

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

MarshalBinary interface implementation

func (*Target) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Target) Validate

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

Validate validates this target

type TargetType

type TargetType struct {

	// Number of required hits
	// Minimum: 1
	Hits int64 `json:"hits,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

TargetType target type swagger:model TargetType

func (*TargetType) MarshalBinary

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

MarshalBinary interface implementation

func (*TargetType) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TargetType) Validate

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

Validate validates this target type

type User

type User struct {

	// email
	Email string `json:"email,omitempty"`

	// first name
	FirstName string `json:"firstName,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// last name
	LastName string `json:"lastName,omitempty"`

	// password
	Password string `json:"password,omitempty"`

	// phone
	Phone string `json:"phone,omitempty"`

	// User Status
	UserStatus int32 `json:"userStatus,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

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