common

package
v2.16.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package common contains common utilities that are shared among other packages. See each sub-package for detail.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrObjectReleased   = errors.New("Object already released.")
	ErrBadConfiguration = errors.New("Bad configuration.")
	ErrObjectNotFound   = errors.New("Object not found.")
	ErrDuplicatedName   = errors.New("Duplicated name.")
)

Functions

func CreateObject

func CreateObject(ctx context.Context, config interface{}) (interface{}, error)

func Must

func Must(err error)

Must panics if err is not nil.

func RegisterConfig

func RegisterConfig(config interface{}, configCreator creator) error

Types

This section is empty.

Directories

Path Synopsis
Package buf provides a light-weight memory allocation mechanism.
Package buf provides a light-weight memory allocation mechanism.
Package bufio is a replacement of the standard golang package bufio.
Package bufio is a replacement of the standard golang package bufio.
Package crypto provides common crypto libraries for V2Ray.
Package crypto provides common crypto libraries for V2Ray.
Package dice contains common functions to generate random number.
Package dice contains common functions to generate random number.
log
Package net contains common network utilities.
Package net contains common network utilities.
web

Jump to

Keyboard shortcuts

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