Documentation ¶
Overview ¶
Package admin is a generated protocol buffer package.
It is generated from these files:
proto/admin/admin.proto
It has these top-level messages:
Manager CreateReq CreateRsp
Index ¶
- Variables
- func RegisterAdminHandler(s server.Server, hdlr AdminHandler, opts ...server.HandlerOption) error
- type AdminHandler
- type AdminService
- type CreateReq
- func (*CreateReq) Descriptor() ([]byte, []int)
- func (m *CreateReq) GetAccount() string
- func (m *CreateReq) GetEmail() string
- func (m *CreateReq) GetMobile() string
- func (m *CreateReq) GetName() string
- func (m *CreateReq) GetPassword() string
- func (*CreateReq) ProtoMessage()
- func (m *CreateReq) Reset()
- func (m *CreateReq) String() string
- type CreateRsp
- type EState
- type Manager
- func (*Manager) Descriptor() ([]byte, []int)
- func (m *Manager) GetAccount() string
- func (m *Manager) GetEmail() string
- func (m *Manager) GetId() string
- func (m *Manager) GetMobile() string
- func (m *Manager) GetName() string
- func (m *Manager) GetState() EState
- func (*Manager) ProtoMessage()
- func (m *Manager) Reset()
- func (m *Manager) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var EState_name = map[int32]string{
0: "UNKONW",
1: "NORMAL",
2: "FORBID",
3: "DELETE",
}
View Source
var EState_value = map[string]int32{
"UNKONW": 0,
"NORMAL": 1,
"FORBID": 2,
"DELETE": 3,
}
Functions ¶
func RegisterAdminHandler ¶
func RegisterAdminHandler(s server.Server, hdlr AdminHandler, opts ...server.HandlerOption) error
Types ¶
type AdminHandler ¶
type AdminService ¶
type AdminService interface {
Create(ctx context.Context, in *CreateReq, opts ...client.CallOption) (*CreateRsp, error)
}
func NewAdminService ¶
func NewAdminService(name string, c client.Client) AdminService
type CreateReq ¶
type CreateReq struct { Account string `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Mobile string `protobuf:"bytes,4,opt,name=mobile" json:"mobile,omitempty"` Email string `protobuf:"bytes,5,opt,name=email" json:"email,omitempty"` }
func (*CreateReq) Descriptor ¶
func (*CreateReq) GetAccount ¶
func (*CreateReq) GetPassword ¶
func (*CreateReq) ProtoMessage ¶
func (*CreateReq) ProtoMessage()
type CreateRsp ¶
type CreateRsp struct { }
func (*CreateRsp) Descriptor ¶
func (*CreateRsp) ProtoMessage ¶
func (*CreateRsp) ProtoMessage()
type Manager ¶
type Manager struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Account string `protobuf:"bytes,2,opt,name=account" json:"account,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Mobile string `protobuf:"bytes,4,opt,name=mobile" json:"mobile,omitempty"` Email string `protobuf:"bytes,5,opt,name=email" json:"email,omitempty"` State EState `protobuf:"varint,6,opt,name=state,enum=admin.EState" json:"state,omitempty"` }
func (*Manager) Descriptor ¶
func (*Manager) GetAccount ¶
func (*Manager) ProtoMessage ¶
func (*Manager) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.