Documentation ¶
Index ¶
- Variables
- func RegisterLilyAPIServer(s *grpc.Server, srv LilyAPIServer)
- type Code
- type Condition
- func (*Condition) Descriptor() ([]byte, []int)
- func (m *Condition) GetCond() string
- func (m *Condition) GetParam() string
- func (m *Condition) GetValue() []byte
- func (*Condition) ProtoMessage()
- func (m *Condition) Reset()
- func (m *Condition) String() string
- func (m *Condition) XXX_DiscardUnknown()
- func (m *Condition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Condition) XXX_Merge(src proto.Message)
- func (m *Condition) XXX_Size() int
- func (m *Condition) XXX_Unmarshal(b []byte) error
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetDataDir() string
- func (m *Config) GetLilyBootstrapFilePath() string
- func (m *Config) GetLilyLockFilePath() string
- func (m *Config) GetLimit() bool
- func (m *Config) GetLimitCount() int32
- func (m *Config) GetLimitIntervalMicrosecond() int32
- func (m *Config) GetLimitMillisecond() int32
- func (m *Config) GetLimitOpenFile() int32
- func (m *Config) GetLogDir() string
- func (m *Config) GetPort() string
- func (m *Config) GetRootDir() string
- func (m *Config) GetTLS() bool
- func (m *Config) GetTLSServerCertFile() string
- func (m *Config) GetTLSServerKeyFile() string
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type Database
- func (*Database) Descriptor() ([]byte, []int)
- func (m *Database) GetComment() string
- func (m *Database) GetForms() map[string]*Form
- func (m *Database) GetID() string
- func (m *Database) GetName() string
- func (*Database) ProtoMessage()
- func (m *Database) Reset()
- func (m *Database) String() string
- func (m *Database) XXX_DiscardUnknown()
- func (m *Database) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Database) XXX_Merge(src proto.Message)
- func (m *Database) XXX_Size() int
- func (m *Database) XXX_Unmarshal(b []byte) error
- type Form
- func (*Form) Descriptor() ([]byte, []int)
- func (m *Form) GetComment() string
- func (m *Form) GetFormType() FormType
- func (m *Form) GetID() string
- func (m *Form) GetIndexes() map[string]*Index
- func (m *Form) GetName() string
- func (*Form) ProtoMessage()
- func (m *Form) Reset()
- func (m *Form) String() string
- func (m *Form) XXX_DiscardUnknown()
- func (m *Form) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Form) XXX_Merge(src proto.Message)
- func (m *Form) XXX_Size() int
- func (m *Form) XXX_Unmarshal(b []byte) error
- type FormType
- type Index
- func (*Index) Descriptor() ([]byte, []int)
- func (m *Index) GetID() string
- func (m *Index) GetKeyStructure() string
- func (m *Index) GetPrimary() bool
- func (*Index) ProtoMessage()
- func (m *Index) Reset()
- func (m *Index) String() string
- func (m *Index) XXX_DiscardUnknown()
- func (m *Index) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Index) XXX_Merge(src proto.Message)
- func (m *Index) XXX_Size() int
- func (m *Index) XXX_Unmarshal(b []byte) error
- type Lily
- func (*Lily) Descriptor() ([]byte, []int)
- func (m *Lily) GetDatabases() map[string]*Database
- func (*Lily) ProtoMessage()
- func (m *Lily) Reset()
- func (m *Lily) String() string
- func (m *Lily) XXX_DiscardUnknown()
- func (m *Lily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Lily) XXX_Merge(src proto.Message)
- func (m *Lily) XXX_Size() int
- func (m *Lily) XXX_Unmarshal(b []byte) error
- type LilyAPIClient
- type LilyAPIServer
- type ReqConf
- func (*ReqConf) Descriptor() ([]byte, []int)
- func (*ReqConf) ProtoMessage()
- func (m *ReqConf) Reset()
- func (m *ReqConf) String() string
- func (m *ReqConf) XXX_DiscardUnknown()
- func (m *ReqConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqConf) XXX_Merge(src proto.Message)
- func (m *ReqConf) XXX_Size() int
- func (m *ReqConf) XXX_Unmarshal(b []byte) error
- type ReqCreateDatabase
- func (*ReqCreateDatabase) Descriptor() ([]byte, []int)
- func (m *ReqCreateDatabase) GetComment() string
- func (m *ReqCreateDatabase) GetName() string
- func (*ReqCreateDatabase) ProtoMessage()
- func (m *ReqCreateDatabase) Reset()
- func (m *ReqCreateDatabase) String() string
- func (m *ReqCreateDatabase) XXX_DiscardUnknown()
- func (m *ReqCreateDatabase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqCreateDatabase) XXX_Merge(src proto.Message)
- func (m *ReqCreateDatabase) XXX_Size() int
- func (m *ReqCreateDatabase) XXX_Unmarshal(b []byte) error
- type ReqCreateForm
- func (*ReqCreateForm) Descriptor() ([]byte, []int)
- func (m *ReqCreateForm) GetComment() string
- func (m *ReqCreateForm) GetDatabaseName() string
- func (m *ReqCreateForm) GetFormType() FormType
- func (m *ReqCreateForm) GetName() string
- func (*ReqCreateForm) ProtoMessage()
- func (m *ReqCreateForm) Reset()
- func (m *ReqCreateForm) String() string
- func (m *ReqCreateForm) XXX_DiscardUnknown()
- func (m *ReqCreateForm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqCreateForm) XXX_Merge(src proto.Message)
- func (m *ReqCreateForm) XXX_Size() int
- func (m *ReqCreateForm) XXX_Unmarshal(b []byte) error
- type ReqCreateIndex
- func (*ReqCreateIndex) Descriptor() ([]byte, []int)
- func (m *ReqCreateIndex) GetDatabaseName() string
- func (m *ReqCreateIndex) GetFormName() string
- func (m *ReqCreateIndex) GetKeyStructure() string
- func (*ReqCreateIndex) ProtoMessage()
- func (m *ReqCreateIndex) Reset()
- func (m *ReqCreateIndex) String() string
- func (m *ReqCreateIndex) XXX_DiscardUnknown()
- func (m *ReqCreateIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqCreateIndex) XXX_Merge(src proto.Message)
- func (m *ReqCreateIndex) XXX_Size() int
- func (m *ReqCreateIndex) XXX_Unmarshal(b []byte) error
- type ReqCreateKey
- func (*ReqCreateKey) Descriptor() ([]byte, []int)
- func (m *ReqCreateKey) GetDatabaseName() string
- func (m *ReqCreateKey) GetFormName() string
- func (m *ReqCreateKey) GetKeyStructure() string
- func (*ReqCreateKey) ProtoMessage()
- func (m *ReqCreateKey) Reset()
- func (m *ReqCreateKey) String() string
- func (m *ReqCreateKey) XXX_DiscardUnknown()
- func (m *ReqCreateKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqCreateKey) XXX_Merge(src proto.Message)
- func (m *ReqCreateKey) XXX_Size() int
- func (m *ReqCreateKey) XXX_Unmarshal(b []byte) error
- type ReqDatabases
- func (*ReqDatabases) Descriptor() ([]byte, []int)
- func (*ReqDatabases) ProtoMessage()
- func (m *ReqDatabases) Reset()
- func (m *ReqDatabases) String() string
- func (m *ReqDatabases) XXX_DiscardUnknown()
- func (m *ReqDatabases) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqDatabases) XXX_Merge(src proto.Message)
- func (m *ReqDatabases) XXX_Size() int
- func (m *ReqDatabases) XXX_Unmarshal(b []byte) error
- type ReqDelete
- func (*ReqDelete) Descriptor() ([]byte, []int)
- func (m *ReqDelete) GetDatabaseName() string
- func (m *ReqDelete) GetFormName() string
- func (m *ReqDelete) GetSelector() *Selector
- func (*ReqDelete) ProtoMessage()
- func (m *ReqDelete) Reset()
- func (m *ReqDelete) String() string
- func (m *ReqDelete) XXX_DiscardUnknown()
- func (m *ReqDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqDelete) XXX_Merge(src proto.Message)
- func (m *ReqDelete) XXX_Size() int
- func (m *ReqDelete) XXX_Unmarshal(b []byte) error
- type ReqForms
- func (*ReqForms) Descriptor() ([]byte, []int)
- func (m *ReqForms) GetDatabaseName() string
- func (*ReqForms) ProtoMessage()
- func (m *ReqForms) Reset()
- func (m *ReqForms) String() string
- func (m *ReqForms) XXX_DiscardUnknown()
- func (m *ReqForms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqForms) XXX_Merge(src proto.Message)
- func (m *ReqForms) XXX_Size() int
- func (m *ReqForms) XXX_Unmarshal(b []byte) error
- type ReqGet
- func (*ReqGet) Descriptor() ([]byte, []int)
- func (m *ReqGet) GetDatabaseName() string
- func (m *ReqGet) GetFormName() string
- func (m *ReqGet) GetKey() string
- func (*ReqGet) ProtoMessage()
- func (m *ReqGet) Reset()
- func (m *ReqGet) String() string
- func (m *ReqGet) XXX_DiscardUnknown()
- func (m *ReqGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqGet) XXX_Merge(src proto.Message)
- func (m *ReqGet) XXX_Size() int
- func (m *ReqGet) XXX_Unmarshal(b []byte) error
- type ReqInsert
- func (*ReqInsert) Descriptor() ([]byte, []int)
- func (m *ReqInsert) GetDatabaseName() string
- func (m *ReqInsert) GetFormName() string
- func (m *ReqInsert) GetKey() string
- func (m *ReqInsert) GetValue() []byte
- func (*ReqInsert) ProtoMessage()
- func (m *ReqInsert) Reset()
- func (m *ReqInsert) String() string
- func (m *ReqInsert) XXX_DiscardUnknown()
- func (m *ReqInsert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqInsert) XXX_Merge(src proto.Message)
- func (m *ReqInsert) XXX_Size() int
- func (m *ReqInsert) XXX_Unmarshal(b []byte) error
- type ReqPut
- func (*ReqPut) Descriptor() ([]byte, []int)
- func (m *ReqPut) GetDatabaseName() string
- func (m *ReqPut) GetFormName() string
- func (m *ReqPut) GetKey() string
- func (m *ReqPut) GetValue() []byte
- func (*ReqPut) ProtoMessage()
- func (m *ReqPut) Reset()
- func (m *ReqPut) String() string
- func (m *ReqPut) XXX_DiscardUnknown()
- func (m *ReqPut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqPut) XXX_Merge(src proto.Message)
- func (m *ReqPut) XXX_Size() int
- func (m *ReqPut) XXX_Unmarshal(b []byte) error
- type ReqRemove
- func (*ReqRemove) Descriptor() ([]byte, []int)
- func (m *ReqRemove) GetDatabaseName() string
- func (m *ReqRemove) GetFormName() string
- func (m *ReqRemove) GetKey() string
- func (*ReqRemove) ProtoMessage()
- func (m *ReqRemove) Reset()
- func (m *ReqRemove) String() string
- func (m *ReqRemove) XXX_DiscardUnknown()
- func (m *ReqRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqRemove) XXX_Merge(src proto.Message)
- func (m *ReqRemove) XXX_Size() int
- func (m *ReqRemove) XXX_Unmarshal(b []byte) error
- type ReqSelect
- func (*ReqSelect) Descriptor() ([]byte, []int)
- func (m *ReqSelect) GetDatabaseName() string
- func (m *ReqSelect) GetFormName() string
- func (m *ReqSelect) GetSelector() *Selector
- func (*ReqSelect) ProtoMessage()
- func (m *ReqSelect) Reset()
- func (m *ReqSelect) String() string
- func (m *ReqSelect) XXX_DiscardUnknown()
- func (m *ReqSelect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqSelect) XXX_Merge(src proto.Message)
- func (m *ReqSelect) XXX_Size() int
- func (m *ReqSelect) XXX_Unmarshal(b []byte) error
- type ReqSet
- func (*ReqSet) Descriptor() ([]byte, []int)
- func (m *ReqSet) GetDatabaseName() string
- func (m *ReqSet) GetFormName() string
- func (m *ReqSet) GetKey() string
- func (m *ReqSet) GetValue() []byte
- func (*ReqSet) ProtoMessage()
- func (m *ReqSet) Reset()
- func (m *ReqSet) String() string
- func (m *ReqSet) XXX_DiscardUnknown()
- func (m *ReqSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqSet) XXX_Merge(src proto.Message)
- func (m *ReqSet) XXX_Size() int
- func (m *ReqSet) XXX_Unmarshal(b []byte) error
- type Resp
- func (*Resp) Descriptor() ([]byte, []int)
- func (m *Resp) GetCode() Code
- func (m *Resp) GetErrMsg() string
- func (*Resp) ProtoMessage()
- func (m *Resp) Reset()
- func (m *Resp) String() string
- func (m *Resp) XXX_DiscardUnknown()
- func (m *Resp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Resp) XXX_Merge(src proto.Message)
- func (m *Resp) XXX_Size() int
- func (m *Resp) XXX_Unmarshal(b []byte) error
- type RespConf
- func (*RespConf) Descriptor() ([]byte, []int)
- func (m *RespConf) GetCode() Code
- func (m *RespConf) GetConf() *Config
- func (m *RespConf) GetErrMsg() string
- func (*RespConf) ProtoMessage()
- func (m *RespConf) Reset()
- func (m *RespConf) String() string
- func (m *RespConf) XXX_DiscardUnknown()
- func (m *RespConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespConf) XXX_Merge(src proto.Message)
- func (m *RespConf) XXX_Size() int
- func (m *RespConf) XXX_Unmarshal(b []byte) error
- type RespDatabases
- func (*RespDatabases) Descriptor() ([]byte, []int)
- func (m *RespDatabases) GetCode() Code
- func (m *RespDatabases) GetDatabases() []*Database
- func (m *RespDatabases) GetErrMsg() string
- func (*RespDatabases) ProtoMessage()
- func (m *RespDatabases) Reset()
- func (m *RespDatabases) String() string
- func (m *RespDatabases) XXX_DiscardUnknown()
- func (m *RespDatabases) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespDatabases) XXX_Merge(src proto.Message)
- func (m *RespDatabases) XXX_Size() int
- func (m *RespDatabases) XXX_Unmarshal(b []byte) error
- type RespDelete
- func (*RespDelete) Descriptor() ([]byte, []int)
- func (m *RespDelete) GetCode() Code
- func (m *RespDelete) GetCount() int32
- func (m *RespDelete) GetErrMsg() string
- func (*RespDelete) ProtoMessage()
- func (m *RespDelete) Reset()
- func (m *RespDelete) String() string
- func (m *RespDelete) XXX_DiscardUnknown()
- func (m *RespDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespDelete) XXX_Merge(src proto.Message)
- func (m *RespDelete) XXX_Size() int
- func (m *RespDelete) XXX_Unmarshal(b []byte) error
- type RespForms
- func (*RespForms) Descriptor() ([]byte, []int)
- func (m *RespForms) GetCode() Code
- func (m *RespForms) GetErrMsg() string
- func (m *RespForms) GetForms() []*Form
- func (*RespForms) ProtoMessage()
- func (m *RespForms) Reset()
- func (m *RespForms) String() string
- func (m *RespForms) XXX_DiscardUnknown()
- func (m *RespForms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespForms) XXX_Merge(src proto.Message)
- func (m *RespForms) XXX_Size() int
- func (m *RespForms) XXX_Unmarshal(b []byte) error
- type RespGet
- func (*RespGet) Descriptor() ([]byte, []int)
- func (m *RespGet) GetCode() Code
- func (m *RespGet) GetErrMsg() string
- func (m *RespGet) GetValue() []byte
- func (*RespGet) ProtoMessage()
- func (m *RespGet) Reset()
- func (m *RespGet) String() string
- func (m *RespGet) XXX_DiscardUnknown()
- func (m *RespGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespGet) XXX_Merge(src proto.Message)
- func (m *RespGet) XXX_Size() int
- func (m *RespGet) XXX_Unmarshal(b []byte) error
- type RespInsert
- func (*RespInsert) Descriptor() ([]byte, []int)
- func (m *RespInsert) GetCode() Code
- func (m *RespInsert) GetErrMsg() string
- func (m *RespInsert) GetHashKey() uint64
- func (*RespInsert) ProtoMessage()
- func (m *RespInsert) Reset()
- func (m *RespInsert) String() string
- func (m *RespInsert) XXX_DiscardUnknown()
- func (m *RespInsert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespInsert) XXX_Merge(src proto.Message)
- func (m *RespInsert) XXX_Size() int
- func (m *RespInsert) XXX_Unmarshal(b []byte) error
- type RespPut
- func (*RespPut) Descriptor() ([]byte, []int)
- func (m *RespPut) GetCode() Code
- func (m *RespPut) GetErrMsg() string
- func (m *RespPut) GetHashKey() uint64
- func (*RespPut) ProtoMessage()
- func (m *RespPut) Reset()
- func (m *RespPut) String() string
- func (m *RespPut) XXX_DiscardUnknown()
- func (m *RespPut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespPut) XXX_Merge(src proto.Message)
- func (m *RespPut) XXX_Size() int
- func (m *RespPut) XXX_Unmarshal(b []byte) error
- type RespSelect
- func (*RespSelect) Descriptor() ([]byte, []int)
- func (m *RespSelect) GetCode() Code
- func (m *RespSelect) GetCount() int32
- func (m *RespSelect) GetErrMsg() string
- func (m *RespSelect) GetValue() []byte
- func (*RespSelect) ProtoMessage()
- func (m *RespSelect) Reset()
- func (m *RespSelect) String() string
- func (m *RespSelect) XXX_DiscardUnknown()
- func (m *RespSelect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespSelect) XXX_Merge(src proto.Message)
- func (m *RespSelect) XXX_Size() int
- func (m *RespSelect) XXX_Unmarshal(b []byte) error
- type RespSet
- func (*RespSet) Descriptor() ([]byte, []int)
- func (m *RespSet) GetCode() Code
- func (m *RespSet) GetErrMsg() string
- func (m *RespSet) GetHashKey() uint64
- func (*RespSet) ProtoMessage()
- func (m *RespSet) Reset()
- func (m *RespSet) String() string
- func (m *RespSet) XXX_DiscardUnknown()
- func (m *RespSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RespSet) XXX_Merge(src proto.Message)
- func (m *RespSet) XXX_Size() int
- func (m *RespSet) XXX_Unmarshal(b []byte) error
- type Selector
- func (*Selector) Descriptor() ([]byte, []int)
- func (m *Selector) GetConditions() []*Condition
- func (m *Selector) GetLimit() uint32
- func (m *Selector) GetSkip() uint32
- func (m *Selector) GetSort() *Sort
- func (*Selector) ProtoMessage()
- func (m *Selector) Reset()
- func (m *Selector) String() string
- func (m *Selector) XXX_DiscardUnknown()
- func (m *Selector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Selector) XXX_Merge(src proto.Message)
- func (m *Selector) XXX_Size() int
- func (m *Selector) XXX_Unmarshal(b []byte) error
- type Sort
- func (*Sort) Descriptor() ([]byte, []int)
- func (m *Sort) GetASC() bool
- func (m *Sort) GetParam() string
- func (*Sort) ProtoMessage()
- func (m *Sort) Reset()
- func (m *Sort) String() string
- func (m *Sort) XXX_DiscardUnknown()
- func (m *Sort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Sort) XXX_Merge(src proto.Message)
- func (m *Sort) XXX_Size() int
- func (m *Sort) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var Code_name = map[int32]string{
0: "Success",
1: "Fail",
}
var Code_value = map[string]int32{
"Success": 0,
"Fail": 1,
}
var FormType_name = map[int32]string{
0: "Siam",
1: "MSiam",
}
var FormType_value = map[string]int32{
"Siam": 0,
"MSiam": 1,
}
Functions ¶
func RegisterLilyAPIServer ¶
func RegisterLilyAPIServer(s *grpc.Server, srv LilyAPIServer)
Types ¶
type Condition ¶
type Condition struct { // Param 参数名,由对象结构层级字段通过'.'组成,如 // // ref := &ref{ // i: 1, // s: "2", // in: refIn{ // i: 3, // s: "4", // }, // } // // key可取'i','in.s' Param string `protobuf:"bytes,1,opt,name=Param,proto3" json:"Param,omitempty"` // Cond 条件 gt/lt/eq/dif 大于/小于/等于/不等 Cond string `protobuf:"bytes,2,opt,name=Cond,proto3" json:"Cond,omitempty"` // Value 比较对象,支持int、string、float和bool Value []byte `protobuf:"bytes,3,opt,name=Value,proto3" json:"Value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Condition 条件查询
func (*Condition) Descriptor ¶
func (*Condition) ProtoMessage ¶
func (*Condition) ProtoMessage()
func (*Condition) XXX_DiscardUnknown ¶
func (m *Condition) XXX_DiscardUnknown()
func (*Condition) XXX_Marshal ¶
func (*Condition) XXX_Unmarshal ¶
type Config ¶
type Config struct { // Port 开放端口,便于其它应用访问 Port string `protobuf:"bytes,1,opt,name=Port,proto3" json:"Port,omitempty"` // RootDir Lily服务默认存储路径 RootDir string `protobuf:"bytes,2,opt,name=RootDir,proto3" json:"RootDir,omitempty"` // DataDir Lily服务数据默认存储路径 DataDir string `protobuf:"bytes,3,opt,name=DataDir,proto3" json:"DataDir,omitempty"` // LogDir Lily服务默认日志存储路径 LogDir string `protobuf:"bytes,4,opt,name=LogDir,proto3" json:"LogDir,omitempty"` // LimitOpenFile 限制打开文件描述符次数 LimitOpenFile int32 `protobuf:"varint,5,opt,name=LimitOpenFile,proto3" json:"LimitOpenFile,omitempty"` // TLS 是否开启 TLS TLS bool `protobuf:"varint,6,opt,name=TLS,proto3" json:"TLS,omitempty"` // TLSServerKeyFile lily服务私钥 TLSServerKeyFile string `protobuf:"bytes,7,opt,name=TLSServerKeyFile,proto3" json:"TLSServerKeyFile,omitempty"` // TLSServerCertFile lily服务数字证书 TLSServerCertFile string `protobuf:"bytes,8,opt,name=TLSServerCertFile,proto3" json:"TLSServerCertFile,omitempty"` // Limit 是否启用服务限流策略 Limit bool `protobuf:"varint,9,opt,name=Limit,proto3" json:"Limit,omitempty"` // LimitMillisecond 请求限定的时间段(毫秒) LimitMillisecond int32 `protobuf:"varint,10,opt,name=LimitMillisecond,proto3" json:"LimitMillisecond,omitempty"` // LimitCount 请求限定的时间段内允许的请求次数 LimitCount int32 `protobuf:"varint,11,opt,name=LimitCount,proto3" json:"LimitCount,omitempty"` // LimitIntervalMillisecond 请求允许的最小间隔时间(微秒),0表示不限 LimitIntervalMicrosecond int32 `protobuf:"varint,12,opt,name=LimitIntervalMicrosecond,proto3" json:"LimitIntervalMicrosecond,omitempty"` // LilyLockFilePath Lily当前进程地址存储文件地址 LilyLockFilePath string `protobuf:"bytes,13,opt,name=LilyLockFilePath,proto3" json:"LilyLockFilePath,omitempty"` // LilyBootstrapFilePath Lily重启引导文件地址 LilyBootstrapFilePath string `protobuf:"bytes,14,opt,name=LilyBootstrapFilePath,proto3" json:"LilyBootstrapFilePath,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Conf 数据库引擎对象
func (*Config) Descriptor ¶
func (*Config) GetDataDir ¶
func (*Config) GetLilyBootstrapFilePath ¶
func (*Config) GetLilyLockFilePath ¶
func (*Config) GetLimitCount ¶
func (*Config) GetLimitIntervalMicrosecond ¶
func (*Config) GetLimitMillisecond ¶
func (*Config) GetLimitOpenFile ¶
func (*Config) GetRootDir ¶
func (*Config) GetTLSServerCertFile ¶
func (*Config) GetTLSServerKeyFile ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
type Database ¶
type Database struct { // ID 数据库唯一ID,不能改变 ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // Name 数据库名称,根据需求可以随时变化 Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` // Comment 数据库描述 Comment string `protobuf:"bytes,3,opt,name=Comment,proto3" json:"Comment,omitempty"` // Forms 数据库表集合 Forms map[string]*Form `` /* 151-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Database 数据库对象
func (*Database) Descriptor ¶
func (*Database) GetComment ¶
func (*Database) ProtoMessage ¶
func (*Database) ProtoMessage()
func (*Database) XXX_DiscardUnknown ¶
func (m *Database) XXX_DiscardUnknown()
func (*Database) XXX_Marshal ¶
func (*Database) XXX_Unmarshal ¶
type Form ¶
type Form struct { // ID 表唯一ID,不能改变 ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // Name 表名,根据需求可以随时变化 Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` // Comment 表描述 Comment string `protobuf:"bytes,3,opt,name=Comment,proto3" json:"Comment,omitempty"` // FormType 表类型 SQL/Doc FormType FormType `protobuf:"varint,4,opt,name=FormType,proto3,enum=api.FormType" json:"FormType,omitempty"` // Indexes 索引ID集合 Indexes map[string]*Index `` /* 155-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Form 数据库表对象
func (*Form) Descriptor ¶
func (*Form) GetComment ¶
func (*Form) GetFormType ¶
func (*Form) GetIndexes ¶
func (*Form) ProtoMessage ¶
func (*Form) ProtoMessage()
func (*Form) XXX_DiscardUnknown ¶
func (m *Form) XXX_DiscardUnknown()
func (*Form) XXX_Unmarshal ¶
type Index ¶
type Index struct { // ID 索引唯一ID ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // Primary 是否主键 Primary bool `protobuf:"varint,2,opt,name=Primary,proto3" json:"Primary,omitempty"` // KeyStructure 按照规范结构组成的索引字段名称,由对象结构层级字段通过'.'组成,如'i','in.s' KeyStructure string `protobuf:"bytes,3,opt,name=KeyStructure,proto3" json:"KeyStructure,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Index 索引对象
func (*Index) Descriptor ¶
func (*Index) GetKeyStructure ¶
func (*Index) GetPrimary ¶
func (*Index) ProtoMessage ¶
func (*Index) ProtoMessage()
func (*Index) XXX_DiscardUnknown ¶
func (m *Index) XXX_DiscardUnknown()
func (*Index) XXX_Marshal ¶
func (*Index) XXX_Unmarshal ¶
type Lily ¶
type Lily struct { // databases 数据库集合 Databases map[string]*Database `` /* 159-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Lily 数据库引擎对象
func (*Lily) Descriptor ¶
func (*Lily) GetDatabases ¶
func (*Lily) ProtoMessage ¶
func (*Lily) ProtoMessage()
func (*Lily) XXX_DiscardUnknown ¶
func (m *Lily) XXX_DiscardUnknown()
func (*Lily) XXX_Unmarshal ¶
type LilyAPIClient ¶
type LilyAPIClient interface { // GetConf 获取数据库引擎对象 GetConf(ctx context.Context, in *ReqConf, opts ...grpc.CallOption) (*RespConf, error) // ObtainDatabases 获取数据库集合 ObtainDatabases(ctx context.Context, in *ReqDatabases, opts ...grpc.CallOption) (*RespDatabases, error) // ObtainForms 获取数据库表集合 ObtainForms(ctx context.Context, in *ReqForms, opts ...grpc.CallOption) (*RespForms, error) // CreateDatabase 新建数据库 CreateDatabase(ctx context.Context, in *ReqCreateDatabase, opts ...grpc.CallOption) (*Resp, error) // CreateForm 创建表 CreateForm(ctx context.Context, in *ReqCreateForm, opts ...grpc.CallOption) (*Resp, error) // CreateKey 新建主键 CreateKey(ctx context.Context, in *ReqCreateKey, opts ...grpc.CallOption) (*Resp, error) // CreateIndex 新建索引 CreateIndex(ctx context.Context, in *ReqCreateIndex, opts ...grpc.CallOption) (*Resp, error) // Put 新增数据 Put(ctx context.Context, in *ReqPut, opts ...grpc.CallOption) (*RespPut, error) // Set 新增数据 Set(ctx context.Context, in *ReqSet, opts ...grpc.CallOption) (*RespSet, error) // Get 获取数据 Get(ctx context.Context, in *ReqGet, opts ...grpc.CallOption) (*RespGet, error) // Insert 新增数据 Insert(ctx context.Context, in *ReqInsert, opts ...grpc.CallOption) (*RespInsert, error) // Select 获取数据 Select(ctx context.Context, in *ReqSelect, opts ...grpc.CallOption) (*RespSelect, error) // Remove 删除数据 Remove(ctx context.Context, in *ReqRemove, opts ...grpc.CallOption) (*Resp, error) // Delete 删除数据 Delete(ctx context.Context, in *ReqDelete, opts ...grpc.CallOption) (*RespDelete, error) }
LilyAPIClient is the client API for LilyAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLilyAPIClient ¶
func NewLilyAPIClient(cc *grpc.ClientConn) LilyAPIClient
type LilyAPIServer ¶
type LilyAPIServer interface { // GetConf 获取数据库引擎对象 GetConf(context.Context, *ReqConf) (*RespConf, error) // ObtainDatabases 获取数据库集合 ObtainDatabases(context.Context, *ReqDatabases) (*RespDatabases, error) // ObtainForms 获取数据库表集合 ObtainForms(context.Context, *ReqForms) (*RespForms, error) // CreateDatabase 新建数据库 CreateDatabase(context.Context, *ReqCreateDatabase) (*Resp, error) // CreateForm 创建表 CreateForm(context.Context, *ReqCreateForm) (*Resp, error) // CreateKey 新建主键 CreateKey(context.Context, *ReqCreateKey) (*Resp, error) // CreateIndex 新建索引 CreateIndex(context.Context, *ReqCreateIndex) (*Resp, error) // Put 新增数据 Put(context.Context, *ReqPut) (*RespPut, error) // Set 新增数据 Set(context.Context, *ReqSet) (*RespSet, error) // Get 获取数据 Get(context.Context, *ReqGet) (*RespGet, error) // Insert 新增数据 Insert(context.Context, *ReqInsert) (*RespInsert, error) // Select 获取数据 Select(context.Context, *ReqSelect) (*RespSelect, error) // Remove 删除数据 Remove(context.Context, *ReqRemove) (*Resp, error) // Delete 删除数据 Delete(context.Context, *ReqDelete) (*RespDelete, error) }
LilyAPIServer is the server API for LilyAPI service.
type ReqConf ¶
type ReqConf struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqConf 请求获取数据库引擎对象
func (*ReqConf) Descriptor ¶
func (*ReqConf) ProtoMessage ¶
func (*ReqConf) ProtoMessage()
func (*ReqConf) XXX_DiscardUnknown ¶
func (m *ReqConf) XXX_DiscardUnknown()
func (*ReqConf) XXX_Marshal ¶
func (*ReqConf) XXX_Unmarshal ¶
type ReqCreateDatabase ¶
type ReqCreateDatabase struct { // Name 数据库名称,根据需求可以随时变化 Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` // Comment 数据库描述 Comment string `protobuf:"bytes,2,opt,name=Comment,proto3" json:"Comment,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqCreateDatabase 请求新建数据库
func (*ReqCreateDatabase) Descriptor ¶
func (*ReqCreateDatabase) Descriptor() ([]byte, []int)
func (*ReqCreateDatabase) GetComment ¶
func (m *ReqCreateDatabase) GetComment() string
func (*ReqCreateDatabase) GetName ¶
func (m *ReqCreateDatabase) GetName() string
func (*ReqCreateDatabase) ProtoMessage ¶
func (*ReqCreateDatabase) ProtoMessage()
func (*ReqCreateDatabase) Reset ¶
func (m *ReqCreateDatabase) Reset()
func (*ReqCreateDatabase) String ¶
func (m *ReqCreateDatabase) String() string
func (*ReqCreateDatabase) XXX_DiscardUnknown ¶
func (m *ReqCreateDatabase) XXX_DiscardUnknown()
func (*ReqCreateDatabase) XXX_Marshal ¶
func (m *ReqCreateDatabase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqCreateDatabase) XXX_Merge ¶
func (m *ReqCreateDatabase) XXX_Merge(src proto.Message)
func (*ReqCreateDatabase) XXX_Size ¶
func (m *ReqCreateDatabase) XXX_Size() int
func (*ReqCreateDatabase) XXX_Unmarshal ¶
func (m *ReqCreateDatabase) XXX_Unmarshal(b []byte) error
type ReqCreateForm ¶
type ReqCreateForm struct { // DatabaseName 数据库名称 DatabaseName string `protobuf:"bytes,1,opt,name=DatabaseName,proto3" json:"DatabaseName,omitempty"` // Name 表名称 Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` // Comment 表描述 Comment string `protobuf:"bytes,3,opt,name=Comment,proto3" json:"Comment,omitempty"` // FormType 表类型 FormType FormType `protobuf:"varint,4,opt,name=FormType,proto3,enum=api.FormType" json:"FormType,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqCreateForm 请求创建表
func (*ReqCreateForm) Descriptor ¶
func (*ReqCreateForm) Descriptor() ([]byte, []int)
func (*ReqCreateForm) GetComment ¶
func (m *ReqCreateForm) GetComment() string
func (*ReqCreateForm) GetDatabaseName ¶
func (m *ReqCreateForm) GetDatabaseName() string
func (*ReqCreateForm) GetFormType ¶
func (m *ReqCreateForm) GetFormType() FormType
func (*ReqCreateForm) GetName ¶
func (m *ReqCreateForm) GetName() string
func (*ReqCreateForm) ProtoMessage ¶
func (*ReqCreateForm) ProtoMessage()
func (*ReqCreateForm) Reset ¶
func (m *ReqCreateForm) Reset()
func (*ReqCreateForm) String ¶
func (m *ReqCreateForm) String() string
func (*ReqCreateForm) XXX_DiscardUnknown ¶
func (m *ReqCreateForm) XXX_DiscardUnknown()
func (*ReqCreateForm) XXX_Marshal ¶
func (m *ReqCreateForm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqCreateForm) XXX_Merge ¶
func (m *ReqCreateForm) XXX_Merge(src proto.Message)
func (*ReqCreateForm) XXX_Size ¶
func (m *ReqCreateForm) XXX_Size() int
func (*ReqCreateForm) XXX_Unmarshal ¶
func (m *ReqCreateForm) XXX_Unmarshal(b []byte) error
type ReqCreateIndex ¶
type ReqCreateIndex struct { // DatabaseName 数据库名称 DatabaseName string `protobuf:"bytes,1,opt,name=DatabaseName,proto3" json:"DatabaseName,omitempty"` // FormName 表名称 FormName string `protobuf:"bytes,2,opt,name=FormName,proto3" json:"FormName,omitempty"` // Comment 主键结构名,按照规范结构组成的主键字段名称,由对象结构层级字段通过'.'组成,如'i','in.s' KeyStructure string `protobuf:"bytes,3,opt,name=KeyStructure,proto3" json:"KeyStructure,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqIndex 请求新建索引
func (*ReqCreateIndex) Descriptor ¶
func (*ReqCreateIndex) Descriptor() ([]byte, []int)
func (*ReqCreateIndex) GetDatabaseName ¶
func (m *ReqCreateIndex) GetDatabaseName() string
func (*ReqCreateIndex) GetFormName ¶
func (m *ReqCreateIndex) GetFormName() string
func (*ReqCreateIndex) GetKeyStructure ¶
func (m *ReqCreateIndex) GetKeyStructure() string
func (*ReqCreateIndex) ProtoMessage ¶
func (*ReqCreateIndex) ProtoMessage()
func (*ReqCreateIndex) Reset ¶
func (m *ReqCreateIndex) Reset()
func (*ReqCreateIndex) String ¶
func (m *ReqCreateIndex) String() string
func (*ReqCreateIndex) XXX_DiscardUnknown ¶
func (m *ReqCreateIndex) XXX_DiscardUnknown()
func (*ReqCreateIndex) XXX_Marshal ¶
func (m *ReqCreateIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqCreateIndex) XXX_Merge ¶
func (m *ReqCreateIndex) XXX_Merge(src proto.Message)
func (*ReqCreateIndex) XXX_Size ¶
func (m *ReqCreateIndex) XXX_Size() int
func (*ReqCreateIndex) XXX_Unmarshal ¶
func (m *ReqCreateIndex) XXX_Unmarshal(b []byte) error
type ReqCreateKey ¶
type ReqCreateKey struct { // DatabaseName 数据库名称 DatabaseName string `protobuf:"bytes,1,opt,name=DatabaseName,proto3" json:"DatabaseName,omitempty"` // FormName 表名称 FormName string `protobuf:"bytes,2,opt,name=FormName,proto3" json:"FormName,omitempty"` // Comment 主键结构名,按照规范结构组成的主键字段名称,由对象结构层级字段通过'.'组成,如'i','in.s' KeyStructure string `protobuf:"bytes,3,opt,name=KeyStructure,proto3" json:"KeyStructure,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqKey 请求新建主键
func (*ReqCreateKey) Descriptor ¶
func (*ReqCreateKey) Descriptor() ([]byte, []int)
func (*ReqCreateKey) GetDatabaseName ¶
func (m *ReqCreateKey) GetDatabaseName() string
func (*ReqCreateKey) GetFormName ¶
func (m *ReqCreateKey) GetFormName() string
func (*ReqCreateKey) GetKeyStructure ¶
func (m *ReqCreateKey) GetKeyStructure() string
func (*ReqCreateKey) ProtoMessage ¶
func (*ReqCreateKey) ProtoMessage()
func (*ReqCreateKey) Reset ¶
func (m *ReqCreateKey) Reset()
func (*ReqCreateKey) String ¶
func (m *ReqCreateKey) String() string
func (*ReqCreateKey) XXX_DiscardUnknown ¶
func (m *ReqCreateKey) XXX_DiscardUnknown()
func (*ReqCreateKey) XXX_Marshal ¶
func (m *ReqCreateKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqCreateKey) XXX_Merge ¶
func (m *ReqCreateKey) XXX_Merge(src proto.Message)
func (*ReqCreateKey) XXX_Size ¶
func (m *ReqCreateKey) XXX_Size() int
func (*ReqCreateKey) XXX_Unmarshal ¶
func (m *ReqCreateKey) XXX_Unmarshal(b []byte) error
type ReqDatabases ¶
type ReqDatabases struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqDatabases 请求获取数据库集合
func (*ReqDatabases) Descriptor ¶
func (*ReqDatabases) Descriptor() ([]byte, []int)
func (*ReqDatabases) ProtoMessage ¶
func (*ReqDatabases) ProtoMessage()
func (*ReqDatabases) Reset ¶
func (m *ReqDatabases) Reset()
func (*ReqDatabases) String ¶
func (m *ReqDatabases) String() string
func (*ReqDatabases) XXX_DiscardUnknown ¶
func (m *ReqDatabases) XXX_DiscardUnknown()
func (*ReqDatabases) XXX_Marshal ¶
func (m *ReqDatabases) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReqDatabases) XXX_Merge ¶
func (m *ReqDatabases) XXX_Merge(src proto.Message)
func (*ReqDatabases) XXX_Size ¶
func (m *ReqDatabases) XXX_Size() int
func (*ReqDatabases) XXX_Unmarshal ¶
func (m *ReqDatabases) XXX_Unmarshal(b []byte) error
type ReqDelete ¶
type ReqDelete struct { // DatabaseName 数据库名称 DatabaseName string `protobuf:"bytes,1,opt,name=DatabaseName,proto3" json:"DatabaseName,omitempty"` // FormName 表名称 FormName string `protobuf:"bytes,2,opt,name=FormName,proto3" json:"FormName,omitempty"` // selector 条件选择器 Selector *Selector `protobuf:"bytes,3,opt,name=Selector,proto3" json:"Selector,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqDelete 删除数据
func (*ReqDelete) Descriptor ¶
func (*ReqDelete) GetDatabaseName ¶
func (*ReqDelete) GetFormName ¶
func (*ReqDelete) GetSelector ¶
func (*ReqDelete) ProtoMessage ¶
func (*ReqDelete) ProtoMessage()
func (*ReqDelete) XXX_DiscardUnknown ¶
func (m *ReqDelete) XXX_DiscardUnknown()
func (*ReqDelete) XXX_Marshal ¶
func (*ReqDelete) XXX_Unmarshal ¶
type ReqForms ¶
type ReqForms struct { // DatabaseName 数据库名称 DatabaseName string `protobuf:"bytes,1,opt,name=DatabaseName,proto3" json:"DatabaseName,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqForms 请求获取数据库表集合
func (*ReqForms) Descriptor ¶
func (*ReqForms) GetDatabaseName ¶
func (*ReqForms) ProtoMessage ¶
func (*ReqForms) ProtoMessage()
func (*ReqForms) XXX_DiscardUnknown ¶
func (m *ReqForms) XXX_DiscardUnknown()
func (*ReqForms) XXX_Marshal ¶
func (*ReqForms) XXX_Unmarshal ¶
type ReqGet ¶
type ReqGet struct { // DatabaseName 数据库名称 DatabaseName string `protobuf:"bytes,1,opt,name=DatabaseName,proto3" json:"DatabaseName,omitempty"` // FormName 表名称 FormName string `protobuf:"bytes,2,opt,name=FormName,proto3" json:"FormName,omitempty"` // Key 数据库名称 Key string `protobuf:"bytes,3,opt,name=Key,proto3" json:"Key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqGet 获取数据
func (*ReqGet) Descriptor ¶
func (*ReqGet) GetDatabaseName ¶
func (*ReqGet) GetFormName ¶
func (*ReqGet) ProtoMessage ¶
func (*ReqGet) ProtoMessage()
func (*ReqGet) XXX_DiscardUnknown ¶
func (m *ReqGet) XXX_DiscardUnknown()
func (*ReqGet) XXX_Marshal ¶
func (*ReqGet) XXX_Unmarshal ¶
type ReqInsert ¶
type ReqInsert struct { // DatabaseName 数据库名称 DatabaseName string `protobuf:"bytes,1,opt,name=DatabaseName,proto3" json:"DatabaseName,omitempty"` // FormName 表名称 FormName string `protobuf:"bytes,2,opt,name=FormName,proto3" json:"FormName,omitempty"` // Key 数据库名称 Key string `protobuf:"bytes,3,opt,name=Key,proto3" json:"Key,omitempty"` // Value 插入数据对象 Value []byte `protobuf:"bytes,4,opt,name=Value,proto3" json:"Value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqInsert 新增数据
func (*ReqInsert) Descriptor ¶
func (*ReqInsert) GetDatabaseName ¶
func (*ReqInsert) GetFormName ¶
func (*ReqInsert) ProtoMessage ¶
func (*ReqInsert) ProtoMessage()
func (*ReqInsert) XXX_DiscardUnknown ¶
func (m *ReqInsert) XXX_DiscardUnknown()
func (*ReqInsert) XXX_Marshal ¶
func (*ReqInsert) XXX_Unmarshal ¶
type ReqPut ¶
type ReqPut struct { // DatabaseName 数据库名称 DatabaseName string `protobuf:"bytes,1,opt,name=DatabaseName,proto3" json:"DatabaseName,omitempty"` // FormName 表名称 FormName string `protobuf:"bytes,2,opt,name=FormName,proto3" json:"FormName,omitempty"` // Key 数据库名称 Key string `protobuf:"bytes,3,opt,name=Key,proto3" json:"Key,omitempty"` // Value 插入数据对象 Value []byte `protobuf:"bytes,4,opt,name=Value,proto3" json:"Value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqPut 新增数据
func (*ReqPut) Descriptor ¶
func (*ReqPut) GetDatabaseName ¶
func (*ReqPut) GetFormName ¶
func (*ReqPut) ProtoMessage ¶
func (*ReqPut) ProtoMessage()
func (*ReqPut) XXX_DiscardUnknown ¶
func (m *ReqPut) XXX_DiscardUnknown()
func (*ReqPut) XXX_Marshal ¶
func (*ReqPut) XXX_Unmarshal ¶
type ReqRemove ¶
type ReqRemove struct { // DatabaseName 数据库名称 DatabaseName string `protobuf:"bytes,1,opt,name=DatabaseName,proto3" json:"DatabaseName,omitempty"` // FormName 表名称 FormName string `protobuf:"bytes,2,opt,name=FormName,proto3" json:"FormName,omitempty"` // Key 数据库名称 Key string `protobuf:"bytes,3,opt,name=Key,proto3" json:"Key,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqGet 删除数据
func (*ReqRemove) Descriptor ¶
func (*ReqRemove) GetDatabaseName ¶
func (*ReqRemove) GetFormName ¶
func (*ReqRemove) ProtoMessage ¶
func (*ReqRemove) ProtoMessage()
func (*ReqRemove) XXX_DiscardUnknown ¶
func (m *ReqRemove) XXX_DiscardUnknown()
func (*ReqRemove) XXX_Marshal ¶
func (*ReqRemove) XXX_Unmarshal ¶
type ReqSelect ¶
type ReqSelect struct { // DatabaseName 数据库名称 DatabaseName string `protobuf:"bytes,1,opt,name=DatabaseName,proto3" json:"DatabaseName,omitempty"` // FormName 表名称 FormName string `protobuf:"bytes,2,opt,name=FormName,proto3" json:"FormName,omitempty"` // selector 条件选择器 Selector *Selector `protobuf:"bytes,3,opt,name=Selector,proto3" json:"Selector,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqSelect 获取数据
func (*ReqSelect) Descriptor ¶
func (*ReqSelect) GetDatabaseName ¶
func (*ReqSelect) GetFormName ¶
func (*ReqSelect) GetSelector ¶
func (*ReqSelect) ProtoMessage ¶
func (*ReqSelect) ProtoMessage()
func (*ReqSelect) XXX_DiscardUnknown ¶
func (m *ReqSelect) XXX_DiscardUnknown()
func (*ReqSelect) XXX_Marshal ¶
func (*ReqSelect) XXX_Unmarshal ¶
type ReqSet ¶
type ReqSet struct { // DatabaseName 数据库名称 DatabaseName string `protobuf:"bytes,1,opt,name=DatabaseName,proto3" json:"DatabaseName,omitempty"` // FormName 表名称 FormName string `protobuf:"bytes,2,opt,name=FormName,proto3" json:"FormName,omitempty"` // Key 数据库名称 Key string `protobuf:"bytes,3,opt,name=Key,proto3" json:"Key,omitempty"` // Value 插入数据对象 Value []byte `protobuf:"bytes,4,opt,name=Value,proto3" json:"Value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ReqSet 新增数据
func (*ReqSet) Descriptor ¶
func (*ReqSet) GetDatabaseName ¶
func (*ReqSet) GetFormName ¶
func (*ReqSet) ProtoMessage ¶
func (*ReqSet) ProtoMessage()
func (*ReqSet) XXX_DiscardUnknown ¶
func (m *ReqSet) XXX_DiscardUnknown()
func (*ReqSet) XXX_Marshal ¶
func (*ReqSet) XXX_Unmarshal ¶
type Resp ¶
type Resp struct { // Code 响应结果码 Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=api.Code" json:"Code,omitempty"` // ErrMsg 错误信息 ErrMsg string `protobuf:"bytes,2,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Resp 通用响应对象
func (*Resp) Descriptor ¶
func (*Resp) ProtoMessage ¶
func (*Resp) ProtoMessage()
func (*Resp) XXX_DiscardUnknown ¶
func (m *Resp) XXX_DiscardUnknown()
func (*Resp) XXX_Unmarshal ¶
type RespConf ¶
type RespConf struct { // Code 响应结果码 Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=api.Code" json:"Code,omitempty"` // Conf 数据库引擎对象 Conf *Config `protobuf:"bytes,2,opt,name=Conf,proto3" json:"Conf,omitempty"` // ErrMsg 错误信息 ErrMsg string `protobuf:"bytes,3,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RespConf 响应获取数据库引擎对象
func (*RespConf) Descriptor ¶
func (*RespConf) ProtoMessage ¶
func (*RespConf) ProtoMessage()
func (*RespConf) XXX_DiscardUnknown ¶
func (m *RespConf) XXX_DiscardUnknown()
func (*RespConf) XXX_Marshal ¶
func (*RespConf) XXX_Unmarshal ¶
type RespDatabases ¶
type RespDatabases struct { // Code 响应结果码 Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=api.Code" json:"Code,omitempty"` // Databases 数据库对象集合 Databases []*Database `protobuf:"bytes,2,rep,name=Databases,proto3" json:"Databases,omitempty"` // ErrMsg 错误信息 ErrMsg string `protobuf:"bytes,3,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RespDatabases 响应获取数据库集合
func (*RespDatabases) Descriptor ¶
func (*RespDatabases) Descriptor() ([]byte, []int)
func (*RespDatabases) GetCode ¶
func (m *RespDatabases) GetCode() Code
func (*RespDatabases) GetDatabases ¶
func (m *RespDatabases) GetDatabases() []*Database
func (*RespDatabases) GetErrMsg ¶
func (m *RespDatabases) GetErrMsg() string
func (*RespDatabases) ProtoMessage ¶
func (*RespDatabases) ProtoMessage()
func (*RespDatabases) Reset ¶
func (m *RespDatabases) Reset()
func (*RespDatabases) String ¶
func (m *RespDatabases) String() string
func (*RespDatabases) XXX_DiscardUnknown ¶
func (m *RespDatabases) XXX_DiscardUnknown()
func (*RespDatabases) XXX_Marshal ¶
func (m *RespDatabases) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespDatabases) XXX_Merge ¶
func (m *RespDatabases) XXX_Merge(src proto.Message)
func (*RespDatabases) XXX_Size ¶
func (m *RespDatabases) XXX_Size() int
func (*RespDatabases) XXX_Unmarshal ¶
func (m *RespDatabases) XXX_Unmarshal(b []byte) error
type RespDelete ¶
type RespDelete struct { // Code 响应结果码 Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=api.Code" json:"Code,omitempty"` // Count 获取数据总条数 Count int32 `protobuf:"varint,2,opt,name=Count,proto3" json:"Count,omitempty"` // ErrMsg 错误信息 ErrMsg string `protobuf:"bytes,3,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RespDelete 响应删除数据
func (*RespDelete) Descriptor ¶
func (*RespDelete) Descriptor() ([]byte, []int)
func (*RespDelete) GetCode ¶
func (m *RespDelete) GetCode() Code
func (*RespDelete) GetCount ¶
func (m *RespDelete) GetCount() int32
func (*RespDelete) GetErrMsg ¶
func (m *RespDelete) GetErrMsg() string
func (*RespDelete) ProtoMessage ¶
func (*RespDelete) ProtoMessage()
func (*RespDelete) Reset ¶
func (m *RespDelete) Reset()
func (*RespDelete) String ¶
func (m *RespDelete) String() string
func (*RespDelete) XXX_DiscardUnknown ¶
func (m *RespDelete) XXX_DiscardUnknown()
func (*RespDelete) XXX_Marshal ¶
func (m *RespDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespDelete) XXX_Merge ¶
func (m *RespDelete) XXX_Merge(src proto.Message)
func (*RespDelete) XXX_Size ¶
func (m *RespDelete) XXX_Size() int
func (*RespDelete) XXX_Unmarshal ¶
func (m *RespDelete) XXX_Unmarshal(b []byte) error
type RespForms ¶
type RespForms struct { // Code 响应结果码 Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=api.Code" json:"Code,omitempty"` // Forms 数据库表对象集合 Forms []*Form `protobuf:"bytes,2,rep,name=Forms,proto3" json:"Forms,omitempty"` // ErrMsg 错误信息 ErrMsg string `protobuf:"bytes,3,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RespForms 响应获取数据库表集合
func (*RespForms) Descriptor ¶
func (*RespForms) ProtoMessage ¶
func (*RespForms) ProtoMessage()
func (*RespForms) XXX_DiscardUnknown ¶
func (m *RespForms) XXX_DiscardUnknown()
func (*RespForms) XXX_Marshal ¶
func (*RespForms) XXX_Unmarshal ¶
type RespGet ¶
type RespGet struct { // Code 响应结果码 Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=api.Code" json:"Code,omitempty"` // Value Value Value []byte `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` // ErrMsg 错误信息 ErrMsg string `protobuf:"bytes,3,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RespGet 响应获取数据
func (*RespGet) Descriptor ¶
func (*RespGet) ProtoMessage ¶
func (*RespGet) ProtoMessage()
func (*RespGet) XXX_DiscardUnknown ¶
func (m *RespGet) XXX_DiscardUnknown()
func (*RespGet) XXX_Marshal ¶
func (*RespGet) XXX_Unmarshal ¶
type RespInsert ¶
type RespInsert struct { // Code 响应结果码 Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=api.Code" json:"Code,omitempty"` // HashKey HashKey HashKey uint64 `protobuf:"varint,2,opt,name=HashKey,proto3" json:"HashKey,omitempty"` // ErrMsg 错误信息 ErrMsg string `protobuf:"bytes,3,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RespInsert 响应新增数据
func (*RespInsert) Descriptor ¶
func (*RespInsert) Descriptor() ([]byte, []int)
func (*RespInsert) GetCode ¶
func (m *RespInsert) GetCode() Code
func (*RespInsert) GetErrMsg ¶
func (m *RespInsert) GetErrMsg() string
func (*RespInsert) GetHashKey ¶
func (m *RespInsert) GetHashKey() uint64
func (*RespInsert) ProtoMessage ¶
func (*RespInsert) ProtoMessage()
func (*RespInsert) Reset ¶
func (m *RespInsert) Reset()
func (*RespInsert) String ¶
func (m *RespInsert) String() string
func (*RespInsert) XXX_DiscardUnknown ¶
func (m *RespInsert) XXX_DiscardUnknown()
func (*RespInsert) XXX_Marshal ¶
func (m *RespInsert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespInsert) XXX_Merge ¶
func (m *RespInsert) XXX_Merge(src proto.Message)
func (*RespInsert) XXX_Size ¶
func (m *RespInsert) XXX_Size() int
func (*RespInsert) XXX_Unmarshal ¶
func (m *RespInsert) XXX_Unmarshal(b []byte) error
type RespPut ¶
type RespPut struct { // Code 响应结果码 Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=api.Code" json:"Code,omitempty"` // HashKey HashKey HashKey uint64 `protobuf:"varint,2,opt,name=HashKey,proto3" json:"HashKey,omitempty"` // ErrMsg 错误信息 ErrMsg string `protobuf:"bytes,3,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RespPut 响应新增数据
func (*RespPut) Descriptor ¶
func (*RespPut) GetHashKey ¶
func (*RespPut) ProtoMessage ¶
func (*RespPut) ProtoMessage()
func (*RespPut) XXX_DiscardUnknown ¶
func (m *RespPut) XXX_DiscardUnknown()
func (*RespPut) XXX_Marshal ¶
func (*RespPut) XXX_Unmarshal ¶
type RespSelect ¶
type RespSelect struct { // Code 响应结果码 Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=api.Code" json:"Code,omitempty"` // Count 获取数据总条数 Count int32 `protobuf:"varint,2,opt,name=Count,proto3" json:"Count,omitempty"` // Value 获取数据结果 Value []byte `protobuf:"bytes,3,opt,name=Value,proto3" json:"Value,omitempty"` // ErrMsg 错误信息 ErrMsg string `protobuf:"bytes,4,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RespSelect 响应获取数据
func (*RespSelect) Descriptor ¶
func (*RespSelect) Descriptor() ([]byte, []int)
func (*RespSelect) GetCode ¶
func (m *RespSelect) GetCode() Code
func (*RespSelect) GetCount ¶
func (m *RespSelect) GetCount() int32
func (*RespSelect) GetErrMsg ¶
func (m *RespSelect) GetErrMsg() string
func (*RespSelect) GetValue ¶
func (m *RespSelect) GetValue() []byte
func (*RespSelect) ProtoMessage ¶
func (*RespSelect) ProtoMessage()
func (*RespSelect) Reset ¶
func (m *RespSelect) Reset()
func (*RespSelect) String ¶
func (m *RespSelect) String() string
func (*RespSelect) XXX_DiscardUnknown ¶
func (m *RespSelect) XXX_DiscardUnknown()
func (*RespSelect) XXX_Marshal ¶
func (m *RespSelect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RespSelect) XXX_Merge ¶
func (m *RespSelect) XXX_Merge(src proto.Message)
func (*RespSelect) XXX_Size ¶
func (m *RespSelect) XXX_Size() int
func (*RespSelect) XXX_Unmarshal ¶
func (m *RespSelect) XXX_Unmarshal(b []byte) error
type RespSet ¶
type RespSet struct { // Code 响应结果码 Code Code `protobuf:"varint,1,opt,name=Code,proto3,enum=api.Code" json:"Code,omitempty"` // HashKey HashKey HashKey uint64 `protobuf:"varint,2,opt,name=HashKey,proto3" json:"HashKey,omitempty"` // ErrMsg 错误信息 ErrMsg string `protobuf:"bytes,3,opt,name=ErrMsg,proto3" json:"ErrMsg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RespSet 响应新增数据
func (*RespSet) Descriptor ¶
func (*RespSet) GetHashKey ¶
func (*RespSet) ProtoMessage ¶
func (*RespSet) ProtoMessage()
func (*RespSet) XXX_DiscardUnknown ¶
func (m *RespSet) XXX_DiscardUnknown()
func (*RespSet) XXX_Marshal ¶
func (*RespSet) XXX_Unmarshal ¶
type Selector ¶
type Selector struct { // Conditions 条件查询 Conditions []*Condition `protobuf:"bytes,1,rep,name=Conditions,proto3" json:"Conditions,omitempty"` // Skip 结果集跳过数量 Skip uint32 `protobuf:"varint,2,opt,name=Skip,proto3" json:"Skip,omitempty"` // Sort 排序方式 Sort *Sort `protobuf:"bytes,3,opt,name=Sort,proto3" json:"Sort,omitempty"` // Limit 结果集顺序数量 Limit uint32 `protobuf:"varint,4,opt,name=Limit,proto3" json:"Limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Selector 检索选择器
func (*Selector) Descriptor ¶
func (*Selector) GetConditions ¶
func (*Selector) ProtoMessage ¶
func (*Selector) ProtoMessage()
func (*Selector) XXX_DiscardUnknown ¶
func (m *Selector) XXX_DiscardUnknown()
func (*Selector) XXX_Marshal ¶
func (*Selector) XXX_Unmarshal ¶
type Sort ¶
type Sort struct { // Param 参数名,由对象结构层级字段通过'.'组成,如 // // ref := &ref{ // i: 1, // s: "2", // in: refIn{ // i: 3, // s: "4", // }, // } // // key可取'i','in.s' Param string `protobuf:"bytes,1,opt,name=Param,proto3" json:"Param,omitempty"` // ASC 是否升序 ASC bool `protobuf:"varint,2,opt,name=ASC,proto3" json:"ASC,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Sort 排序方式
func (*Sort) Descriptor ¶
func (*Sort) ProtoMessage ¶
func (*Sort) ProtoMessage()
func (*Sort) XXX_DiscardUnknown ¶
func (m *Sort) XXX_DiscardUnknown()