api

package
v0.0.0-...-1e5e0da Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Code_name = map[int32]string{
	0: "Success",
	1: "Fail",
}
View Source
var Code_value = map[string]int32{
	"Success": 0,
	"Fail":    1,
}
View Source
var FormType_name = map[int32]string{
	0: "Siam",
	1: "MSiam",
}
View Source
var FormType_value = map[string]int32{
	"Siam":  0,
	"MSiam": 1,
}

Functions

func RegisterLilyAPIServer

func RegisterLilyAPIServer(s *grpc.Server, srv LilyAPIServer)

Types

type Code

type Code int32

Code 响应结果码

const (
	// Success 成功
	Code_Success Code = 0
	// Fail 失败
	Code_Fail Code = 1
)

func (Code) EnumDescriptor

func (Code) EnumDescriptor() ([]byte, []int)

func (Code) String

func (x Code) String() string

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) Descriptor() ([]byte, []int)

func (*Condition) GetCond

func (m *Condition) GetCond() string

func (*Condition) GetParam

func (m *Condition) GetParam() string

func (*Condition) GetValue

func (m *Condition) GetValue() []byte

func (*Condition) ProtoMessage

func (*Condition) ProtoMessage()

func (*Condition) Reset

func (m *Condition) Reset()

func (*Condition) String

func (m *Condition) String() string

func (*Condition) XXX_DiscardUnknown

func (m *Condition) XXX_DiscardUnknown()

func (*Condition) XXX_Marshal

func (m *Condition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Condition) XXX_Merge

func (m *Condition) XXX_Merge(src proto.Message)

func (*Condition) XXX_Size

func (m *Condition) XXX_Size() int

func (*Condition) XXX_Unmarshal

func (m *Condition) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Config) GetDataDir

func (m *Config) GetDataDir() string

func (*Config) GetLilyBootstrapFilePath

func (m *Config) GetLilyBootstrapFilePath() string

func (*Config) GetLilyLockFilePath

func (m *Config) GetLilyLockFilePath() string

func (*Config) GetLimit

func (m *Config) GetLimit() bool

func (*Config) GetLimitCount

func (m *Config) GetLimitCount() int32

func (*Config) GetLimitIntervalMicrosecond

func (m *Config) GetLimitIntervalMicrosecond() int32

func (*Config) GetLimitMillisecond

func (m *Config) GetLimitMillisecond() int32

func (*Config) GetLimitOpenFile

func (m *Config) GetLimitOpenFile() int32

func (*Config) GetLogDir

func (m *Config) GetLogDir() string

func (*Config) GetPort

func (m *Config) GetPort() string

func (*Config) GetRootDir

func (m *Config) GetRootDir() string

func (*Config) GetTLS

func (m *Config) GetTLS() bool

func (*Config) GetTLSServerCertFile

func (m *Config) GetTLSServerCertFile() string

func (*Config) GetTLSServerKeyFile

func (m *Config) GetTLSServerKeyFile() string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

func (m *Config) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Database) GetComment

func (m *Database) GetComment() string

func (*Database) GetForms

func (m *Database) GetForms() map[string]*Form

func (*Database) GetID

func (m *Database) GetID() string

func (*Database) GetName

func (m *Database) GetName() string

func (*Database) ProtoMessage

func (*Database) ProtoMessage()

func (*Database) Reset

func (m *Database) Reset()

func (*Database) String

func (m *Database) String() string

func (*Database) XXX_DiscardUnknown

func (m *Database) XXX_DiscardUnknown()

func (*Database) XXX_Marshal

func (m *Database) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Database) XXX_Merge

func (m *Database) XXX_Merge(src proto.Message)

func (*Database) XXX_Size

func (m *Database) XXX_Size() int

func (*Database) XXX_Unmarshal

func (m *Database) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Form) GetComment

func (m *Form) GetComment() string

func (*Form) GetFormType

func (m *Form) GetFormType() FormType

func (*Form) GetID

func (m *Form) GetID() string

func (*Form) GetIndexes

func (m *Form) GetIndexes() map[string]*Index

func (*Form) GetName

func (m *Form) GetName() string

func (*Form) ProtoMessage

func (*Form) ProtoMessage()

func (*Form) Reset

func (m *Form) Reset()

func (*Form) String

func (m *Form) String() string

func (*Form) XXX_DiscardUnknown

