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
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
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
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
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
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
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
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 ¶
MarshalBinary interface implementation
func (*Principal) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Range) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Situation) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Target) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation