models

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: MIT Imports: 4 Imported by: 2 modules, 7 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {

	// author
	Author string `json:"Author,omitempty"`

	// ID
	ID int32 `json:"ID,omitempty"`

	// num pages
	NumPages int32 `json:"NumPages,omitempty"`

	// pages
	Pages []*Page `json:"Pages"`

	// publisher
	Publisher string `json:"Publisher,omitempty"`

	// shelves ID
	ShelvesID int32 `json:"ShelvesID,omitempty"`
}

Book book swagger:model Book

func (*Book) MarshalBinary

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

MarshalBinary interface implementation

func (*Book) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Book) Validate

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

Validate validates this book

type Fail

type Fail struct {

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

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

Fail fail swagger:model Fail

func (*Fail) MarshalBinary

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

MarshalBinary interface implementation

func (*Fail) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Fail) Validate

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

Validate validates this fail

type Library

type Library []*Shelf

Library library swagger:model Library

func (Library) Validate

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

Validate validates this library

type Page

type Page struct {

	// books ID
	BooksID int32 `json:"BooksID,omitempty"`

	// ID
	ID int32 `json:"ID,omitempty"`

	// number
	Number int32 `json:"Number,omitempty"`

	// text
	Text string `json:"Text,omitempty"`
}

Page page swagger:model Page

func (*Page) MarshalBinary

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

MarshalBinary interface implementation

func (*Page) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Page) Validate

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

Validate validates this page

type Shelf

type Shelf struct {

	// books
	Books []*Book `json:"Books"`

	// ID
	ID int32 `json:"ID,omitempty"`

	// name shelfs
	NameShelfs string `json:"NameShelfs,omitempty"`

	// number
	Number int32 `json:"Number,omitempty"`
}

Shelf shelf swagger:model Shelf

func (*Shelf) MarshalBinary

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

MarshalBinary interface implementation

func (*Shelf) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Shelf) Validate

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

Validate validates this shelf

Jump to

Keyboard shortcuts

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