Documentation ¶
Index ¶
Constants ¶
View Source
const ( B = 1 << (iota * 10) KB MB GB )
View Source
const ( Host = "EGGIE_KV_HOST" // 主机名,目前只支持ip,后续考虑域名/dns Port = "EGGIE_KV_PORT" // 端口 Durable = "EGGIE_KV_DURABLE" // 持久化 Home = "HOME" // 家目录 )
View Source
const ( LogFieldParams = "params" LogFieldValue = "value" )
View Source
const (
Core = "core"
)
View Source
const HelpTemplate = `` /* 622-byte string literal not displayed */
View Source
const (
Ragdoll = "ragdoll"
)
Variables ¶
View Source
var ( BaseDir string DefaultConfigPath string )
Functions ¶
This section is empty.
Types ¶
type KvRequest ¶
type KvRequest struct { OperationType OperatorType `json:"operation_type"` Key []byte `json:"key"` Value []byte `json:"value"` }
type KvResponse ¶
type OperatorType ¶
type OperatorType int64
const ( OperatorTypeUnknown OperatorType = 0 OperatorTypeGet OperatorType = 1 OperatorTypeSet OperatorType = 2 )
Click to show internal directories.
Click to hide internal directories.