authpb

package
v0.0.0-...-16f1db8 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Login",
			Handler:    _AuthService_Login_Handler,
		},
		{
			MethodName: "Register",
			Handler:    _AuthService_Register_Handler,
		},
		{
			MethodName: "ValidateUser",
			Handler:    _AuthService_ValidateUser_Handler,
		},
		{
			MethodName: "GetMe",
			Handler:    _AuthService_GetMe_Handler,
		},
		{
			MethodName: "UpdateMyInterests",
			Handler:    _AuthService_UpdateMyInterests_Handler,
		},
		{
			MethodName: "GetMyInterests",
			Handler:    _AuthService_GetMyInterests_Handler,
		},
		{
			MethodName: "GetPublicUser",
			Handler:    _AuthService_GetPublicUser_Handler,
		},
		{
			MethodName: "GetAllUsers",
			Handler:    _AuthService_GetAllUsers_Handler,
		},
		{
			MethodName: "RefreshToken",
			Handler:    _AuthService_RefreshToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/auth/pb/auth.proto",
}

AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService 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_pkg_auth_pb_auth_proto protoreflect.FileDescriptor

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

Types

type AuthServiceClient

AuthServiceClient is the client API for AuthService 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 AuthServiceServer

AuthServiceServer is the server API for AuthService service. All implementations should embed UnimplementedAuthServiceServer for forward compatibility

type GetAllUsersRequest

type GetAllUsersRequest struct {
	// contains filtered or unexported fields
}

func (*GetAllUsersRequest) Descriptor deprecated

