models

package
v0.0.0-...-f4d84f6 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

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

Variables

This section is empty.

Functions

This section is empty.

Types

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 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

Jump to

Keyboard shortcuts

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