func (m *Form) XXX_DiscardUnknown()

func (*Form) XXX_Marshal

func (m *Form) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Form) XXX_Merge

func (m *Form) XXX_Merge(src proto.Message)

func (*Form) XXX_Size

func (m *Form) XXX_Size() int

func (*Form) XXX_Unmarshal

func (m *Form) XXX_Unmarshal(b []byte) error

type FormType

type FormType int32

FormType 表类型

const (
	// Siam 静态索引方法(static index access method)
	FormType_Siam FormType = 0
	// MSiam 内存静态索引存取方法(memory static index access method)
	FormType_MSiam FormType = 1
)

func (FormType) EnumDescriptor

func (FormType) EnumDescriptor() ([]byte, []int)

func (FormType) String

func (x FormType) String() string

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) Descriptor() ([]byte, []int)

func (*Index) GetID

func (m *Index) GetID() string

func (*Index) GetKeyStructure

func (m *Index) GetKeyStructure() string

func (*Index) GetPrimary

func (m *Index) GetPrimary() bool

func (*Index) ProtoMessage

func (*Index) ProtoMessage()

func (*Index) Reset

func (m *Index) Reset()

func (*Index) String

func (m *Index) String() string

func (*Index) XXX_DiscardUnknown

func (m *Index) XXX_DiscardUnknown()

func (*Index) XXX_Marshal

func (m *Index) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Index) XXX_Merge

func (m *Index) XXX_Merge(src proto.Message)

func (*Index) XXX_Size

func (m *Index) XXX_Size() int

func (*Index) XXX_Unmarshal

func (m *Index) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Lily) GetDatabases

func (m *Lily) GetDatabases() map[string]*Database

func (*Lily) ProtoMessage

func (*Lily) ProtoMessage()

func (*Lily) Reset

func (m *Lily) Reset()

func (*Lily) String

func (m *Lily) String() string

func (*Lily) XXX_DiscardUnknown

func (m *Lily) XXX_DiscardUnknown()

func (*Lily) XXX_Marshal

func (m *Lily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Lily) XXX_Merge

func (m *Lily) XXX_Merge(src proto.Message)

func (*Lily) XXX_Size

func (m *Lily) XXX_Size() int

func (*Lily) XXX_Unmarshal

func (m *Lily) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqConf) ProtoMessage

func (*ReqConf) ProtoMessage()

func (*ReqConf) Reset

func (m *ReqConf) Reset()

func (*ReqConf) String

func (m *ReqConf) String() string

func (*ReqConf) XXX_DiscardUnknown

func (m *ReqConf) XXX_DiscardUnknown()

func (*ReqConf) XXX_Marshal

func (m *ReqConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqConf) XXX_Merge

func (m *ReqConf) XXX_Merge(src proto.Message)

func (*ReqConf) XXX_Size

func (m *ReqConf) XXX_Size() int

func (*ReqConf) XXX_Unmarshal

func (m *ReqConf) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqDelete) GetDatabaseName

func (m *ReqDelete) GetDatabaseName() string

func (*ReqDelete) GetFormName

func (m *ReqDelete) GetFormName() string

func (*ReqDelete) GetSelector

func (m *ReqDelete) GetSelector() *Selector

func (*ReqDelete) ProtoMessage

func (*ReqDelete) ProtoMessage()

func (*ReqDelete) Reset

func (m *ReqDelete) Reset()

func (*ReqDelete) String

func (m *ReqDelete) String() string

func (*ReqDelete) XXX_DiscardUnknown

func (m *ReqDelete) XXX_DiscardUnknown()

func (*ReqDelete) XXX_Marshal

func (m *ReqDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqDelete) XXX_Merge

func (m *ReqDelete) XXX_Merge(src proto.Message)

func (*ReqDelete) XXX_Size

func (m *ReqDelete) XXX_Size() int

func (*ReqDelete) XXX_Unmarshal

func (m *ReqDelete) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqForms) GetDatabaseName

func (m *ReqForms) GetDatabaseName() string

func (*ReqForms) ProtoMessage

func (*ReqForms) ProtoMessage()

func (*ReqForms) Reset

func (m *ReqForms) Reset()

func (*ReqForms) String

func (m *ReqForms) String() string

func (*ReqForms) XXX_DiscardUnknown

func (m *ReqForms) XXX_DiscardUnknown()

