pb

package
v0.0.0-...-ded7410 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthenticationService_RegisterUser_FullMethodName = "/pb.authenticationService/RegisterUser"
	AuthenticationService_LoginUser_FullMethodName    = "/pb.authenticationService/LoginUser"
	AuthenticationService_GetUser_FullMethodName      = "/pb.authenticationService/GetUser"
)

Variables

View Source
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)

View Source
var File_rpc_get_user_proto protoreflect.FileDescriptor
View Source
var File_rpc_login_user_proto protoreflect.FileDescriptor
View Source
var File_rpc_register_user_proto protoreflect.FileDescriptor
View Source
var File_service_proto protoreflect.FileDescriptor
View Source
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.

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 (*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) LoginUser

func (UnimplementedAuthenticationServiceServer) RegisterUser

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAccessToken

func (x *User) GetAccessToken() string

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamp.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetFullname

func (x *User) GetFullname() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetPaydAccountId

func (x *User) GetPaydAccountId() string

func (*User) GetPaydPasswordApiKey

func (x *User) GetPaydPasswordApiKey() string

func (*User) GetPaydUsername

func (x *User) GetPaydUsername() string

func (*User) GetPaydUsernameApiKey

func (x *User) GetPaydUsernameApiKey() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL