admin

package
v0.0.0-...-3924a7a Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: MIT Imports: 6 Imported by: 0

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

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 AdminHandler interface {
	Create(context.Context, *CreateReq, *CreateRsp) error
}

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

func (*CreateReq) GetAccount

func (m *CreateReq) GetAccount() string

func (*CreateReq) GetEmail

func (m *CreateReq) GetEmail() string

func (*CreateReq) GetMobile

func (m *CreateReq) GetMobile() string

func (*CreateReq) GetName

func (m *CreateReq) GetName() string

func (*CreateReq) GetPassword

func (m *CreateReq) GetPassword() string

func (*CreateReq) ProtoMessage

func (*CreateReq) ProtoMessage()

func (*CreateReq) Reset

func (m *CreateReq) Reset()

func (*CreateReq) String

func (m *CreateReq) String() string

type CreateRsp

type CreateRsp struct {
}

func (*CreateRsp) Descriptor

func (*CreateRsp) Descriptor() ([]byte, []int)

func (*CreateRsp) ProtoMessage

func (*CreateRsp) ProtoMessage()

func (*CreateRsp) Reset

func (m *CreateRsp) Reset()

func (*CreateRsp) String

func (m *CreateRsp) String() string

type EState

type EState int32

Estate 状态

const (
	EState_UNKONW EState = 0
	EState_NORMAL EState = 1
	EState_FORBID EState = 2
	EState_DELETE EState = 3
)

func (EState) EnumDescriptor

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

func (EState) String

func (x EState) String() string

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

func (*Manager) GetAccount

func (m *Manager) GetAccount() string

func (*Manager) GetEmail

func (m *Manager) GetEmail() string

func (*Manager) GetId

func (m *Manager) GetId() string

func (*Manager) GetMobile

func (m *Manager) GetMobile() string

func (*Manager) GetName

func (m *Manager) GetName() string

func (*Manager) GetState

func (m *Manager) GetState() EState

func (*Manager) ProtoMessage

func (*Manager) ProtoMessage()

func (*Manager) Reset

func (m *Manager) Reset()

func (*Manager) String

func (m *Manager) String() string

Jump to

Keyboard shortcuts

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