errors

package
v0.0.0-...-a67b36e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: Apache-2.0 Imports: 0 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Status int32
	Err    error
	Msg    string
}

func New

func New(code int32, err error, msg string) API

func (API) Code

func (err API) Code() int32

func (API) Error

func (err API) Error() string

func (API) Info

func (err API) Info() string

type Api

type Api interface {
	Code() int32
	Info() string
	Error() string
}

Jump to

Keyboard shortcuts

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