models

package
v0.0.0-...-d6856e5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 6 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
	// Maximum: 599
	// Minimum: 400
	Code int64 `json:"code,omitempty"`

	// message
	// Required: true
	// Max Length: 255
	// Min Length: 1
	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 ErrorInternalServerError

type ErrorInternalServerError struct {

	// code
	// Example: 500
	Code int64 `json:"code,omitempty"`

	// message
	// Example: Internal Server Error
	Message string `json:"message,omitempty"`
}

ErrorInternalServerError error internal server error

swagger:model error_internal_server_error

func (*ErrorInternalServerError) ContextValidate

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

ContextValidate validates this error internal server error based on context it is used

func (*ErrorInternalServerError) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorInternalServerError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorInternalServerError) Validate

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

Validate validates this error internal server error

type ErrorMethodNotAllowed

type ErrorMethodNotAllowed struct {

	// code
	// Example: 405
	Code int64 `json:"code,omitempty"`

	// message
	// Example: method POST is not allowed, but [GET] are
	Message string `json:"message,omitempty"`
}

ErrorMethodNotAllowed error method not allowed

swagger:model error_method_not_allowed

func (*ErrorMethodNotAllowed) ContextValidate

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

ContextValidate validates this error method not allowed based on context it is used

func (*ErrorMethodNotAllowed) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorMethodNotAllowed) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorMethodNotAllowed) Validate

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

Validate validates this error method not allowed

type ErrorNotAcceptable

type ErrorNotAcceptable struct {

	// code
	// Example: 406
	Code int64 `json:"code,omitempty"`

	// message
	// Example: unsupported media type requested, only [application/json] are available
	Message string `json:"message,omitempty"`
}

ErrorNotAcceptable error not acceptable

swagger:model error_not_acceptable

func (*ErrorNotAcceptable) ContextValidate

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

ContextValidate validates this error not acceptable based on context it is used

func (*ErrorNotAcceptable) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorNotAcceptable) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorNotAcceptable) Validate

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

Validate validates this error not acceptable

type ErrorServiceUnavailable

type ErrorServiceUnavailable struct {

	// code
	// Example: 503
	Code int64 `json:"code,omitempty"`

	// message
	// Example: service is not available
	Message string `json:"message,omitempty"`
}

ErrorServiceUnavailable error service unavailable

swagger:model error_service_unavailable

func (*ErrorServiceUnavailable) ContextValidate

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

ContextValidate validates this error service unavailable based on context it is used

func (*ErrorServiceUnavailable) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorServiceUnavailable) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorServiceUnavailable) Validate

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

Validate validates this error service unavailable

type ErrorTooManyRequests

type ErrorTooManyRequests struct {

	// code
	// Example: 429
	Code int64 `json:"code,omitempty"`

	// message
	// Example: too many requests
	Message string `json:"message,omitempty"`
}

ErrorTooManyRequests error too many requests

swagger:model error_too_many_requests

func (*ErrorTooManyRequests) ContextValidate

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

ContextValidate validates this error too many requests based on context it is used

func (*ErrorTooManyRequests) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorTooManyRequests) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorTooManyRequests) Validate

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

Validate validates this error too many requests

type Visitor

type Visitor struct {

	// client Id
	// Required: true
	// Max Length: 36
	// Min Length: 1
	ClientID *string `json:"clientId"`

	// ad content
	// Max Length: 255
	// Min Length: 0
	AdContent *string `json:"adContent,omitempty"`

	// ad group
	// Max Length: 255
	// Min Length: 0
	AdGroup *string `json:"adGroup,omitempty"`

	// ad matched query
	// Max Length: 255
	// Min Length: 0
	AdMatchedQuery *string `json:"adMatchedQuery,omitempty"`

	// campaign
	// Max Length: 100
	// Min Length: 0
	Campaign *string `json:"campaign,omitempty"`

	// keyword
	// Max Length: 255
	// Min Length: 0
	Keyword *string `json:"keyword,omitempty"`

	// medium
	// Max Length: 50
	// Min Length: 0
	Medium *string `json:"medium,omitempty"`

	// source
	// Max Length: 50
	// Min Length: 0
	Source *string `json:"source,omitempty"`
}

Visitor visitor

swagger:model visitor

func (*Visitor) ContextValidate

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

ContextValidate validates this visitor based on context it is used

func (*Visitor) MarshalBinary

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

MarshalBinary interface implementation

func (*Visitor) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Visitor) Validate

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

Validate validates this visitor

type Visitors

type Visitors []*Visitor

Visitors visitors

swagger:model visitors

func (Visitors) ContextValidate

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

ContextValidate validate this visitors based on the context it is used

func (Visitors) Validate

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

Validate validates this visitors

Jump to

Keyboard shortcuts

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