pb

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 7 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 Login

type Login struct {
	Account              string   `protobuf:"bytes,1,opt,name=Account,proto3" json:"Account,omitempty"`
	Password             string   `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Login) Descriptor

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

func (*Login) GetAccount

func (m *Login) GetAccount() string

func (*Login) GetPassword

func (m *Login) GetPassword() string

func (*Login) ProtoMessage

func (*Login) ProtoMessage()

func (*Login) Reset

func (m *Login) Reset()

func (*Login) String

func (m *Login) String() string

func (*Login) XXX_DiscardUnknown

func (m *Login) XXX_DiscardUnknown()

func (*Login) XXX_Marshal

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

func (*Login) XXX_Merge

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

func (*Login) XXX_Size

func (m *Login) XXX_Size() int

func (*Login) XXX_Unmarshal

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

type LoginAck

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

func (*LoginAck) Descriptor

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

func (*LoginAck) GetToken

func (m *LoginAck) GetToken() string

func (*LoginAck) ProtoMessage

func (*LoginAck) ProtoMessage()

func (*LoginAck) Reset

func (m *LoginAck) Reset()

func (*LoginAck) String

func (m *LoginAck) String() string

func (*LoginAck) XXX_DiscardUnknown

func (m *LoginAck) XXX_DiscardUnknown()

func (*LoginAck) XXX_Marshal

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

func (*LoginAck) XXX_Merge

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

func (*LoginAck) XXX_Size

func (m *LoginAck) XXX_Size() int

func (*LoginAck) XXX_Unmarshal

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

type UnimplementedUserServer

type UnimplementedUserServer struct {
}

UnimplementedUserServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserServer) RpcUserLogin

func (*UnimplementedUserServer) RpcUserLogin(ctx context.Context, req *Login) (*LoginAck, error)

type UserClient

type UserClient interface {
	RpcUserLogin(ctx context.Context, in *Login, opts ...grpc.CallOption) (*LoginAck, 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 {
	RpcUserLogin(context.Context, *Login) (*LoginAck, 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