common

package
v0.0.0-...-a4a1dc1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LINE_KEY_PATTERN = `(\w+)=(?:([^ "=]+)|(?:["]([^"]+)["]))`
)
View Source
const (
	PARAMETERS_PATTERN = `"((?:[^"]|\")*)"|(\S+)`
)

Variables

This section is empty.

Functions

func NFloat32

func NFloat32(v float32) *float32

func NFloat64

func NFloat64(v float64) *float64

func NInt

func NInt(v int) *int

func NInt16

func NInt16(v int16) *int16

func NInt32

func NInt32(v int32) *int32

func NInt64

func NInt64(v int64) *int64

func NInt8

func NInt8(v int8) *int8

func NString

func NString(v string) *string

func NUInt

func NUInt(v uint) *uint

func NUInt16

func NUInt16(v uint16) *uint16

func NUInt32

func NUInt32(v uint32) *uint32

func NUInt64

func NUInt64(v uint64) *uint64

func NUInt8

func NUInt8(v uint8) *uint8

func ParseKeyValueLog

func ParseKeyValueLog(line string, pointer interface{}) error

func ParseParameters

func ParseParameters(args []string) []string

Types

type OnMissedCache

type OnMissedCache func(key []string, args []interface{}) (result interface{}, err error)

type RoutineCache

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

func NewRoutineCache

func NewRoutineCache(cacheLen int, onMiss OnMissedCache) *RoutineCache

func (*RoutineCache) Key

func (self *RoutineCache) Key(args ...string) *RoutineCacheQuery

type RoutineCacheQuery

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

func (*RoutineCacheQuery) SetValue

func (self *RoutineCacheQuery) SetValue(value interface{})

func (*RoutineCacheQuery) Value

func (self *RoutineCacheQuery) Value(args ...interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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