Documentation
¶
Overview ¶
Package dbagent is a generated protocol buffer package.
It is generated from these files:
base.proto db_agent_server.proto test_user.proto
It has these top-level messages:
Nil BoolValue IntValue StringValue KV StringList Int64List TestUser ListUser
Package dbagent is a generated protocol buffer package.
It is generated from these files:
base.proto db_agent_server.proto test_user.proto
It has these top-level messages:
Nil BoolValue IntValue StringValue KV StringList Int64List TestUser ListUser
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDbAgentServerHandler ¶
func RegisterDbAgentServerHandler(s server.Server, hdlr DbAgentServerHandler, opts ...server.HandlerOption) error
Types ¶
type BoolValue ¶
type BoolValue struct {
Value bool `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
}
func (*BoolValue) Descriptor ¶
func (*BoolValue) ProtoMessage ¶
func (*BoolValue) ProtoMessage()
type DbAgentServerHandler ¶
type DbAgentServerHandler interface {
GetOneTestUser(context.Context, *StringValue, *TestUser) error
GetAllTestUser(context.Context, *StringValue, *ListUser) error
}
type DbAgentServerService ¶
type DbAgentServerService interface {
GetOneTestUser(ctx context.Context, in *StringValue, opts ...client.CallOption) (*TestUser, error)
GetAllTestUser(ctx context.Context, in *StringValue, opts ...client.CallOption) (*ListUser, error)
}
func NewDbAgentServerService ¶
func NewDbAgentServerService(name string, c client.Client) DbAgentServerService
type Int64List ¶
type Int64List struct {
List []int64 `protobuf:"varint,1,rep,packed,name=list" json:"list,omitempty"`
}
func (*Int64List) Descriptor ¶
func (*Int64List) ProtoMessage ¶
func (*Int64List) ProtoMessage()
type IntValue ¶
type IntValue struct {
Value int64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
}
func (*IntValue) Descriptor ¶
func (*IntValue) ProtoMessage ¶
func (*IntValue) ProtoMessage()
type KV ¶
type KV struct {
Field string `protobuf:"bytes,1,opt,name=field" json:"field,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
}
func (*KV) Descriptor ¶
func (*KV) ProtoMessage ¶
func (*KV) ProtoMessage()
type ListUser ¶
type ListUser struct {
Users []*TestUser `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
}
func (*ListUser) Descriptor ¶
func (*ListUser) ProtoMessage ¶
func (*ListUser) ProtoMessage()
type Nil ¶
type Nil struct {
}
func (*Nil) Descriptor ¶
func (*Nil) ProtoMessage ¶
func (*Nil) ProtoMessage()
type StringList ¶
type StringList struct {
List []string `protobuf:"bytes,1,rep,name=list" json:"list,omitempty"`
}
func (*StringList) Descriptor ¶
func (*StringList) Descriptor() ([]byte, []int)
func (*StringList) GetList ¶
func (m *StringList) GetList() []string
func (*StringList) ProtoMessage ¶
func (*StringList) ProtoMessage()
func (*StringList) Reset ¶
func (m *StringList) Reset()
func (*StringList) String ¶
func (m *StringList) String() string
type StringValue ¶
type StringValue struct {
Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
}
func (*StringValue) Descriptor ¶
func (*StringValue) Descriptor() ([]byte, []int)
func (*StringValue) GetValue ¶
func (m *StringValue) GetValue() string
func (*StringValue) ProtoMessage ¶
func (*StringValue) ProtoMessage()
func (*StringValue) Reset ¶
func (m *StringValue) Reset()
func (*StringValue) String ¶
func (m *StringValue) String() string
type TestUser ¶
type TestUser struct {
Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
Account string `protobuf:"bytes,2,opt,name=account" json:"account,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password" json:"password,omitempty"`
}
func (*TestUser) Descriptor ¶
func (*TestUser) GetAccount ¶
func (*TestUser) GetPassword ¶
func (*TestUser) ProtoMessage ¶
func (*TestUser) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.