consts

package
v0.0.0-...-1337258 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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 KvResponse struct {
	Code    int64  `json:"code"`
	Message string `json:"message"`
	Data    []byte `json:"data"`
}

type OperatorType

type OperatorType int64
const (
	OperatorTypeUnknown OperatorType = 0
	OperatorTypeGet     OperatorType = 1
	OperatorTypeSet     OperatorType = 2
)

Jump to

Keyboard shortcuts

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