Documentation ¶
Index ¶
- Variables
- func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
- type AccountServiceClient
- type AccountServiceServer
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetPassword() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetAccount() *account.Account
- func (x *LoginResponse) GetError() string
- func (x *LoginResponse) GetJwt() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type SignUpRequest
- type SignUpResponse
- func (*SignUpResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignUpResponse) GetError() string
- func (x *SignUpResponse) GetJwt() string
- func (*SignUpResponse) ProtoMessage()
- func (x *SignUpResponse) ProtoReflect() protoreflect.Message
- func (x *SignUpResponse) Reset()
- func (x *SignUpResponse) String() string
- type UnimplementedAccountServiceServer
- type UnsafeAccountServiceServer
Constants ¶
This section is empty.
Variables ¶
var AccountService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "accountapi.AccountService", HandlerType: (*AccountServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "LoginService", Handler: _AccountService_LoginService_Handler, }, { MethodName: "SignUpService", Handler: _AccountService_SignUpService_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/v1/services/account/account_api.proto", }
AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_v1_services_account_account_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountServiceServer ¶
func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
Types ¶
type AccountServiceClient ¶
type AccountServiceClient interface { LoginService(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) SignUpService(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*SignUpResponse, error) }
AccountServiceClient is the client API for AccountService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAccountServiceClient ¶
func NewAccountServiceClient(cc grpc.ClientConnInterface) AccountServiceClient
type AccountServiceServer ¶
type AccountServiceServer interface { LoginService(context.Context, *LoginRequest) (*LoginResponse, error) SignUpService(context.Context, *SignUpRequest) (*SignUpResponse, error) }
AccountServiceServer is the server API for AccountService service. All implementations should embed UnimplementedAccountServiceServer for forward compatibility
type LoginRequest ¶
type LoginRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Account *account.Account `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` Jwt string `protobuf:"bytes,3,opt,name=jwt,proto3" json:"jwt,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetAccount ¶
func (x *LoginResponse) GetAccount() *account.Account
func (*LoginResponse) GetError ¶
func (x *LoginResponse) GetError() string
func (*LoginResponse) GetJwt ¶ added in v0.0.3
func (x *LoginResponse) GetJwt() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type SignUpRequest ¶
type SignUpRequest struct { Account *account.Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*SignUpRequest) Descriptor
deprecated
func (*SignUpRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.
func (*SignUpRequest) GetAccount ¶
func (x *SignUpRequest) GetAccount() *account.Account
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 SignUpResponse ¶
type SignUpResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Jwt string `protobuf:"bytes,2,opt,name=jwt,proto3" json:"jwt,omitempty"` // contains filtered or unexported fields }
func (*SignUpResponse) Descriptor
deprecated
func (*SignUpResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignUpResponse.ProtoReflect.Descriptor instead.
func (*SignUpResponse) GetError ¶
func (x *SignUpResponse) GetError() string
func (*SignUpResponse) GetJwt ¶
func (x *SignUpResponse) GetJwt() string
func (*SignUpResponse) ProtoMessage ¶
func (*SignUpResponse) ProtoMessage()
func (*SignUpResponse) ProtoReflect ¶
func (x *SignUpResponse) ProtoReflect() protoreflect.Message
func (*SignUpResponse) Reset ¶
func (x *SignUpResponse) Reset()
func (*SignUpResponse) String ¶
func (x *SignUpResponse) String() string
type UnimplementedAccountServiceServer ¶
type UnimplementedAccountServiceServer struct { }
UnimplementedAccountServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAccountServiceServer) LoginService ¶
func (UnimplementedAccountServiceServer) LoginService(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAccountServiceServer) SignUpService ¶
func (UnimplementedAccountServiceServer) SignUpService(context.Context, *SignUpRequest) (*SignUpResponse, error)
type UnsafeAccountServiceServer ¶
type UnsafeAccountServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAccountServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServiceServer will result in compilation errors.