user

package
v0.0.0-...-b08a57f Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: MIT 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 GetUserInfoReq

type GetUserInfoReq struct {
	UserID               int64    `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserInfoReq) Descriptor

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

func (*GetUserInfoReq) GetUserID

func (m *GetUserInfoReq) GetUserID() int64

func (*GetUserInfoReq) ProtoMessage

func (*GetUserInfoReq) ProtoMessage()

func (*GetUserInfoReq) Reset

func (m *GetUserInfoReq) Reset()

func (*GetUserInfoReq) String

func (m *GetUserInfoReq) String() string

func (*GetUserInfoReq) XXX_DiscardUnknown

func (m *GetUserInfoReq) XXX_DiscardUnknown()

func (*GetUserInfoReq) XXX_Marshal

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

func (*GetUserInfoReq) XXX_Merge

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

func (*GetUserInfoReq) XXX_Size

func (m *GetUserInfoReq) XXX_Size() int

func (*GetUserInfoReq) XXX_Unmarshal

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

type GetUserInfoRsp

type GetUserInfoRsp struct {
	UserID               int64    `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"`
	Username             string   `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetUserInfoRsp) Descriptor

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

func (*GetUserInfoRsp) GetName

func (m *GetUserInfoRsp) GetName() string

func (*GetUserInfoRsp) GetUserID

func (m *GetUserInfoRsp) GetUserID() int64

func (*GetUserInfoRsp) GetUsername

func (m *GetUserInfoRsp) GetUsername() string

func (*GetUserInfoRsp) ProtoMessage

func (*GetUserInfoRsp) ProtoMessage()

func (*GetUserInfoRsp) Reset

func (m *GetUserInfoRsp) Reset()

func (*GetUserInfoRsp) String

func (m *GetUserInfoRsp) String() string

func (*GetUserInfoRsp) XXX_DiscardUnknown

func (m *GetUserInfoRsp) XXX_DiscardUnknown()

func (*GetUserInfoRsp) XXX_Marshal

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

func (*GetUserInfoRsp) XXX_Merge

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

func (*GetUserInfoRsp) XXX_Size

func (m *GetUserInfoRsp) XXX_Size() int

func (*GetUserInfoRsp) XXX_Unmarshal

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

type UserClient

type UserClient interface {
	// 获取用户信息
	GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoRsp, 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 {
	// 获取用户信息
	GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoRsp, 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