models

package
v0.0.0-...-b394ddd Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

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

	// message
	// Example: Explicit error message
	// Required: true
	Message *string `json:"message"`

	// status
	// Example: Internal Server Error
	// Required: true
	Status *string `json:"status"`
}

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 Principal

type Principal string

Principal principal

swagger:model principal

func (Principal) ContextValidate

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

ContextValidate validates this principal based on context it is used

func (Principal) Validate

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

Validate validates this principal

type Token

type Token struct {

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

	// expires at
	// Format: date-time
	ExpiresAt strfmt.DateTime `json:"expiresAt,omitempty"`

	// issued at
	// Format: date-time
	IssuedAt strfmt.DateTime `json:"issuedAt,omitempty"`

	// refresh token
	RefreshToken string `json:"refreshToken,omitempty"`
}

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 TokenInfo

type TokenInfo struct {

	// expires at
	// Format: date-time
	ExpiresAt strfmt.DateTime `json:"expiresAt,omitempty"`

	// issued at
	// Format: date-time
	IssuedAt strfmt.DateTime `json:"issuedAt,omitempty"`

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

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

TokenInfo token info

swagger:model TokenInfo

func (*TokenInfo) ContextValidate

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

ContextValidate validates this token info based on context it is used

func (*TokenInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*TokenInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*TokenInfo) Validate

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

Validate validates this token info

Jump to

Keyboard shortcuts

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