models

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadRequest

type BadRequest struct {

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

BadRequest bad request swagger:model BadRequest

func (BadRequest) Error

func (o BadRequest) Error() string

func (*BadRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*BadRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*BadRequest) Validate

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

Validate validates this bad request

type Category

type Category string

Category category swagger:model Category

const (
	// CategoryA captures enum value "a"
	CategoryA Category = "a"
	// CategoryB captures enum value "b"
	CategoryB Category = "b"
)

func (Category) Validate

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

Validate validates this category

type HealthCheckInput

type HealthCheckInput struct {
}

HealthCheckInput holds the input parameters for a healthCheck operation.

func (HealthCheckInput) Path

func (i HealthCheckInput) Path() (string, error)

Path returns the URI path for the input.

func (HealthCheckInput) Validate

func (i HealthCheckInput) Validate() error

Validate returns an error if any of the HealthCheckInput parameters don't satisfy the requirements from the swagger yml file.

type InternalError

type InternalError struct {

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

InternalError internal error swagger:model InternalError

func (InternalError) Error

func (o InternalError) Error() string

func (*InternalError) MarshalBinary

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

MarshalBinary interface implementation

func (*InternalError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*InternalError) Validate

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

Validate validates this internal error

type Object

type Object struct {

	// bar
	Bar string `json:"bar,omitempty"`

	// foo
	Foo string `json:"foo,omitempty"`
}

Object object swagger:model Object

func (*Object) MarshalBinary

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

MarshalBinary interface implementation

func (*Object) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Object) Validate

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

Validate validates this object

type SimpleThing

type SimpleThing struct {

	// id
	ID string `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

SimpleThing simple thing swagger:model SimpleThing

func (*SimpleThing) MarshalBinary

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

MarshalBinary interface implementation

func (*SimpleThing) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SimpleThing) Validate

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

Validate validates this simple thing

type Thing

type Thing struct {

	// category
	Category Category `json:"category,omitempty"`

	// created at
	CreatedAt strfmt.DateTime `json:"createdAt,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// nested object
	NestedObject *Object `json:"nestedObject,omitempty"`

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

Thing thing swagger:model Thing

func (*Thing) MarshalBinary

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

MarshalBinary interface implementation

func (*Thing) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Thing) Validate

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

Validate validates this thing

type ThingWithDateRange

type ThingWithDateRange struct {

	// date
	Date strfmt.DateTime `json:"date,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

ThingWithDateRange thing with date range swagger:model ThingWithDateRange

func (*ThingWithDateRange) MarshalBinary

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

MarshalBinary interface implementation

func (*ThingWithDateRange) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ThingWithDateRange) Validate

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

Validate validates this thing with date range

type ThingWithUnderscores added in v1.7.1

type ThingWithUnderscores struct {

	// id app
	IDApp string `json:"id_app,omitempty"`
}

ThingWithUnderscores thing with underscores swagger:model ThingWithUnderscores

func (*ThingWithUnderscores) MarshalBinary added in v1.7.1

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

MarshalBinary interface implementation

func (*ThingWithUnderscores) UnmarshalBinary added in v1.7.1

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

UnmarshalBinary interface implementation

func (*ThingWithUnderscores) Validate added in v1.7.1

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

Validate validates this thing with underscores

Jump to

Keyboard shortcuts

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