pb

package
v0.0.0-...-201036b Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUserServer

func RegisterUserServer(s *grpc.Server, srv UserServer)

Types

type LoginReq

type LoginReq struct {
	Username             string   `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Pwd                  string   `protobuf:"bytes,2,opt,name=pwd,proto3" json:"pwd,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LoginReq) Descriptor

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

func (*LoginReq) GetPwd

func (m *LoginReq) GetPwd() string

func (*LoginReq) GetUsername

func (m *LoginReq) GetUsername() string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) Reset

func (m *LoginReq) Reset()

func (*LoginReq) String

func (m *LoginReq) String() string

func (*LoginReq) XXX_DiscardUnknown

func (m *LoginReq) XXX_DiscardUnknown()

func (*LoginReq) XXX_Marshal

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

func (*LoginReq) XXX_Merge

func (dst *LoginReq) XXX_Merge(src proto.Message)

func (*LoginReq) XXX_Size

func (m *LoginReq) XXX_Size() int

func (*LoginReq) XXX_Unmarshal

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

type LoginRes

type LoginRes struct {
	Code                 int64    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg                  string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LoginRes) Descriptor

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

func (*LoginRes) GetCode

func (m *LoginRes) GetCode() int64

func (*LoginRes) GetMsg

func (m *LoginRes) GetMsg() string

func (*LoginRes) ProtoMessage

func (*LoginRes) ProtoMessage()

func (*LoginRes) Reset

func (m *LoginRes) Reset()

func (*LoginRes) String

func (m *LoginRes) String() string

func (*LoginRes) XXX_DiscardUnknown

func (m *LoginRes) XXX_DiscardUnknown()

func (*LoginRes) XXX_Marshal

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

func (*LoginRes) XXX_Merge

func (dst *LoginRes) XXX_Merge(src proto.Message)

func (*LoginRes) XXX_Size

func (m *LoginRes) XXX_Size() int

func (*LoginRes) XXX_Unmarshal

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

type UserClient

type UserClient interface {
	Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginRes, error)
}

UserClient is the client API for User service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewUserClient

func NewUserClient(cc *grpc.ClientConn) UserClient

type UserServer

type UserServer interface {
	Login(context.Context, *LoginReq) (*LoginRes, error)
}

UserServer is the server API for User service.

Jump to

Keyboard shortcuts

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