shared

package
v0.0.0-...-bacbef4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodecTypeMap   = 0
	CodecTypeBytes = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CodecType

type CodecType int32

type LogLevel

type LogLevel int32
const (
	LogLevelDebug LogLevel = 0
	LogLevelInfo  LogLevel = 1
	LogLevelWarn  LogLevel = 2
	LogLevelError LogLevel = 3
)

type MapConv

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

func NewMapConv

func NewMapConv(m map[string]interface{}) *MapConv

func (*MapConv) Get

func (c *MapConv) Get(key string) (interface{}, bool)

func (*MapConv) GetBool

func (c *MapConv) GetBool(key string) (b bool)

func (*MapConv) GetDuration

func (c *MapConv) GetDuration(key string) (d time.Duration)

func (*MapConv) GetFloat32

func (c *MapConv) GetFloat32(key string) (f float32)

func (*MapConv) GetFloat64

func (c *MapConv) GetFloat64(key string) (f float64)

func (*MapConv) GetInt

func (c *MapConv) GetInt(key string) (i int)

func (*MapConv) GetInt32

func (c *MapConv) GetInt32(key string) (i int32)

func (*MapConv) GetInt64

func (c *MapConv) GetInt64(key string) (i int64)

func (*MapConv) GetString

func (c *MapConv) GetString(key string) (s string)

func (*MapConv) GetStringMap

func (c *MapConv) GetStringMap(key string) (sm map[string]interface{})

func (*MapConv) GetStringMapString

func (c *MapConv) GetStringMapString(key string) (sms map[string]string)

func (*MapConv) GetStringMapStringSlice

func (c *MapConv) GetStringMapStringSlice(key string) (smss map[string][]string)

func (*MapConv) GetStringSlice

func (c *MapConv) GetStringSlice(key string) (ss []string)

func (*MapConv) GetTime

func (c *MapConv) GetTime(key string) (t time.Time)

func (*MapConv) GetUint

func (c *MapConv) GetUint(key string) (u uint)

func (*MapConv) GetUint32

func (c *MapConv) GetUint32(key string) (u uint32)

func (*MapConv) GetUint64

func (c *MapConv) GetUint64(key string) (u uint64)

func (*MapConv) Map

func (c *MapConv) Map() map[string]interface{}

func (*MapConv) MustGet

func (c *MapConv) MustGet(key string) interface{}

func (*MapConv) String

func (c *MapConv) String() string

type UnbindReason

type UnbindReason int32
const (
	UnbindExit      UnbindReason = 0 // 插件退出
	UnbindUnUsed    UnbindReason = 1 // 插件不再使用
	UnbindUpgrade   UnbindReason = 2 // 插件升级
	UnbindDowngrade UnbindReason = 3 // 插件降级
	UnbindPanic     UnbindReason = 4 // 插件异常
)

Jump to

Keyboard shortcuts

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