func (*GetAllUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAllUsersRequest.ProtoReflect.Descriptor instead.

func (*GetAllUsersRequest) ProtoMessage

func (*GetAllUsersRequest) ProtoMessage()

func (*GetAllUsersRequest) ProtoReflect

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

func (*GetAllUsersRequest) Reset

func (x *GetAllUsersRequest) Reset()

func (*GetAllUsersRequest) String

func (x *GetAllUsersRequest) String() string

type GetAllUsersResponse

type GetAllUsersResponse struct {
	Users []*GetPublicUserResponse `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllUsersResponse) Descriptor deprecated

func (*GetAllUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetAllUsersResponse.ProtoReflect.Descriptor instead.

func (*GetAllUsersResponse) GetUsers

func (x *GetAllUsersResponse) GetUsers() []*GetPublicUserResponse

func (*GetAllUsersResponse) ProtoMessage

func (*GetAllUsersResponse) ProtoMessage()

func (*GetAllUsersResponse) ProtoReflect

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

func (*GetAllUsersResponse) Reset

func (x *GetAllUsersResponse) Reset()

func (*GetAllUsersResponse) String

func (x *GetAllUsersResponse) String() string

type GetMeRequest

type GetMeRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMeRequest) Descriptor deprecated

func (*GetMeRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMeRequest.ProtoReflect.Descriptor instead.

func (*GetMeRequest) GetToken

func (x *GetMeRequest) GetToken() string

func (*GetMeRequest) ProtoMessage

func (*GetMeRequest) ProtoMessage()

func (*GetMeRequest) ProtoReflect

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

func (*GetMeRequest) Reset

func (x *GetMeRequest) Reset()

func (*GetMeRequest) String

func (x *GetMeRequest) String() string

type GetMeResponse

type GetMeResponse struct {
	UserUuid string `protobuf:"bytes,1,opt,name=userUuid,proto3" json:"userUuid,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMeResponse) Descriptor deprecated

func (*GetMeResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetMeResponse.ProtoReflect.Descriptor instead.

func (*GetMeResponse) GetEmail

func (x *GetMeResponse) GetEmail() string

func (*GetMeResponse) GetUserUuid

func (x *GetMeResponse) GetUserUuid() string

func (*GetMeResponse) GetUsername

func (x *GetMeResponse) GetUsername() string

func (*GetMeResponse) ProtoMessage

func (*GetMeResponse) ProtoMessage()

func (*GetMeResponse) ProtoReflect

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

func (*GetMeResponse) Reset

func (x *GetMeResponse) Reset()

func (*GetMeResponse) String

func (x *GetMeResponse) String() string

type GetMyInterestsRequest

type GetMyInterestsRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMyInterestsRequest) Descriptor deprecated

func (*GetMyInterestsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMyInterestsRequest.ProtoReflect.Descriptor instead.

func (*GetMyInterestsRequest) GetToken

func (x *GetMyInterestsRequest) GetToken() string

func (*GetMyInterestsRequest) ProtoMessage

func (*GetMyInterestsRequest) ProtoMessage()

func (*GetMyInterestsRequest) ProtoReflect

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

func (*GetMyInterestsRequest) Reset

func (x *GetMyInterestsRequest) Reset()

func (*GetMyInterestsRequest) String

func (x *GetMyInterestsRequest) String() string

type GetMyInterestsResponse

type GetMyInterestsResponse struct {
	Interests []string `protobuf:"bytes,1,rep,name=interests,proto3" json:"interests,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMyInterestsResponse) Descriptor deprecated

func (*GetMyInterestsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetMyInterestsResponse.ProtoReflect.Descriptor instead.

func (*GetMyInterestsResponse) GetInterests

func (x *GetMyInterestsResponse) GetInterests() []string

func (*GetMyInterestsResponse) ProtoMessage

func (*GetMyInterestsResponse) ProtoMessage()

func (*GetMyInterestsResponse) ProtoReflect

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

func (*GetMyInterestsResponse) Reset

func (x *GetMyInterestsResponse) Reset()

func (*GetMyInterestsResponse) String

func (x *GetMyInterestsResponse) String() string

type GetPublicUserRequest

type GetPublicUserRequest struct {
	UserUuid string `protobuf:"bytes,1,opt,name=userUuid,proto3" json:"userUuid,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPublicUserRequest) Descriptor deprecated

func (*GetPublicUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetPublicUserRequest.ProtoReflect.Descriptor instead.

func (*GetPublicUserRequest) GetUserUuid

func (x *GetPublicUserRequest) GetUserUuid() string

func (*GetPublicUserRequest) ProtoMessage

func (*GetPublicUserRequest) ProtoMessage()

func (*GetPublicUserRequest) ProtoReflect

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

func (*GetPublicUserRequest) Reset

func (x *GetPublicUserRequest) Reset()

func (*GetPublicUserRequest) String

func (x *GetPublicUserRequest) String() string

type GetPublicUserResponse

type GetPublicUserResponse struct {
	UserUuid string `protobuf:"bytes,1,opt,name=userUuid,proto3" json:"userUuid,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPublicUserResponse) Descriptor deprecated

func (*GetPublicUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetPublicUserResponse.ProtoReflect.Descriptor instead.

func (*GetPublicUserResponse) GetUserUuid

func (x *GetPublicUserResponse) GetUserUuid() string

func (*GetPublicUserResponse) GetUsername

func (x *GetPublicUserResponse) GetUsername() string

func (*GetPublicUserResponse) ProtoMessage

func (*GetPublicUserResponse) ProtoMessage()

func (*GetPublicUserResponse) ProtoReflect

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

func (*GetPublicUserResponse) Reset

func (x *GetPublicUserResponse) Reset()

func (*GetPublicUserResponse) String

func (x *GetPublicUserResponse) String() string

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 {
	Token        string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	RefreshToken string `protobuf:"bytes,2,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"`
	UserUuid     string `protobuf:"bytes,3,opt,name=userUuid,proto3" json:"userUuid,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

func (*LoginResponse) Descriptor() ([]byte, []int)

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetRefreshToken

func (x *LoginResponse) GetRefreshToken() string

func (*LoginResponse) GetToken

func (x *LoginResponse) GetToken() string

func (*LoginResponse) GetUserUuid

func (x *LoginResponse) GetUserUuid() 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 RefreshTokenRequest

type RefreshTokenRequest struct {
	RefreshToken string `protobuf:"bytes,1,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshTokenRequest) Descriptor deprecated

func (*RefreshTokenRequest) Descriptor() ([]byte, []int)

Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.

func (*RefreshTokenRequest) GetRefreshToken

func (x *RefreshTokenRequest) GetRefreshToken() string

func (*RefreshTokenRequest) ProtoMessage

func (*RefreshTokenRequest) ProtoMessage()

func (*RefreshTokenRequest) ProtoReflect

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

func (*RefreshTokenRequest) Reset

func (x *RefreshTokenRequest) Reset()

func (*RefreshTokenRequest) String

func (x *RefreshTokenRequest) String() string

type RefreshTokenResponse

type RefreshTokenResponse struct {
	Token        string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	RefreshToken string `protobuf:"bytes,2,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"`
	UserUuid     string `protobuf:"bytes,3,opt,name=userUuid,proto3" json:"userUuid,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshTokenResponse) Descriptor deprecated

func (*RefreshTokenResponse) Descriptor() ([]byte, []int)

Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.

func (*RefreshTokenResponse) GetRefreshToken

func (x *RefreshTokenResponse) GetRefreshToken() string

func (*RefreshTokenResponse) GetToken

func (x *RefreshTokenResponse) GetToken() string

func (*RefreshTokenResponse) GetUserUuid

func (x *RefreshTokenResponse) GetUserUuid() string

func (*RefreshTokenResponse) ProtoMessage

func (*RefreshTokenResponse) ProtoMessage()

func (*RefreshTokenResponse) ProtoReflect

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

func (*RefreshTokenResponse) Reset

func (x *RefreshTokenResponse) Reset()

func (*RefreshTokenResponse) String

func (x *RefreshTokenResponse) String() string

type RegisterRequest

type RegisterRequest 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"`
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

func (*RegisterRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetEmail

func (x *RegisterRequest) GetEmail() string

func (*RegisterRequest) GetPassword

func (x *RegisterRequest) GetPassword() string

func (*RegisterRequest) GetUsername

func (x *RegisterRequest) GetUsername() string

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

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

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type RegisterResponse

type RegisterResponse struct {
	Token        string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	RefreshToken string `protobuf:"bytes,2,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"`
	UserUuid     string `protobuf:"bytes,3,opt,name=userUuid,proto3" json:"userUuid,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterResponse) Descriptor deprecated

func (*RegisterResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) GetRefreshToken

func (x *RegisterResponse) GetRefreshToken() string

func (*RegisterResponse) GetToken

func (x *RegisterResponse) GetToken() string

func (*RegisterResponse) GetUserUuid

func (x *RegisterResponse) GetUserUuid() string

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

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

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) GetAllUsers

func (UnimplementedAuthServiceServer) GetMe

func (UnimplementedAuthServiceServer) GetMyInterests

func (UnimplementedAuthServiceServer) GetPublicUser

func (UnimplementedAuthServiceServer) Login

func (UnimplementedAuthServiceServer) RefreshToken

func (UnimplementedAuthServiceServer) Register

func (UnimplementedAuthServiceServer) UpdateMyInterests

func (UnimplementedAuthServiceServer) ValidateUser

type UnsafeAuthServiceServer

type UnsafeAuthServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.

type UpdateMyInterestsRequest

type UpdateMyInterestsRequest struct {
	Token     string   `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Interests []string `protobuf:"bytes,2,rep,name=interests,proto3" json:"interests,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMyInterestsRequest) Descriptor deprecated

func (*UpdateMyInterestsRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMyInterestsRequest.ProtoReflect.Descriptor instead.

func (*UpdateMyInterestsRequest) GetInterests

func (x *UpdateMyInterestsRequest) GetInterests() []string

func (*UpdateMyInterestsRequest) GetToken

func (x *UpdateMyInterestsRequest) GetToken() string

func (*UpdateMyInterestsRequest) ProtoMessage

func (*UpdateMyInterestsRequest) ProtoMessage()

func (*UpdateMyInterestsRequest) ProtoReflect

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

func (*UpdateMyInterestsRequest) Reset

func (x *UpdateMyInterestsRequest) Reset()

func (*UpdateMyInterestsRequest) String

func (x *UpdateMyInterestsRequest) String() string

type UpdateMyInterestsResponse

type UpdateMyInterestsResponse struct {
	Interests []string `protobuf:"bytes,1,rep,name=interests,proto3" json:"interests,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMyInterestsResponse) Descriptor deprecated

func (*UpdateMyInterestsResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMyInterestsResponse.ProtoReflect.Descriptor instead.

func (*UpdateMyInterestsResponse) GetInterests

func (x *UpdateMyInterestsResponse) GetInterests() []string

func (*UpdateMyInterestsResponse) ProtoMessage

func (*UpdateMyInterestsResponse) ProtoMessage()

func (*UpdateMyInterestsResponse) ProtoReflect

func (*UpdateMyInterestsResponse) Reset

func (x *UpdateMyInterestsResponse) Reset()

func (*UpdateMyInterestsResponse) String

func (x *UpdateMyInterestsResponse) String() string

type ValidateUserRequest

type ValidateUserRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateUserRequest) Descriptor deprecated

func (*ValidateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use ValidateUserRequest.ProtoReflect.Descriptor instead.

func (*ValidateUserRequest) GetToken

func (x *ValidateUserRequest) GetToken() string

func (*ValidateUserRequest) ProtoMessage

func (*ValidateUserRequest) ProtoMessage()

func (*ValidateUserRequest) ProtoReflect

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

func (*ValidateUserRequest) Reset

func (x *ValidateUserRequest) Reset()

func (*ValidateUserRequest) String

func (x *ValidateUserRequest) String() string

type ValidateUserResponse

type ValidateUserResponse struct {
	UserUuid string `protobuf:"bytes,1,opt,name=userUuid,proto3" json:"userUuid,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateUserResponse) Descriptor deprecated

func (*ValidateUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use ValidateUserResponse.ProtoReflect.Descriptor instead.

func (*ValidateUserResponse) GetUserUuid

func (x *ValidateUserResponse) GetUserUuid() string

func (*ValidateUserResponse) ProtoMessage

func (*ValidateUserResponse) ProtoMessage()

func (*ValidateUserResponse) ProtoReflect

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

func (*ValidateUserResponse) Reset

func (x *ValidateUserResponse) Reset()

func (*ValidateUserResponse) String

func (x *ValidateUserResponse) String() string

Jump to

Keyboard shortcuts

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