comm

package module
v0.0.0-...-4719e15 Latest Latest
Warning

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

Go to latest
Published: May 7, 2017 License: AGPL-3.0 Imports: 11 Imported by: 0

README

公共库,方便 Server、Agent等使用

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewID

func NewID() string

NewID returns a new unique ObjectId.

func NewIDHex

func NewIDHex() []byte

NewIDHex return a new unique ObjectId Hex.

func RegAPPInitHook

func RegAPPInitHook(hf hookfunc, priority ...int)

RegAPPInitHook 将需要在程序启动时运行的方法加入,该Hook将在执行RunHook时按优先级执行。 priority 范围 0-10;执行顺序为:0->10.

func RunAPPInitHook

func RunAPPInitHook() error

RunAPPInitHook 执行Hook

func SearchFile

func SearchFile(name string) (string, error)

SearchFile from the runtime

Types

type InvalidDataError

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

InvalidDataError 数据非法

func ErrDataIsEmpty

func ErrDataIsEmpty(data ...string) InvalidDataError

ErrDataIsEmpty 数据不能为空错误

func (InvalidDataError) Error

func (e InvalidDataError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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