Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
- type AuthenticationServiceClient
- type AuthenticationServiceServer
- type GetUserRequest
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserResponse) GetPaydAccountId() string
- func (x *GetUserResponse) GetPaydPasswordKey() string
- func (x *GetUserResponse) GetPaydUsername() string
- func (x *GetUserResponse) GetPaydUsernameKey() string
- func (x *GetUserResponse) GetUserId() int64
- func (*GetUserResponse) ProtoMessage()
- func (x *GetUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserResponse) Reset()
- func (x *GetUserResponse) String() string
- type LoginUserRequest
- func (*LoginUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginUserRequest) GetEmail() string
- func (x *LoginUserRequest) GetPassword() string
- func (*LoginUserRequest) ProtoMessage()
- func (x *LoginUserRequest) ProtoReflect() protoreflect.Message
- func (x *LoginUserRequest) Reset()
- func (x *LoginUserRequest) String() string
- type LoginUserResponse
- func (*LoginUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginUserResponse) GetAccessToken() string
- func (x *LoginUserResponse) GetData() *RegisterUserResponse
- func (x *LoginUserResponse) GetExpirationAt() *timestamp.Timestamp
- func (*LoginUserResponse) ProtoMessage()
- func (x *LoginUserResponse) ProtoReflect() protoreflect.Message
- func (x *LoginUserResponse) Reset()
- func (x *LoginUserResponse) String() string
- type RegisterUserRequest
- func (*RegisterUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterUserRequest) GetEmail() string
- func (x *RegisterUserRequest) GetFullname() string
- func (x *RegisterUserRequest) GetPassword() string
- func (x *RegisterUserRequest) GetPaydAccountId() string
- func (x *RegisterUserRequest) GetPaydPasswordApiKey() string
- func (x *RegisterUserRequest) GetPaydUsername() string
- func (x *RegisterUserRequest) GetPaydUsernameApiKey() string
- func (*RegisterUserRequest) ProtoMessage()
- func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterUserRequest) Reset()
- func (x *RegisterUserRequest) String() string
- type RegisterUserResponse
- func (*RegisterUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterUserResponse) GetCreatedAt() *timestamp.Timestamp
- func (x *RegisterUserResponse) GetEmail() string
- func (x *RegisterUserResponse) GetFullname() string
- func (*RegisterUserResponse) ProtoMessage()
- func (x *RegisterUserResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterUserResponse) Reset()
- func (x *RegisterUserResponse) String() string
- type UnimplementedAuthenticationServiceServer
- func (UnimplementedAuthenticationServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedAuthenticationServiceServer) LoginUser(context.Context, *LoginUserRequest) (*LoginUserResponse, error)
- func (UnimplementedAuthenticationServiceServer) RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserResponse, error)
- type UnsafeAuthenticationServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAccessToken() string
- func (x *User) GetCreatedAt() *timestamp.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetFullname() string
- func (x *User) GetPassword() string
- func (x *User) GetPaydAccountId() string
- func (x *User) GetPaydPasswordApiKey() string
- func (x *User) GetPaydUsername() string
- func (x *User) GetPaydUsernameApiKey() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
const ( AuthenticationService_RegisterUser_FullMethodName = "/pb.authenticationService/RegisterUser" AuthenticationService_LoginUser_FullMethodName = "/pb.authenticationService/LoginUser" AuthenticationService_GetUser_FullMethodName = "/pb.authenticationService/GetUser" )
Variables ¶
var AuthenticationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.authenticationService", HandlerType: (*AuthenticationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterUser", Handler: _AuthenticationService_RegisterUser_Handler, }, { MethodName: "LoginUser", Handler: _AuthenticationService_LoginUser_Handler, }, { MethodName: "GetUser", Handler: _AuthenticationService_GetUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service.proto", }
AuthenticationService_ServiceDesc is the grpc.ServiceDesc for AuthenticationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_rpc_get_user_proto protoreflect.FileDescriptor
var File_rpc_login_user_proto protoreflect.FileDescriptor
var File_rpc_register_user_proto protoreflect.FileDescriptor
var File_service_proto protoreflect.FileDescriptor
var File_users_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthenticationServiceServer ¶
func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)
Types ¶
type AuthenticationServiceClient ¶
type AuthenticationServiceClient interface { RegisterUser(ctx context.Context, in *RegisterUserRequest, opts ...grpc.CallOption) (*RegisterUserResponse, error) LoginUser(ctx context.Context, in *LoginUserRequest, opts ...grpc.CallOption) (*LoginUserResponse, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) }
AuthenticationServiceClient is the client API for AuthenticationService 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 NewAuthenticationServiceClient ¶
func NewAuthenticationServiceClient(cc grpc.ClientConnInterface) AuthenticationServiceClient
type AuthenticationServiceServer ¶
type AuthenticationServiceServer interface { RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserResponse, error) LoginUser(context.Context, *LoginUserRequest) (*LoginUserResponse, error) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) // contains filtered or unexported methods }
AuthenticationServiceServer is the server API for AuthenticationService service. All implementations must embed UnimplementedAuthenticationServiceServer for forward compatibility
type GetUserRequest ¶
type GetUserRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetEmail ¶
func (x *GetUserRequest) GetEmail() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetUserResponse ¶
type GetUserResponse struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` PaydUsername string `protobuf:"bytes,2,opt,name=payd_username,json=paydUsername,proto3" json:"payd_username,omitempty"` PaydUsernameKey string `protobuf:"bytes,3,opt,name=payd_username_key,json=paydUsernameKey,proto3" json:"payd_username_key,omitempty"` PaydPasswordKey string `protobuf:"bytes,4,opt,name=payd_password_key,json=paydPasswordKey,proto3" json:"payd_password_key,omitempty"` PaydAccountId string `protobuf:"bytes,5,opt,name=payd_account_id,json=paydAccountId,proto3" json:"payd_account_id,omitempty"` // contains filtered or unexported fields }
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) GetPaydAccountId ¶
func (x *GetUserResponse) GetPaydAccountId() string
func (*GetUserResponse) GetPaydPasswordKey ¶
func (x *GetUserResponse) GetPaydPasswordKey() string
func (*GetUserResponse) GetPaydUsername ¶
func (x *GetUserResponse) GetPaydUsername() string
func (*GetUserResponse) GetPaydUsernameKey ¶
func (x *GetUserResponse) GetPaydUsernameKey() string
func (*GetUserResponse) GetUserId ¶
func (x *GetUserResponse) GetUserId() int64
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
type LoginUserRequest ¶
type LoginUserRequest 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 (*LoginUserRequest) Descriptor
deprecated
func (*LoginUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginUserRequest.ProtoReflect.Descriptor instead.
func (*LoginUserRequest) GetEmail ¶
func (x *LoginUserRequest) GetEmail() string
func (*LoginUserRequest) GetPassword ¶
func (x *LoginUserRequest) GetPassword() string
func (*LoginUserRequest) ProtoMessage ¶
func (*LoginUserRequest) ProtoMessage()
func (*LoginUserRequest) ProtoReflect ¶
func (x *LoginUserRequest) ProtoReflect() protoreflect.Message
func (*LoginUserRequest) Reset ¶
func (x *LoginUserRequest) Reset()
func (*LoginUserRequest) String ¶
func (x *LoginUserRequest) String() string
type LoginUserResponse ¶
type LoginUserResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` ExpirationAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expiration_at,json=expirationAt,proto3" json:"expiration_at,omitempty"` Data *RegisterUserResponse `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*LoginUserResponse) Descriptor
deprecated
func (*LoginUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginUserResponse.ProtoReflect.Descriptor instead.
func (*LoginUserResponse) GetAccessToken ¶
func (x *LoginUserResponse) GetAccessToken() string
func (*LoginUserResponse) GetData ¶
func (x *LoginUserResponse) GetData() *RegisterUserResponse
func (*LoginUserResponse) GetExpirationAt ¶
func (x *LoginUserResponse) GetExpirationAt() *timestamp.Timestamp
func (*LoginUserResponse) ProtoMessage ¶
func (*LoginUserResponse) ProtoMessage()
func (*LoginUserResponse) ProtoReflect ¶
func (x *LoginUserResponse) ProtoReflect() protoreflect.Message
func (*LoginUserResponse) Reset ¶
func (x *LoginUserResponse) Reset()
func (*LoginUserResponse) String ¶
func (x *LoginUserResponse) String() string
type RegisterUserRequest ¶
type RegisterUserRequest struct { Fullname string `protobuf:"bytes,1,opt,name=fullname,proto3" json:"fullname,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` PaydUsername string `protobuf:"bytes,4,opt,name=payd_username,json=paydUsername,proto3" json:"payd_username,omitempty"` PaydPasswordApiKey string `protobuf:"bytes,5,opt,name=payd_password_api_key,json=paydPasswordApiKey,proto3" json:"payd_password_api_key,omitempty"` PaydUsernameApiKey string `protobuf:"bytes,6,opt,name=payd_username_api_key,json=paydUsernameApiKey,proto3" json:"payd_username_api_key,omitempty"` PaydAccountId string `protobuf:"bytes,7,opt,name=payd_account_id,json=paydAccountId,proto3" json:"payd_account_id,omitempty"` // contains filtered or unexported fields }
func (*RegisterUserRequest) Descriptor
deprecated
func (*RegisterUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserRequest.ProtoReflect.Descriptor instead.
func (*RegisterUserRequest) GetEmail ¶
func (x *RegisterUserRequest) GetEmail() string
func (*RegisterUserRequest) GetFullname ¶
func (x *RegisterUserRequest) GetFullname() string
func (*RegisterUserRequest) GetPassword ¶
func (x *RegisterUserRequest) GetPassword() string
func (*RegisterUserRequest) GetPaydAccountId ¶
func (x *RegisterUserRequest) GetPaydAccountId() string
func (*RegisterUserRequest) GetPaydPasswordApiKey ¶
func (x *RegisterUserRequest) GetPaydPasswordApiKey() string
func (*RegisterUserRequest) GetPaydUsername ¶
func (x *RegisterUserRequest) GetPaydUsername() string
func (*RegisterUserRequest) GetPaydUsernameApiKey ¶
func (x *RegisterUserRequest) GetPaydUsernameApiKey() string
func (*RegisterUserRequest) ProtoMessage ¶
func (*RegisterUserRequest) ProtoMessage()
func (*RegisterUserRequest) ProtoReflect ¶
func (x *RegisterUserRequest) ProtoReflect() protoreflect.Message
func (*RegisterUserRequest) Reset ¶
func (x *RegisterUserRequest) Reset()
func (*RegisterUserRequest) String ¶
func (x *RegisterUserRequest) String() string
type RegisterUserResponse ¶
type RegisterUserResponse struct { Fullname string `protobuf:"bytes,1,opt,name=fullname,proto3" json:"fullname,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*RegisterUserResponse) Descriptor
deprecated
func (*RegisterUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserResponse.ProtoReflect.Descriptor instead.
func (*RegisterUserResponse) GetCreatedAt ¶
func (x *RegisterUserResponse) GetCreatedAt() *timestamp.Timestamp
func (*RegisterUserResponse) GetEmail ¶
func (x *RegisterUserResponse) GetEmail() string
func (*RegisterUserResponse) GetFullname ¶
func (x *RegisterUserResponse) GetFullname() string
func (*RegisterUserResponse) ProtoMessage ¶
func (*RegisterUserResponse) ProtoMessage()
func (*RegisterUserResponse) ProtoReflect ¶
func (x *RegisterUserResponse) ProtoReflect() protoreflect.Message
func (*RegisterUserResponse) Reset ¶
func (x *RegisterUserResponse) Reset()
func (*RegisterUserResponse) String ¶
func (x *RegisterUserResponse) String() string
type UnimplementedAuthenticationServiceServer ¶
type UnimplementedAuthenticationServiceServer struct { }
UnimplementedAuthenticationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthenticationServiceServer) GetUser ¶
func (UnimplementedAuthenticationServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedAuthenticationServiceServer) LoginUser ¶
func (UnimplementedAuthenticationServiceServer) LoginUser(context.Context, *LoginUserRequest) (*LoginUserResponse, error)
func (UnimplementedAuthenticationServiceServer) RegisterUser ¶
func (UnimplementedAuthenticationServiceServer) RegisterUser(context.Context, *RegisterUserRequest) (*RegisterUserResponse, error)
type UnsafeAuthenticationServiceServer ¶
type UnsafeAuthenticationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthenticationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticationServiceServer will result in compilation errors.
type User ¶
type User struct { Fullname string `protobuf:"bytes,1,opt,name=fullname,proto3" json:"fullname,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` AccessToken string `protobuf:"bytes,4,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` PaydUsername string `protobuf:"bytes,5,opt,name=payd_username,json=paydUsername,proto3" json:"payd_username,omitempty"` PaydAccountId string `protobuf:"bytes,6,opt,name=payd_account_id,json=paydAccountId,proto3" json:"payd_account_id,omitempty"` PaydPasswordApiKey string `protobuf:"bytes,7,opt,name=payd_password_api_key,json=paydPasswordApiKey,proto3" json:"payd_password_api_key,omitempty"` PaydUsernameApiKey string `protobuf:"bytes,8,opt,name=payd_username_api_key,json=paydUsernameApiKey,proto3" json:"payd_username_api_key,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAccessToken ¶
func (*User) GetCreatedAt ¶
func (*User) GetFullname ¶
func (*User) GetPassword ¶
func (*User) GetPaydAccountId ¶
func (*User) GetPaydPasswordApiKey ¶
func (*User) GetPaydUsername ¶
func (*User) GetPaydUsernameApiKey ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message