lang

package
v0.0.0-...-ae4999c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ZhCN
	EnUS
)

Variables

This section is empty.

Functions

func Active

func Active(r int)

func Error

func Error(index ErrIndex, params ...interface{}) error

func ErrorStr

func ErrorStr(index ErrIndex, params ...interface{}) string

func InternalError

func InternalError(err error) error

func Register

func Register(region int, lang map[StrIndex]string, err map[ErrIndex]string)

func Str

func Str(index StrIndex, params ...interface{}) string

Types

type ErrIndex

type ErrIndex int
const (
	Ok ErrIndex = iota
	ErrUnknown
	ErrUnknownLang
	ErrInternal

	ErrDeviceNotExists
	ErrDeviceNotConnected
)

func (ErrIndex) Error

func (index ErrIndex) Error(params ...interface{}) error

func (ErrIndex) Str

func (index ErrIndex) Str(params ...interface{}) string

type StrIndex

type StrIndex int
const (
	EdgeUnknownState StrIndex = iota
	AdapterInitializing
	Connecting
	Connected
	Disconnected
	MalFunctioned
	InfluxDBError
)

func (StrIndex) Str

func (index StrIndex) Str(params ...interface{}) string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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