func (*ReqForms) XXX_Marshal

func (m *ReqForms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqForms) XXX_Merge

func (m *ReqForms) XXX_Merge(src proto.Message)

func (*ReqForms) XXX_Size

func (m *ReqForms) XXX_Size() int

func (*ReqForms) XXX_Unmarshal

func (m *ReqForms) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqGet) GetDatabaseName

func (m *ReqGet) GetDatabaseName() string

func (*ReqGet) GetFormName

func (m *ReqGet) GetFormName() string

func (*ReqGet) GetKey

func (m *ReqGet) GetKey() string

func (*ReqGet) ProtoMessage

func (*ReqGet) ProtoMessage()

func (*ReqGet) Reset

func (m *ReqGet) Reset()

func (*ReqGet) String

func (m *ReqGet) String() string

func (*ReqGet) XXX_DiscardUnknown

func (m *ReqGet) XXX_DiscardUnknown()

func (*ReqGet) XXX_Marshal

func (m *ReqGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqGet) XXX_Merge

func (m *ReqGet) XXX_Merge(src proto.Message)

func (*ReqGet) XXX_Size

func (m *ReqGet) XXX_Size() int

func (*ReqGet) XXX_Unmarshal

func (m *ReqGet) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqInsert) GetDatabaseName

func (m *ReqInsert) GetDatabaseName() string

func (*ReqInsert) GetFormName

func (m *ReqInsert) GetFormName() string

func (*ReqInsert) GetKey

func (m *ReqInsert) GetKey() string

func (*ReqInsert) GetValue

func (m *ReqInsert) GetValue() []byte

func (*ReqInsert) ProtoMessage

func (*ReqInsert) ProtoMessage()

func (*ReqInsert) Reset

func (m *ReqInsert) Reset()

func (*ReqInsert) String

func (m *ReqInsert) String() string

func (*ReqInsert) XXX_DiscardUnknown

func (m *ReqInsert) XXX_DiscardUnknown()

func (*ReqInsert) XXX_Marshal

func (m *ReqInsert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqInsert) XXX_Merge

func (m *ReqInsert) XXX_Merge(src proto.Message)

func (*ReqInsert) XXX_Size

func (m *ReqInsert) XXX_Size() int

func (*ReqInsert) XXX_Unmarshal

func (m *ReqInsert) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqPut) GetDatabaseName

func (m *ReqPut) GetDatabaseName() string

func (*ReqPut) GetFormName

func (m *ReqPut) GetFormName() string

func (*ReqPut) GetKey

func (m *ReqPut) GetKey() string

func (*ReqPut) GetValue

func (m *ReqPut) GetValue() []byte

func (*ReqPut) ProtoMessage

func (*ReqPut) ProtoMessage()

func (*ReqPut) Reset

func (m *ReqPut) Reset()

func (*ReqPut) String

func (m *ReqPut) String() string

func (*ReqPut) XXX_DiscardUnknown

func (m *ReqPut) XXX_DiscardUnknown()

func (*ReqPut) XXX_Marshal

func (m *ReqPut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqPut) XXX_Merge

func (m *ReqPut) XXX_Merge(src proto.Message)

func (*ReqPut) XXX_Size

func (m *ReqPut) XXX_Size() int

func (*ReqPut) XXX_Unmarshal

func (m *ReqPut) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqRemove) GetDatabaseName

func (m *ReqRemove) GetDatabaseName() string

func (*ReqRemove) GetFormName

func (m *ReqRemove) GetFormName() string

func (*ReqRemove) GetKey

func (m *ReqRemove) GetKey() string

func (*ReqRemove) ProtoMessage

func (*ReqRemove) ProtoMessage()

func (*ReqRemove) Reset

func (m *ReqRemove) Reset()

func (*ReqRemove) String

func (m *ReqRemove) String() string

func (*ReqRemove) XXX_DiscardUnknown

func (m *ReqRemove) XXX_DiscardUnknown()

func (*ReqRemove) XXX_Marshal

func (m *ReqRemove) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqRemove) XXX_Merge

func (m *ReqRemove) XXX_Merge(src proto.Message)

func (*ReqRemove) XXX_Size

func (m *ReqRemove) XXX_Size() int

func (*ReqRemove) XXX_Unmarshal

func (m *ReqRemove) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqSelect) GetDatabaseName

