Documentation ¶
Index ¶
- Variables
- func RegisterAccountServer(s *grpc.Server, srv AccountServer)
- type AccountClient
- type AccountServer
- type SigninReply
- type SigninRequest
- func (*SigninRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SigninRequest) GetName() string
- func (x *SigninRequest) GetPassword() string
- func (*SigninRequest) ProtoMessage()
- func (x *SigninRequest) ProtoReflect() protoreflect.Message
- func (x *SigninRequest) Reset()
- func (x *SigninRequest) String() string
- type SignupReply
- type SignupRequest
- func (*SignupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignupRequest) GetName() string
- func (x *SignupRequest) GetPassword() string
- func (*SignupRequest) ProtoMessage()
- func (x *SignupRequest) ProtoReflect() protoreflect.Message
- func (x *SignupRequest) Reset()
- func (x *SignupRequest) String() string
- type UnimplementedAccountServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_account_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountServer ¶
func RegisterAccountServer(s *grpc.Server, srv AccountServer)
Types ¶
type AccountClient ¶
type AccountClient interface { Signup(ctx context.Context, in *SignupRequest, opts ...grpc.CallOption) (*SignupReply, error) Signin(ctx context.Context, in *SigninRequest, opts ...grpc.CallOption) (*SigninReply, error) }
AccountClient is the client API for Account service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountClient ¶
func NewAccountClient(cc grpc.ClientConnInterface) AccountClient
type AccountServer ¶
type AccountServer interface { Signup(context.Context, *SignupRequest) (*SignupReply, error) Signin(context.Context, *SigninRequest) (*SigninReply, error) }
AccountServer is the server API for Account service.
type SigninReply ¶
type SigninReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*SigninReply) Descriptor
deprecated
func (*SigninReply) Descriptor() ([]byte, []int)
Deprecated: Use SigninReply.ProtoReflect.Descriptor instead.
func (*SigninReply) GetToken ¶
func (x *SigninReply) GetToken() string
func (*SigninReply) ProtoMessage ¶
func (*SigninReply) ProtoMessage()
func (*SigninReply) ProtoReflect ¶
func (x *SigninReply) ProtoReflect() protoreflect.Message
func (*SigninReply) Reset ¶
func (x *SigninReply) Reset()
func (*SigninReply) String ¶
func (x *SigninReply) String() string
type SigninRequest ¶
type SigninRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SigninRequest) Descriptor
deprecated
func (*SigninRequest) Descriptor() ([]byte, []int)
Deprecated: Use SigninRequest.ProtoReflect.Descriptor instead.
func (*SigninRequest) GetName ¶
func (x *SigninRequest) GetName() string
func (*SigninRequest) GetPassword ¶
func (x *SigninRequest) GetPassword() string
func (*SigninRequest) ProtoMessage ¶
func (*SigninRequest) ProtoMessage()
func (*SigninRequest) ProtoReflect ¶
func (x *SigninRequest) ProtoReflect() protoreflect.Message
func (*SigninRequest) Reset ¶
func (x *SigninRequest) Reset()
func (*SigninRequest) String ¶
func (x *SigninRequest) String() string
type SignupReply ¶
type SignupReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*SignupReply) Descriptor
deprecated
func (*SignupReply) Descriptor() ([]byte, []int)
Deprecated: Use SignupReply.ProtoReflect.Descriptor instead.
func (*SignupReply) GetToken ¶
func (x *SignupReply) GetToken() string
func (*SignupReply) ProtoMessage ¶
func (*SignupReply) ProtoMessage()
func (*SignupReply) ProtoReflect ¶
func (x *SignupReply) ProtoReflect() protoreflect.Message
func (*SignupReply) Reset ¶
func (x *SignupReply) Reset()
func (*SignupReply) String ¶
func (x *SignupReply) String() string
type SignupRequest ¶
type SignupRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SignupRequest) Descriptor
deprecated
func (*SignupRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignupRequest.ProtoReflect.Descriptor instead.
func (*SignupRequest) GetName ¶
func (x *SignupRequest) GetName() string
func (*SignupRequest) GetPassword ¶
func (x *SignupRequest) GetPassword() string
func (*SignupRequest) ProtoMessage ¶
func (*SignupRequest) ProtoMessage()
func (*SignupRequest) ProtoReflect ¶
func (x *SignupRequest) ProtoReflect() protoreflect.Message
func (*SignupRequest) Reset ¶
func (x *SignupRequest) Reset()
func (*SignupRequest) String ¶
func (x *SignupRequest) String() string
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct { }
UnimplementedAccountServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountServer) Signin ¶
func (*UnimplementedAccountServer) Signin(context.Context, *SigninRequest) (*SigninReply, error)
func (*UnimplementedAccountServer) Signup ¶
func (*UnimplementedAccountServer) Signup(context.Context, *SignupRequest) (*SignupReply, error)
Click to show internal directories.
Click to hide internal directories.