models

package
v0.0.0-...-a9c3a70 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: Apache-2.0 Imports: 4 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) 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 Principal

type Principal string

Principal principal

swagger:model principal

func (Principal) Validate

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

Validate validates this principal

type Story

type Story struct {

	// source
	Source string `json:"source,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

Story story

swagger:model story

func (*Story) MarshalBinary

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

MarshalBinary interface implementation

func (*Story) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Story) Validate

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

Validate validates this story

Jump to

Keyboard shortcuts

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