func (m *ReqSelect) GetDatabaseName() string

func (*ReqSelect) GetFormName

func (m *ReqSelect) GetFormName() string

func (*ReqSelect) GetSelector

func (m *ReqSelect) GetSelector() *Selector

func (*ReqSelect) ProtoMessage

func (*ReqSelect) ProtoMessage()

func (*ReqSelect) Reset

func (m *ReqSelect) Reset()

func (*ReqSelect) String

func (m *ReqSelect) String() string

func (*ReqSelect) XXX_DiscardUnknown

func (m *ReqSelect) XXX_DiscardUnknown()

func (*ReqSelect) XXX_Marshal

func (m *ReqSelect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqSelect) XXX_Merge

func (m *ReqSelect) XXX_Merge(src proto.Message)

func (*ReqSelect) XXX_Size

func (m *ReqSelect) XXX_Size() int

func (*ReqSelect) XXX_Unmarshal

func (m *ReqSelect) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*ReqSet) GetDatabaseName

func (m *ReqSet) GetDatabaseName() string

func (*ReqSet) GetFormName

func (m *ReqSet) GetFormName() string

func (*ReqSet) GetKey

func (m *ReqSet) GetKey() string

func (*ReqSet) GetValue

func (m *ReqSet) GetValue() []byte

func (*ReqSet) ProtoMessage

func (*ReqSet) ProtoMessage()

func (*ReqSet) Reset

func (m *ReqSet) Reset()

func (*ReqSet) String

func (m *ReqSet) String() string

func (*ReqSet) XXX_DiscardUnknown

func (m *ReqSet) XXX_DiscardUnknown()

func (*ReqSet) XXX_Marshal

func (m *ReqSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqSet) XXX_Merge

func (m *ReqSet) XXX_Merge(src proto.Message)

func (*ReqSet) XXX_Size

func (m *ReqSet) XXX_Size() int

func (*ReqSet) XXX_Unmarshal

func (m *ReqSet) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Resp) GetCode

func (m *Resp) GetCode() Code

func (*Resp) GetErrMsg

func (m *Resp) GetErrMsg() string

func (*Resp) ProtoMessage

func (*Resp) ProtoMessage()

func (*Resp) Reset

func (m *Resp) Reset()

func (*Resp) String

func (m *Resp) String() string

func (*Resp) XXX_DiscardUnknown

func (m *Resp) XXX_DiscardUnknown()

func (*Resp) XXX_Marshal

func (m *Resp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Resp) XXX_Merge

func (m *Resp) XXX_Merge(src proto.Message)

func (*Resp) XXX_Size

func (m *Resp) XXX_Size() int

func (*Resp) XXX_Unmarshal

func (m *Resp) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*RespConf) GetCode

func (m *RespConf) GetCode() Code

func (*RespConf) GetConf

func (m *RespConf) GetConf() *Config

func (*RespConf) GetErrMsg

func (m *RespConf) GetErrMsg() string

func (*RespConf) ProtoMessage

func (*RespConf) ProtoMessage()

func (*RespConf) Reset

func (m *RespConf) Reset()

func (*RespConf) String

func (m *RespConf) String() string

func (*RespConf) XXX_DiscardUnknown

func (m *RespConf) XXX_DiscardUnknown()

func (*RespConf) XXX_Marshal

func (m *RespConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RespConf) XXX_Merge

func (m *RespConf) XXX_Merge(src proto.Message)

func (*RespConf) XXX_Size

func (m *RespConf) XXX_Size() int

func (*RespConf) XXX_Unmarshal

func (m *RespConf) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*RespForms) GetCode

func (m *RespForms) GetCode() Code

func (*RespForms) GetErrMsg

func (m *RespForms) GetErrMsg() string

func (*RespForms) GetForms

func (m *RespForms) GetForms() []*Form

func (*RespForms) ProtoMessage

func (*RespForms) ProtoMessage()

func (*RespForms) Reset

func (m *RespForms) Reset()

func (*RespForms) String

func (m *RespForms) String() string

func (*RespForms) XXX_DiscardUnknown

func (m *RespForms) XXX_DiscardUnknown()

func (*RespForms) XXX_Marshal

func (m *RespForms) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RespForms) XXX_Merge

func (m *RespForms) XXX_Merge(src proto.Message)

func (*RespForms) XXX_Size

func (m *RespForms) XXX_Size() int

