models

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 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 Error

type Error struct {

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

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

type ModelsWordchainPrefs struct {

	// The divider to use between each chain segment.
	Divider string `json:"divider,omitempty"`

	// The length of the words for each chain segment.
	Length int64 `json:"length,omitempty"`

	// A string to postpend the chain segment with.
	Postpend string `json:"postpend,omitempty"`

	// A string to prepend the chain segment with.
	Prepend string `json:"prepend,omitempty"`

	// A string to use as a seed for deterministic results.
	Seed string `json:"seed,omitempty"`

	// An array of word types to return in the chain.
	Type []string `json:"type"`
}

ModelsWordchainPrefs models wordchain prefs

swagger:model models.WordchainPrefs

func (*ModelsWordchainPrefs) ContextValidate

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

ContextValidate validates this models wordchain prefs based on context it is used

func (*ModelsWordchainPrefs) MarshalBinary

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

MarshalBinary interface implementation

func (*ModelsWordchainPrefs) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ModelsWordchainPrefs) Validate

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

Validate validates this models wordchain prefs

Jump to

Keyboard shortcuts

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