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 RegisterMsgServer

func RegisterMsgServer(s *grpc.Server, srv MsgServer)

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"`
	Body                 *LoginResBody `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*LoginRes) Descriptor

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

func (*LoginRes) GetBody

func (m *LoginRes) GetBody() *LoginResBody

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 LoginResBody

type LoginResBody struct {
	Userid               string   `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid,omitempty"`
	UnreadCount          int64    `protobuf:"varint,2,opt,name=unread_count,json=unreadCount,proto3" json:"unread_count,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LoginResBody) Descriptor

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

func (*LoginResBody) GetUnreadCount

func (m *LoginResBody) GetUnreadCount() int64

func (*LoginResBody) GetUserid

func (m *LoginResBody) GetUserid() string

func (*LoginResBody) ProtoMessage

func (*LoginResBody) ProtoMessage()

func (*LoginResBody) Reset

func (m *LoginResBody) Reset()

func (*LoginResBody) String

func (m *LoginResBody) String() string

func (*LoginResBody) XXX_DiscardUnknown

func (m *LoginResBody) XXX_DiscardUnknown()

func (*LoginResBody) XXX_Marshal

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

func (*LoginResBody) XXX_Merge

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

func (*LoginResBody) XXX_Size

func (m *LoginResBody) XXX_Size() int

func (*LoginResBody) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	GetUnRead(ctx context.Context, in *UnReadReq, opts ...grpc.CallOption) (*UnReadRes, error)
}

MsgClient is the client API for Msg service.

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

func NewMsgClient

func NewMsgClient(cc *grpc.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	GetUnRead(context.Context, *UnReadReq) (*UnReadRes, error)
}

MsgServer is the server API for Msg service.

type UnReadReq

type UnReadReq struct {
	Userid               string   `protobuf:"bytes,1,opt,name=userid,proto3" json:"userid,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UnReadReq) Descriptor

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

func (*UnReadReq) GetUserid

func (m *UnReadReq) GetUserid() string

func (*UnReadReq) ProtoMessage

func (*UnReadReq) ProtoMessage()

func (*UnReadReq) Reset

func (m *UnReadReq) Reset()

func (*UnReadReq) String

func (m *UnReadReq) String() string

func (*UnReadReq) XXX_DiscardUnknown

func (m *UnReadReq) XXX_DiscardUnknown()

func (*UnReadReq) XXX_Marshal

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

func (*UnReadReq) XXX_Merge

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

func (*UnReadReq) XXX_Size

func (m *UnReadReq) XXX_Size() int

func (*UnReadReq) XXX_Unmarshal

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

type UnReadRes

type UnReadRes 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"`
	Body                 *UnReadResBody `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*UnReadRes) Descriptor

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

func (*UnReadRes) GetBody

func (m *UnReadRes) GetBody() *UnReadResBody

func (*UnReadRes) GetCode

func (m *UnReadRes) GetCode() int64

func (*UnReadRes) GetMsg

func (m *UnReadRes) GetMsg() string

func (*UnReadRes) ProtoMessage

func (*UnReadRes) ProtoMessage()

func (*UnReadRes) Reset

func (m *UnReadRes) Reset()

func (*UnReadRes) String

func (m *UnReadRes) String() string

func (*UnReadRes) XXX_DiscardUnknown

func (m *UnReadRes) XXX_DiscardUnknown()

func (*UnReadRes) XXX_Marshal

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

func (*UnReadRes) XXX_Merge

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

func (*UnReadRes) XXX_Size

func (m *UnReadRes) XXX_Size() int

func (*UnReadRes) XXX_Unmarshal

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

type UnReadResBody

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

func (*UnReadResBody) Descriptor

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

func (*UnReadResBody) GetCount

func (m *UnReadResBody) GetCount() int64

func (*UnReadResBody) ProtoMessage

func (*UnReadResBody) ProtoMessage()

func (*UnReadResBody) Reset

func (m *UnReadResBody) Reset()

func (*UnReadResBody) String

func (m *UnReadResBody) String() string

func (*UnReadResBody) XXX_DiscardUnknown

func (m *UnReadResBody) XXX_DiscardUnknown()

func (*UnReadResBody) XXX_Marshal

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

func (*UnReadResBody) XXX_Merge

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

func (*UnReadResBody) XXX_Size

func (m *UnReadResBody) XXX_Size() int

func (*UnReadResBody) XXX_Unmarshal

func (m *UnReadResBody) 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