error

package
v1.0.0-rc-3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFoundMsg = "Not found"
)

Functions

This section is empty.

Types

type ErrorMessage

type ErrorMessage struct {
	Message string `json:"message"`
}

func (*ErrorMessage) IsNotFound

func (m *ErrorMessage) IsNotFound() bool

IsNotFound returns true/false whether the message is equal to "not found" or not

func (*ErrorMessage) String

func (m *ErrorMessage) String() string

String converts ErrorMessage struct to human readable string

type Status

type Status struct {
	Messages []ErrorMessage
}

func (*Status) String

func (s *Status) String() string

String converts the Status struct to human readable string

Jump to

Keyboard shortcuts

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