func (*RespForms) XXX_Unmarshal

func (m *RespForms) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*RespGet) GetCode

func (m *RespGet) GetCode() Code

func (*RespGet) GetErrMsg

func (m *RespGet) GetErrMsg() string

func (*RespGet) GetValue

func (m *RespGet) GetValue() []byte

func (*RespGet) ProtoMessage

func (*RespGet) ProtoMessage()

func (*RespGet) Reset

func (m *RespGet) Reset()

func (*RespGet) String

func (m *RespGet) String() string

func (*RespGet) XXX_DiscardUnknown

func (m *RespGet) XXX_DiscardUnknown()

func (*RespGet) XXX_Marshal

func (m *RespGet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RespGet) XXX_Merge

func (m *RespGet) XXX_Merge(src proto.Message)

func (*RespGet) XXX_Size

func (m *RespGet) XXX_Size() int

func (*RespGet) XXX_Unmarshal

func (m *RespGet) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*RespPut) GetCode

func (m *RespPut) GetCode() Code

func (*RespPut) GetErrMsg

func (m *RespPut) GetErrMsg() string

func (*RespPut) GetHashKey

func (m *RespPut) GetHashKey() uint64

func (*RespPut) ProtoMessage

func (*RespPut) ProtoMessage()

func (*RespPut) Reset

func (m *RespPut) Reset()

func (*RespPut) String

func (m *RespPut) String() string

func (*RespPut) XXX_DiscardUnknown

func (m *RespPut) XXX_DiscardUnknown()

func (*RespPut) XXX_Marshal

func (m *RespPut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RespPut) XXX_Merge

func (m *RespPut) XXX_Merge(src proto.Message)

func (*RespPut) XXX_Size

func (m *RespPut) XXX_Size() int

func (*RespPut) XXX_Unmarshal

func (m *RespPut) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*RespSet) GetCode

func (m *RespSet) GetCode() Code

func (*RespSet) GetErrMsg

func (m *RespSet) GetErrMsg() string

func (*RespSet) GetHashKey

func (m *RespSet) GetHashKey() uint64

func (*RespSet) ProtoMessage

func (*RespSet) ProtoMessage()

func (*RespSet) Reset

func (m *RespSet) Reset()

func (*RespSet) String

func (m *RespSet) String() string

func (*RespSet) XXX_DiscardUnknown

func (m *RespSet) XXX_DiscardUnknown()

func (*RespSet) XXX_Marshal

func (m *RespSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RespSet) XXX_Merge

func (m *RespSet) XXX_Merge(src proto.Message)

func (*RespSet) XXX_Size

func (m *RespSet) XXX_Size() int

func (*RespSet) XXX_Unmarshal

func (m *RespSet) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Selector) GetConditions

func (m *Selector) GetConditions() []*Condition

func (*Selector) GetLimit

func (m *Selector) GetLimit() uint32

func (*Selector) GetSkip

func (m *Selector) GetSkip() uint32

func (*Selector) GetSort

func (m *Selector) GetSort() *Sort

func (*Selector) ProtoMessage

func (*Selector) ProtoMessage()

func (*Selector) Reset

func (m *Selector) Reset()

func (*Selector) String

func (m *Selector) String() string

func (*Selector) XXX_DiscardUnknown

func (m *Selector) XXX_DiscardUnknown()

func (*Selector) XXX_Marshal

func (m *Selector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Selector) XXX_Merge

func (m *Selector) XXX_Merge(src proto.Message)

func (*Selector) XXX_Size

func (m *Selector) XXX_Size() int

func (*Selector) XXX_Unmarshal

func (m *Selector) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Sort) GetASC

func (m *Sort) GetASC() bool

func (*Sort) GetParam

func (m *Sort) GetParam() string

func (*Sort) ProtoMessage

func (*Sort) ProtoMessage()

func (*Sort) Reset

func (m *Sort) Reset()

func (*Sort) String

func (m *Sort) String() string

func (*Sort) XXX_DiscardUnknown

func (m *Sort) XXX_DiscardUnknown()

func (*Sort) XXX_Marshal

func (m *Sort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sort) XXX_Merge

func (m *Sort) XXX_Merge(src proto.Message)

func (*Sort) XXX_Size

func (m *Sort) XXX_Size() int

func (*Sort) XXX_Unmarshal

func (m *Sort) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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