Documentation ¶
Index ¶
- func Exists(name string) bool
- func Expand(s string) ([]int, error)
- func Format(pattern string, values map[string]interface{}) string
- func GetCmdLine() map[string]interface{}
- func GetKeys(m map[string]interface{}) []string
- func In(l []int, x int) bool
- func InString(l []string, x string) bool
- func LoadTomlFile(filename string, v interface{}) error
- func NewRedisPool(network string, address string, password string) *redis.Pool
- func Update(dst map[string]interface{}, src map[string]interface{})
- type Buffer
- type BufferFlush
- type TimedBuffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
Format accepts a string pattern of format "something {key}, something" and replaces all occurences of {<key>} from the values map.
func GetCmdLine ¶ added in v1.0.0
func GetCmdLine() map[string]interface{}
GetCmdLine Get kernel cmdline arguments
func LoadTomlFile ¶
LoadTomlFile loads toml using "github.com/naoina/toml"
Types ¶
type BufferFlush ¶
type BufferFlush func([]interface{})
BufferFlush callback type for on flush event
type TimedBuffer ¶
type TimedBuffer struct {
// contains filtered or unexported fields
}
TimedBuffer flushes buffer on time or if max buffer size is reached
func (*TimedBuffer) Append ¶
func (buffer *TimedBuffer) Append(obj interface{})
Append appends object to buffer
Click to show internal directories.
Click to hide internal directories.