models

package
v0.0.0-...-bebabf7 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// OkResultOk captures enum value "ok"
	OkResultOk string = "ok"
)
View Source
const (

	// PingPingPong captures enum value "pong"
	PingPingPong string = "pong"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Authorize

type Authorize struct {

	// data
	Data string `json:"data,omitempty"`
}

Authorize authorize

swagger:model authorize

func (*Authorize) ContextValidate

func (m *Authorize) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this authorize based on context it is used

func (*Authorize) MarshalBinary

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

MarshalBinary interface implementation

func (*Authorize) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Authorize) Validate

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

Validate validates this authorize

type Credentials

type Credentials struct {

	// client id
	// Required: true
	ClientID *string `json:"client_id"`

	// client secret
	// Required: true
	ClientSecret *string `json:"client_secret"`

	// domain
	// Required: true
	Domain *string `json:"domain"`
}

Credentials credentials

swagger:model credentials

func (*Credentials) ContextValidate

func (m *Credentials) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this credentials based on context it is used

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 Error

type Error struct {

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

	// error
	// Required: true
	Error *bool `json:"error"`

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

Error error

swagger:model error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

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 Metrics

type Metrics map[string]float64

Metrics metrics

swagger:model metrics

func (Metrics) ContextValidate

func (m Metrics) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this metrics based on context it is used

func (Metrics) Validate

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

Validate validates this metrics

type Ok

type Ok struct {

	// Result of method execution. `ok` in case of success
	// Required: true
	// Enum: [ok]
	Result *string `json:"result"`
}

Ok ok

swagger:model ok

func (*Ok) ContextValidate

func (m *Ok) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ok based on context it is used

func (*Ok) MarshalBinary

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

MarshalBinary interface implementation

func (*Ok) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Ok) Validate

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

Validate validates this ok

type Ping

type Ping struct {

	// Result of method execution. `pong` in case of success
	// Required: true
	// Enum: [pong]
	Ping *string `json:"ping"`
}

Ping ping

swagger:model ping

func (*Ping) ContextValidate

func (m *Ping) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ping based on context it is used

func (*Ping) MarshalBinary

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

MarshalBinary interface implementation

func (*Ping) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Ping) Validate

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

Validate validates this ping

type Token

type Token struct {

	// access token
	// Required: true
	AccessToken *string `json:"access_token"`

	// expires in
	// Required: true
	ExpiresIn *float64 `json:"expires_in"`

	// refresh token
	// Required: true
	RefreshToken *string `json:"refresh_token"`

	// scope
	// Required: true
	Scope *string `json:"scope"`

	// token type
	// Required: true
	TokenType *string `json:"token_type"`
}

Token token

swagger:model token

func (*Token) ContextValidate

func (m *Token) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this token based on context it is used

func (*Token) MarshalBinary

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

MarshalBinary interface implementation

func (*Token) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Token) Validate

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

Validate validates this token

type UserInfo

type UserInfo struct {

	// client id
	ClientID string `json:"client_id,omitempty"`

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

	// emails
	Emails []string `json:"emails"`

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

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

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

	// picture
	Picture string `json:"picture,omitempty"`

	// psuid
	Psuid string `json:"psuid,omitempty"`

	// token
	Token *Token `json:"token,omitempty"`

	// uid
	UID string `json:"uid,omitempty"`

	// verified email
	VerifiedEmail bool `json:"verified_email,omitempty"`
}

UserInfo user info

swagger:model userInfo

func (*UserInfo) ContextValidate

func (m *UserInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this user info based on the context it is used

func (*UserInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*UserInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*UserInfo) Validate

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

Validate validates this user info

type Validate

type Validate struct {

	// data
	Data string `json:"data,omitempty"`
}

Validate validate

swagger:model validate

func (*Validate) ContextValidate

func (m *Validate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this validate based on context it is used

func (*Validate) MarshalBinary

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

MarshalBinary interface implementation

func (*Validate) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Validate) Validate

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

Validate validates this validate

type VkUserInfo

type VkUserInfo struct {

	// access token
	AccessToken string `json:"access_token,omitempty"`

	// expires in
	ExpiresIn int64 `json:"expires_in,omitempty"`

	// user id
	UserID int64 `json:"user_id,omitempty"`
}

VkUserInfo vk user info

swagger:model vkUserInfo

func (*VkUserInfo) ContextValidate

func (m *VkUserInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this vk user info based on context it is used

func (*VkUserInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*VkUserInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*VkUserInfo) Validate

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

Validate validates this vk user info

Jump to

Keyboard shortcuts

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