Documentation ¶
Overview ¶
Package loginservice is a generated protocol buffer package.
It is generated from these files:
protobuf/loginservice/loginservice.proto
It has these top-level messages:
LoginRequest LoginResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLoginServiceServer ¶
func RegisterLoginServiceServer(s *grpc.Server, srv LoginServiceServer)
Types ¶
type LoginRequest ¶
type LoginRequest struct { Email string `protobuf:"bytes,1,opt,name=email" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` }
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) GetEmail ¶
func (m *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (m *LoginRequest) GetPassword() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct {
Token string `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
}
func (*LoginResponse) Descriptor ¶
func (*LoginResponse) Descriptor() ([]byte, []int)
func (*LoginResponse) GetToken ¶
func (m *LoginResponse) GetToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) Reset ¶
func (m *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (m *LoginResponse) String() string
type LoginServiceClient ¶
type LoginServiceClient interface {
Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
}
func NewLoginServiceClient ¶
func NewLoginServiceClient(cc *grpc.ClientConn) LoginServiceClient
type LoginServiceServer ¶
type LoginServiceServer interface {
Login(context.Context, *LoginRequest) (*LoginResponse, error)
}
Click to show internal directories.
Click to hide internal directories.