models

package module
v0.0.0-...-29ebd7a Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 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 APIResponse

type APIResponse struct {

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

APIResponse An object that is return in all cases of failures.

swagger:model ApiResponse

func (*APIResponse) ContextValidate

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

ContextValidate validates this Api response based on context it is used

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 Common

type Common struct {

	// truncated body
	TruncatedBody bool `json:"TruncatedBody,omitempty"`

	// body
	Body string `json:"body,omitempty"`

	// headers
	Headers []*Header `json:"headers"`

	// version
	Version string `json:"version,omitempty"`
}

Common common

swagger:model Common

func (*Common) ContextValidate

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

ContextValidate validate this common based on the context it is used

func (*Common) MarshalBinary

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

MarshalBinary interface implementation

func (*Common) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Common) Validate

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

Validate validates this common

type Header struct {

	// key
	Key string `json:"key,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

Header header

swagger:model Header

func (*Header) ContextValidate

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

ContextValidate validates this header based on context it is used

func (*Header) MarshalBinary

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

MarshalBinary interface implementation

func (*Header) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Header) Validate

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

Validate validates this header

type Request

type Request struct {

	// common
	Common *Common `json:"common,omitempty"`

	// host
	Host string `json:"host,omitempty"`

	// method
	Method string `json:"method,omitempty"`

	// path
	Path string `json:"path,omitempty"`
}

Request request

swagger:model Request

func (*Request) ContextValidate

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

ContextValidate validate this request based on the context it is used

func (*Request) MarshalBinary

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

MarshalBinary interface implementation

func (*Request) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Request) Validate

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

Validate validates this request

type Response

type Response struct {

	// common
	Common *Common `json:"common,omitempty"`

	// status code
	StatusCode string `json:"statusCode,omitempty"`
}

Response response

swagger:model Response

func (*Response) ContextValidate

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

ContextValidate validate this response based on the context it is used

func (*Response) MarshalBinary

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

MarshalBinary interface implementation

func (*Response) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Response) Validate

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

Validate validates this response

type SuccessResponse

type SuccessResponse struct {

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

SuccessResponse An object that is return in cases of success that return nothing.

swagger:model SuccessResponse

func (*SuccessResponse) ContextValidate

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

ContextValidate validates this success response based on context it is used

func (*SuccessResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*SuccessResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SuccessResponse) Validate

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

Validate validates this success response

type Telemetry

type Telemetry struct {

	// destination address
	DestinationAddress string `json:"destinationAddress,omitempty"`

	// destination namespace
	DestinationNamespace string `json:"destinationNamespace,omitempty"`

	// request
	Request *Request `json:"request,omitempty"`

	// request ID
	RequestID string `json:"requestID,omitempty"`

	// response
	Response *Response `json:"response,omitempty"`

	// scheme
	Scheme string `json:"scheme,omitempty"`

	// source address
	SourceAddress string `json:"sourceAddress,omitempty"`
}

Telemetry telemetry

swagger:model Telemetry

func (*Telemetry) ContextValidate

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

ContextValidate validate this telemetry based on the context it is used

func (*Telemetry) MarshalBinary

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

MarshalBinary interface implementation

func (*Telemetry) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Telemetry) Validate

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

Validate validates this telemetry

Jump to

Keyboard shortcuts

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