api

package
v4.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic

type Basic struct {
	Data string `json:"data"`
}

func (Basic) MarshalYAML

func (o Basic) MarshalYAML() (interface{}, error)

func (*Basic) UnmarshalYAML

func (o *Basic) UnmarshalYAML(unmarshal func(interface{}) error) error

type MyNotFound

type MyNotFound struct {
	// contains filtered or unexported fields
}

MyNotFound is an error type.

Something was not found.

func NewMyNotFound

func NewMyNotFound(safeArgA Basic, safeArgB []int, type_ string, unsafeArgA string, unsafeArgB *string) *MyNotFound

NewMyNotFound returns new instance of MyNotFound error.

func (*MyNotFound) Code

func (e *MyNotFound) Code() errors.ErrorCode

Code returns an enum describing error category.

func (*MyNotFound) Error

func (e *MyNotFound) Error() string

func (*MyNotFound) InstanceID

func (e *MyNotFound) InstanceID() uuid.UUID

InstanceID returns unique identifier of this particular error instance.

func (MyNotFound) MarshalJSON

func (e MyNotFound) MarshalJSON() ([]byte, error)

func (MyNotFound) MarshalYAML

func (o MyNotFound) MarshalYAML() (interface{}, error)

func (*MyNotFound) Name

func (e *MyNotFound) Name() string

Name returns an error name identifying error type.

func (*MyNotFound) Parameters

func (e *MyNotFound) Parameters() map[string]interface{}

Parameters returns a set of named parameters detailing this particular error instance.

func (*MyNotFound) UnmarshalJSON

func (e *MyNotFound) UnmarshalJSON(data []byte) error

func (*MyNotFound) UnmarshalYAML

func (o *MyNotFound) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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