input

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlbumCreateInput

type AlbumCreateInput struct {
	EAN    string `json:"ean"`
	Title  string `json:"title"`
	Artist string `json:"artist"`
}

func (AlbumCreateInput) Validate

func (in AlbumCreateInput) Validate() error

type AlbumDeleteInput

type AlbumDeleteInput struct {
	EAN string `json:"ean"`
}

func (AlbumDeleteInput) Validate

func (in AlbumDeleteInput) Validate() error

type AlbumGetInput

type AlbumGetInput struct {
	EAN string `json:"ean"`
}

func (AlbumGetInput) Validate

func (in AlbumGetInput) Validate() error

type AlbumListInput

type AlbumListInput struct{}

func (AlbumListInput) Validate

func (in AlbumListInput) Validate() error

type AlbumUpdateInput

type AlbumUpdateInput struct {
	EAN    string          `json:"ean"`
	Title  json.RawMessage `json:"title"`
	Artist json.RawMessage `json:"artist"`
}

func (AlbumUpdateInput) HasArtist

func (in AlbumUpdateInput) HasArtist() bool

func (AlbumUpdateInput) HasTitle

func (in AlbumUpdateInput) HasTitle() bool

func (AlbumUpdateInput) Validate

func (in AlbumUpdateInput) Validate() error

func (AlbumUpdateInput) ValidateArtist

func (in AlbumUpdateInput) ValidateArtist() (string, error)

func (AlbumUpdateInput) ValidateTitle

func (in AlbumUpdateInput) ValidateTitle() (string, error)

Jump to

Keyboard shortcuts

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