proto

package
v0.0.0-...-258ce62 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: AGPL-3.0 Imports: 17 Imported by: 2

Documentation

Overview

Package proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AuthenticationService_SignUp_FullMethodName               = "/v1.AuthenticationService/SignUp"
	AuthenticationService_SignIn_FullMethodName               = "/v1.AuthenticationService/SignIn"
	AuthenticationService_RefreshToken_FullMethodName         = "/v1.AuthenticationService/RefreshToken"
	AuthenticationService_ResetPassword_FullMethodName        = "/v1.AuthenticationService/ResetPassword"
	AuthenticationService_ResetPasswordConfirm_FullMethodName = "/v1.AuthenticationService/ResetPasswordConfirm"
)
View Source
const (
	UserService_VerifyToken_FullMethodName          = "/v1.UserService/VerifyToken"
	UserService_GetUser_FullMethodName              = "/v1.UserService/GetUser"
	UserService_GetUserProfile_FullMethodName       = "/v1.UserService/GetUserProfile"
	UserService_UpdateUser_FullMethodName           = "/v1.UserService/UpdateUser"
	UserService_DeleteUser_FullMethodName           = "/v1.UserService/DeleteUser"
	UserService_SendVerificationCode_FullMethodName = "/v1.UserService/SendVerificationCode"
	UserService_Verify_FullMethodName               = "/v1.UserService/Verify"
	UserService_ChangePassword_FullMethodName       = "/v1.UserService/ChangePassword"
	UserService_ChangeEmail_FullMethodName          = "/v1.UserService/ChangeEmail"
	UserService_GetUsers_FullMethodName             = "/v1.UserService/GetUsers"
)
View Source
const (
	SessionService_GetSessions_FullMethodName   = "/v1.SessionService/GetSessions"
	SessionService_DeleteSession_FullMethodName = "/v1.SessionService/DeleteSession"
	SessionService_SignOut_FullMethodName       = "/v1.SessionService/SignOut"
)
View Source
const (
	RoleService_GetRoles_FullMethodName   = "/v1.RoleService/GetRoles"
	RoleService_GetRole_FullMethodName    = "/v1.RoleService/GetRole"
	RoleService_CreateRole_FullMethodName = "/v1.RoleService/CreateRole"
	RoleService_UpdateRole_FullMethodName = "/v1.RoleService/UpdateRole"
	RoleService_DeleteRole_FullMethodName = "/v1.RoleService/DeleteRole"
)
View Source
const (
	PermissionService_GetPermissions_FullMethodName   = "/v1.PermissionService/GetPermissions"
	PermissionService_GetPermission_FullMethodName    = "/v1.PermissionService/GetPermission"
	PermissionService_CreatePermission_FullMethodName = "/v1.PermissionService/CreatePermission"
	PermissionService_UpdatePermission_FullMethodName = "/v1.PermissionService/UpdatePermission"
	PermissionService_DeletePermission_FullMethodName = "/v1.PermissionService/DeletePermission"
)

Variables

View Source
var (
	VerificationType_name = map[int32]string{
		0: "EMAIL",
		1: "PHONE",
	}
	VerificationType_value = map[string]int32{
		"EMAIL": 0,
		"PHONE": 1,
	}
)

Enum value maps for VerificationType.

View Source
var AuthenticationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1.AuthenticationService",
	HandlerType: (*AuthenticationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SignUp",
			Handler:    _AuthenticationService_SignUp_Handler,
		},
		{
			MethodName: "SignIn",
			Handler:    _AuthenticationService_SignIn_Handler,
		},
		{
			MethodName: "RefreshToken",
			Handler:    _AuthenticationService_RefreshToken_Handler,
		},
		{
			MethodName: "ResetPassword",
			Handler:    _AuthenticationService_ResetPassword_Handler,
		},
		{
			MethodName: "ResetPasswordConfirm",
			Handler:    _AuthenticationService_ResetPasswordConfirm_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/usercore.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 (
	// optional bool authorization_required = 50001;
	E_AuthorizationRequired = &file_v1_usercore_proto_extTypes[0]
)

Extension fields to descriptorpb.MethodOptions.

View Source
var File_v1_usercore_proto protoreflect.FileDescriptor
View Source
var PermissionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1.PermissionService",
	HandlerType: (*PermissionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPermissions",
			Handler:    _PermissionService_GetPermissions_Handler,
		},
		{
			MethodName: "GetPermission",
			Handler:    _PermissionService_GetPermission_Handler,
		},
		{
			MethodName: "CreatePermission",
			Handler:    _PermissionService_CreatePermission_Handler,
		},
		{
			MethodName: "UpdatePermission",
			Handler:    _PermissionService_UpdatePermission_Handler,
		},
		{
			MethodName: "DeletePermission",
			Handler:    _PermissionService_DeletePermission_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/usercore.proto",
}

PermissionService_ServiceDesc is the grpc.ServiceDesc for PermissionService 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 RoleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1.RoleService",
	HandlerType: (*RoleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRoles",
			Handler:    _RoleService_GetRoles_Handler,
		},
		{
			MethodName: "GetRole",
			Handler:    _RoleService_GetRole_Handler,
		},
		{
			MethodName: "CreateRole",
			Handler:    _RoleService_CreateRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _RoleService_UpdateRole_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _RoleService_DeleteRole_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/usercore.proto",
}

RoleService_ServiceDesc is the grpc.ServiceDesc for RoleService 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 SessionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1.SessionService",
	HandlerType: (*SessionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSessions",
			Handler:    _SessionService_GetSessions_Handler,
		},
		{
			MethodName: "DeleteSession",
			Handler:    _SessionService_DeleteSession_Handler,
		},
		{
			MethodName: "SignOut",
			Handler:    _SessionService_SignOut_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/usercore.proto",
}

SessionService_ServiceDesc is the grpc.ServiceDesc for SessionService 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 UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "VerifyToken",
			Handler:    _UserService_VerifyToken_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "GetUserProfile",
			Handler:    _UserService_GetUserProfile_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "SendVerificationCode",
			Handler:    _UserService_SendVerificationCode_Handler,
		},
		{
			MethodName: "Verify",
			Handler:    _UserService_Verify_Handler,
		},
		{
			MethodName: "ChangePassword",
			Handler:    _UserService_ChangePassword_Handler,
		},
		{
			MethodName: "ChangeEmail",
			Handler:    _UserService_ChangeEmail_Handler,
		},
		{
			MethodName: "GetUsers",
			Handler:    _UserService_GetUsers_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/usercore.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAuthenticationServiceHandler

func RegisterAuthenticationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAuthenticationServiceHandler registers the http handlers for service AuthenticationService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAuthenticationServiceHandlerClient

func RegisterAuthenticationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthenticationServiceClient) error

RegisterAuthenticationServiceHandlerClient registers the http handlers for service AuthenticationService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthenticationServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthenticationServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthenticationServiceClient" to call the correct interceptors.

func RegisterAuthenticationServiceHandlerFromEndpoint

func RegisterAuthenticationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAuthenticationServiceHandlerFromEndpoint is same as RegisterAuthenticationServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAuthenticationServiceHandlerServer

func RegisterAuthenticationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthenticationServiceServer) error

RegisterAuthenticationServiceHandlerServer registers the http handlers for service AuthenticationService to "mux". UnaryRPC :call AuthenticationServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthenticationServiceHandlerFromEndpoint instead.

func RegisterAuthenticationServiceServer

func RegisterAuthenticationServiceServer(s grpc.ServiceRegistrar, srv AuthenticationServiceServer)

func RegisterPermissionServiceHandler

func RegisterPermissionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterPermissionServiceHandler registers the http handlers for service PermissionService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterPermissionServiceHandlerClient

func RegisterPermissionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PermissionServiceClient) error

RegisterPermissionServiceHandlerClient registers the http handlers for service PermissionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "PermissionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "PermissionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "PermissionServiceClient" to call the correct interceptors.

func RegisterPermissionServiceHandlerFromEndpoint

func RegisterPermissionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterPermissionServiceHandlerFromEndpoint is same as RegisterPermissionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterPermissionServiceHandlerServer

func RegisterPermissionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PermissionServiceServer) error

RegisterPermissionServiceHandlerServer registers the http handlers for service PermissionService to "mux". UnaryRPC :call PermissionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterPermissionServiceHandlerFromEndpoint instead.

func RegisterPermissionServiceServer

func RegisterPermissionServiceServer(s grpc.ServiceRegistrar, srv PermissionServiceServer)

func RegisterRoleServiceHandler

func RegisterRoleServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterRoleServiceHandler registers the http handlers for service RoleService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterRoleServiceHandlerClient

func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RoleServiceClient) error

RegisterRoleServiceHandlerClient registers the http handlers for service RoleService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RoleServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RoleServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RoleServiceClient" to call the correct interceptors.

func RegisterRoleServiceHandlerFromEndpoint

func RegisterRoleServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterRoleServiceHandlerFromEndpoint is same as RegisterRoleServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterRoleServiceHandlerServer

func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RoleServiceServer) error

RegisterRoleServiceHandlerServer registers the http handlers for service RoleService to "mux". UnaryRPC :call RoleServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRoleServiceHandlerFromEndpoint instead.

func RegisterRoleServiceServer

func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer)

func RegisterSessionServiceHandler

func RegisterSessionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSessionServiceHandler registers the http handlers for service SessionService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSessionServiceHandlerClient

func RegisterSessionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SessionServiceClient) error

RegisterSessionServiceHandlerClient registers the http handlers for service SessionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SessionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SessionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SessionServiceClient" to call the correct interceptors.

func RegisterSessionServiceHandlerFromEndpoint

func RegisterSessionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSessionServiceHandlerFromEndpoint is same as RegisterSessionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSessionServiceHandlerServer

func RegisterSessionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SessionServiceServer) error

RegisterSessionServiceHandlerServer registers the http handlers for service SessionService to "mux". UnaryRPC :call SessionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSessionServiceHandlerFromEndpoint instead.

func RegisterSessionServiceServer

func RegisterSessionServiceServer(s grpc.ServiceRegistrar, srv SessionServiceServer)

func RegisterUserServiceHandler

func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserServiceHandlerClient

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.

func RegisterUserServiceHandlerFromEndpoint

func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserServiceHandlerServer

func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead.

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type AuthenticationResponse

type AuthenticationResponse struct {
	AccessToken  string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	ExpiresIn    int64  `protobuf:"varint,3,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticationResponse) Descriptor deprecated

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

Deprecated: Use AuthenticationResponse.ProtoReflect.Descriptor instead.

func (*AuthenticationResponse) GetAccessToken

func (x *AuthenticationResponse) GetAccessToken() string

func (*AuthenticationResponse) GetExpiresIn

func (x *AuthenticationResponse) GetExpiresIn() int64

func (*AuthenticationResponse) GetRefreshToken

func (x *AuthenticationResponse) GetRefreshToken() string

func (*AuthenticationResponse) ProtoMessage

func (*AuthenticationResponse) ProtoMessage()

func (*AuthenticationResponse) ProtoReflect

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

func (*AuthenticationResponse) Reset

func (x *AuthenticationResponse) Reset()

func (*AuthenticationResponse) String

func (x *AuthenticationResponse) String() string

type AuthenticationServiceClient

type AuthenticationServiceClient interface {
	SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
	SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
	RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
	ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*ResetPasswordResponse, error)
	ResetPasswordConfirm(ctx context.Context, in *ResetPasswordConfirmRequest, opts ...grpc.CallOption) (*DefaultResponse, 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 {
	SignUp(context.Context, *SignUpRequest) (*AuthenticationResponse, error)
	SignIn(context.Context, *SignInRequest) (*AuthenticationResponse, error)
	RefreshToken(context.Context, *RefreshTokenRequest) (*AuthenticationResponse, error)
	ResetPassword(context.Context, *ResetPasswordRequest) (*ResetPasswordResponse, error)
	ResetPasswordConfirm(context.Context, *ResetPasswordConfirmRequest) (*DefaultResponse, error)
	// contains filtered or unexported methods
}

AuthenticationServiceServer is the server API for AuthenticationService service. All implementations must embed UnimplementedAuthenticationServiceServer for forward compatibility

type ChangeEmailRequest

type ChangeEmailRequest 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 (*ChangeEmailRequest) Descriptor deprecated

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

Deprecated: Use ChangeEmailRequest.ProtoReflect.Descriptor instead.

func (*ChangeEmailRequest) GetEmail

func (x *ChangeEmailRequest) GetEmail() string

func (*ChangeEmailRequest) GetPassword

func (x *ChangeEmailRequest) GetPassword() string

func (*ChangeEmailRequest) ProtoMessage

func (*ChangeEmailRequest) ProtoMessage()

func (*ChangeEmailRequest) ProtoReflect

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

func (*ChangeEmailRequest) Reset

func (x *ChangeEmailRequest) Reset()

func (*ChangeEmailRequest) String

func (x *ChangeEmailRequest) String() string

type ChangePasswordRequest

type ChangePasswordRequest struct {
	OldPassword string `protobuf:"bytes,1,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"`
	NewPassword string `protobuf:"bytes,2,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangePasswordRequest) Descriptor deprecated

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

Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.

func (*ChangePasswordRequest) GetNewPassword

func (x *ChangePasswordRequest) GetNewPassword() string

func (*ChangePasswordRequest) GetOldPassword

func (x *ChangePasswordRequest) GetOldPassword() string

func (*ChangePasswordRequest) ProtoMessage

func (*ChangePasswordRequest) ProtoMessage()

func (*ChangePasswordRequest) ProtoReflect

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

func (*ChangePasswordRequest) Reset

func (x *ChangePasswordRequest) Reset()

func (*ChangePasswordRequest) String

func (x *ChangePasswordRequest) String() string

type CreatePermissionRequest

type CreatePermissionRequest struct {
	Permission *Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePermissionRequest) Descriptor deprecated

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

Deprecated: Use CreatePermissionRequest.ProtoReflect.Descriptor instead.

func (*CreatePermissionRequest) GetPermission

func (x *CreatePermissionRequest) GetPermission() *Permission

func (*CreatePermissionRequest) ProtoMessage

func (*CreatePermissionRequest) ProtoMessage()

func (*CreatePermissionRequest) ProtoReflect

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

func (*CreatePermissionRequest) Reset

func (x *CreatePermissionRequest) Reset()

func (*CreatePermissionRequest) String

func (x *CreatePermissionRequest) String() string

type CreateRoleRequest

type CreateRoleRequest struct {
	Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoleRequest) Descriptor deprecated

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

Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.

func (*CreateRoleRequest) GetRole

func (x *CreateRoleRequest) GetRole() *Role

func (*CreateRoleRequest) ProtoMessage

func (*CreateRoleRequest) ProtoMessage()

func (*CreateRoleRequest) ProtoReflect

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

func (*CreateRoleRequest) Reset

func (x *CreateRoleRequest) Reset()

func (*CreateRoleRequest) String

func (x *CreateRoleRequest) String() string

type CreateRoleResponse

type CreateRoleResponse struct {
	Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRoleResponse) Descriptor deprecated

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

Deprecated: Use CreateRoleResponse.ProtoReflect.Descriptor instead.

func (*CreateRoleResponse) GetRole

func (x *CreateRoleResponse) GetRole() *Role

func (*CreateRoleResponse) ProtoMessage

func (*CreateRoleResponse) ProtoMessage()

func (*CreateRoleResponse) ProtoReflect

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

func (*CreateRoleResponse) Reset

func (x *CreateRoleResponse) Reset()

func (*CreateRoleResponse) String

func (x *CreateRoleResponse) String() string

type DefaultResponse

type DefaultResponse struct {
	Success bool    `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Message *string `protobuf:"bytes,2,opt,name=message,proto3,oneof" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*DefaultResponse) Descriptor deprecated

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

Deprecated: Use DefaultResponse.ProtoReflect.Descriptor instead.

func (*DefaultResponse) GetMessage

func (x *DefaultResponse) GetMessage() string

func (*DefaultResponse) GetSuccess

func (x *DefaultResponse) GetSuccess() bool

func (*DefaultResponse) ProtoMessage

func (*DefaultResponse) ProtoMessage()

func (*DefaultResponse) ProtoReflect

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

func (*DefaultResponse) Reset

func (x *DefaultResponse) Reset()

func (*DefaultResponse) String

func (x *DefaultResponse) String() string

type DeletePermissionRequest

type DeletePermissionRequest struct {
	PermissionId string `protobuf:"bytes,1,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletePermissionRequest) Descriptor deprecated

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

Deprecated: Use DeletePermissionRequest.ProtoReflect.Descriptor instead.

func (*DeletePermissionRequest) GetPermissionId

func (x *DeletePermissionRequest) GetPermissionId() string

func (*DeletePermissionRequest) ProtoMessage

func (*DeletePermissionRequest) ProtoMessage()

func (*DeletePermissionRequest) ProtoReflect

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

func (*DeletePermissionRequest) Reset

func (x *DeletePermissionRequest) Reset()

func (*DeletePermissionRequest) String

func (x *DeletePermissionRequest) String() string

type DeleteRoleRequest

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

func (*DeleteRoleRequest) Descriptor deprecated

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

Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.

func (*DeleteRoleRequest) GetId

func (x *DeleteRoleRequest) GetId() string

func (*DeleteRoleRequest) ProtoMessage

func (*DeleteRoleRequest) ProtoMessage()

func (*DeleteRoleRequest) ProtoReflect

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

func (*DeleteRoleRequest) Reset

func (x *DeleteRoleRequest) Reset()

func (*DeleteRoleRequest) String

func (x *DeleteRoleRequest) String() string

type DeleteRoleResponse

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

func (*DeleteRoleResponse) Descriptor deprecated

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

Deprecated: Use DeleteRoleResponse.ProtoReflect.Descriptor instead.

func (*DeleteRoleResponse) GetId

func (x *DeleteRoleResponse) GetId() string

func (*DeleteRoleResponse) ProtoMessage

func (*DeleteRoleResponse) ProtoMessage()

func (*DeleteRoleResponse) ProtoReflect

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

func (*DeleteRoleResponse) Reset

func (x *DeleteRoleResponse) Reset()

func (*DeleteRoleResponse) String

func (x *DeleteRoleResponse) String() string

type DeleteSessionRequest

type DeleteSessionRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSessionRequest) Descriptor deprecated

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

Deprecated: Use DeleteSessionRequest.ProtoReflect.Descriptor instead.

func (*DeleteSessionRequest) GetId

func (x *DeleteSessionRequest) GetId() uint64

func (*DeleteSessionRequest) ProtoMessage

func (*DeleteSessionRequest) ProtoMessage()

func (*DeleteSessionRequest) ProtoReflect

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

func (*DeleteSessionRequest) Reset

func (x *DeleteSessionRequest) Reset()

func (*DeleteSessionRequest) String

func (x *DeleteSessionRequest) String() string

type DeleteUserRequest

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

func (*DeleteUserRequest) Descriptor deprecated

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

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

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

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type Device

type Device struct {
	Id             string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId         string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	SessionId      string `protobuf:"bytes,3,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	Name           string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Os             string `protobuf:"bytes,5,opt,name=os,proto3" json:"os,omitempty"`
	OsVersion      string `protobuf:"bytes,6,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
	Browser        string `protobuf:"bytes,7,opt,name=browser,proto3" json:"browser,omitempty"`
	BrowserVersion string `protobuf:"bytes,8,opt,name=browser_version,json=browserVersion,proto3" json:"browser_version,omitempty"`
	Ip             string `protobuf:"bytes,9,opt,name=ip,proto3" json:"ip,omitempty"`
	Token          string `protobuf:"bytes,10,opt,name=token,proto3" json:"token,omitempty"`
	CreatedAt      string `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt      string `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Device) Descriptor deprecated

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

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetBrowser

func (x *Device) GetBrowser() string

func (*Device) GetBrowserVersion

func (x *Device) GetBrowserVersion() string

func (*Device) GetCreatedAt

func (x *Device) GetCreatedAt() string

func (*Device) GetId

func (x *Device) GetId() string

func (*Device) GetIp

func (x *Device) GetIp() string

func (*Device) GetName

func (x *Device) GetName() string

func (*Device) GetOs

func (x *Device) GetOs() string

func (*Device) GetOsVersion

func (x *Device) GetOsVersion() string

func (*Device) GetSessionId

func (x *Device) GetSessionId() string

func (*Device) GetToken

func (x *Device) GetToken() string

func (*Device) GetUpdatedAt

func (x *Device) GetUpdatedAt() string

func (*Device) GetUserId

func (x *Device) GetUserId() string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

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

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

type GetPermissionRequest

type GetPermissionRequest struct {
	AccessToken  string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	PermissionId string `protobuf:"bytes,2,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPermissionRequest) Descriptor deprecated

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

Deprecated: Use GetPermissionRequest.ProtoReflect.Descriptor instead.

func (*GetPermissionRequest) GetAccessToken

func (x *GetPermissionRequest) GetAccessToken() string

func (*GetPermissionRequest) GetPermissionId

func (x *GetPermissionRequest) GetPermissionId() string

func (*GetPermissionRequest) ProtoMessage

func (*GetPermissionRequest) ProtoMessage()

func (*GetPermissionRequest) ProtoReflect

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

func (*GetPermissionRequest) Reset

func (x *GetPermissionRequest) Reset()

func (*GetPermissionRequest) String

func (x *GetPermissionRequest) String() string

type GetPermissionResponse

type GetPermissionResponse struct {
	Permission *Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPermissionResponse) Descriptor deprecated

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

Deprecated: Use GetPermissionResponse.ProtoReflect.Descriptor instead.

func (*GetPermissionResponse) GetPermission

func (x *GetPermissionResponse) GetPermission() *Permission

func (*GetPermissionResponse) ProtoMessage

func (*GetPermissionResponse) ProtoMessage()

func (*GetPermissionResponse) ProtoReflect

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

func (*GetPermissionResponse) Reset

func (x *GetPermissionResponse) Reset()

func (*GetPermissionResponse) String

func (x *GetPermissionResponse) String() string

type GetPermissionsRequest

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

func (*GetPermissionsRequest) Descriptor deprecated

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

Deprecated: Use GetPermissionsRequest.ProtoReflect.Descriptor instead.

func (*GetPermissionsRequest) ProtoMessage

func (*GetPermissionsRequest) ProtoMessage()

func (*GetPermissionsRequest) ProtoReflect

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

func (*GetPermissionsRequest) Reset

func (x *GetPermissionsRequest) Reset()

func (*GetPermissionsRequest) String

func (x *GetPermissionsRequest) String() string

type GetPermissionsResponse

type GetPermissionsResponse struct {
	Permissions []*Permission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPermissionsResponse) Descriptor deprecated

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

Deprecated: Use GetPermissionsResponse.ProtoReflect.Descriptor instead.

func (*GetPermissionsResponse) GetPermissions

func (x *GetPermissionsResponse) GetPermissions() []*Permission

func (*GetPermissionsResponse) ProtoMessage

func (*GetPermissionsResponse) ProtoMessage()

func (*GetPermissionsResponse) ProtoReflect

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

func (*GetPermissionsResponse) Reset

func (x *GetPermissionsResponse) Reset()

func (*GetPermissionsResponse) String

func (x *GetPermissionsResponse) String() string

type GetRoleRequest

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

func (*GetRoleRequest) Descriptor deprecated

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

Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.

func (*GetRoleRequest) GetId

func (x *GetRoleRequest) GetId() string

func (*GetRoleRequest) ProtoMessage

func (*GetRoleRequest) ProtoMessage()

func (*GetRoleRequest) ProtoReflect

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

func (*GetRoleRequest) Reset

func (x *GetRoleRequest) Reset()

func (*GetRoleRequest) String

func (x *GetRoleRequest) String() string

type GetRoleResponse

type GetRoleResponse struct {
	Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRoleResponse) Descriptor deprecated

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

Deprecated: Use GetRoleResponse.ProtoReflect.Descriptor instead.

func (*GetRoleResponse) GetRole

func (x *GetRoleResponse) GetRole() *Role

func (*GetRoleResponse) ProtoMessage

func (*GetRoleResponse) ProtoMessage()

func (*GetRoleResponse) ProtoReflect

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

func (*GetRoleResponse) Reset

func (x *GetRoleResponse) Reset()

func (*GetRoleResponse) String

func (x *GetRoleResponse) String() string

type GetRolesRequest

type GetRolesRequest struct {
	Query   string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	Page    int32  `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	PerPage int32  `protobuf:"varint,3,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRolesRequest) Descriptor deprecated

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

Deprecated: Use GetRolesRequest.ProtoReflect.Descriptor instead.

func (*GetRolesRequest) GetPage

func (x *GetRolesRequest) GetPage() int32

func (*GetRolesRequest) GetPerPage

func (x *GetRolesRequest) GetPerPage() int32

func (*GetRolesRequest) GetQuery

func (x *GetRolesRequest) GetQuery() string

func (*GetRolesRequest) ProtoMessage

func (*GetRolesRequest) ProtoMessage()

func (*GetRolesRequest) ProtoReflect

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

func (*GetRolesRequest) Reset

func (x *GetRolesRequest) Reset()

func (*GetRolesRequest) String

func (x *GetRolesRequest) String() string

type GetRolesResponse

type GetRolesResponse struct {
	Roles []*Role `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
	Total int32   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRolesResponse) Descriptor deprecated

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

Deprecated: Use GetRolesResponse.ProtoReflect.Descriptor instead.

func (*GetRolesResponse) GetRoles

func (x *GetRolesResponse) GetRoles() []*Role

func (*GetRolesResponse) GetTotal

func (x *GetRolesResponse) GetTotal() int32

func (*GetRolesResponse) ProtoMessage

func (*GetRolesResponse) ProtoMessage()

func (*GetRolesResponse) ProtoReflect

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

func (*GetRolesResponse) Reset

func (x *GetRolesResponse) Reset()

func (*GetRolesResponse) String

func (x *GetRolesResponse) String() string

type GetSessionsRequest

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

func (*GetSessionsRequest) Descriptor deprecated

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

Deprecated: Use GetSessionsRequest.ProtoReflect.Descriptor instead.

func (*GetSessionsRequest) ProtoMessage

func (*GetSessionsRequest) ProtoMessage()

func (*GetSessionsRequest) ProtoReflect

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

func (*GetSessionsRequest) Reset

func (x *GetSessionsRequest) Reset()

func (*GetSessionsRequest) String

func (x *GetSessionsRequest) String() string

type GetSessionsResponse

type GetSessionsResponse struct {
	Sessions []*Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSessionsResponse) Descriptor deprecated

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

Deprecated: Use GetSessionsResponse.ProtoReflect.Descriptor instead.

func (*GetSessionsResponse) GetSessions

func (x *GetSessionsResponse) GetSessions() []*Session

func (*GetSessionsResponse) ProtoMessage

func (*GetSessionsResponse) ProtoMessage()

func (*GetSessionsResponse) ProtoReflect

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

func (*GetSessionsResponse) Reset

func (x *GetSessionsResponse) Reset()

func (*GetSessionsResponse) String

func (x *GetSessionsResponse) String() string

type GetUserProfileRequest

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

func (*GetUserProfileRequest) Descriptor deprecated

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

Deprecated: Use GetUserProfileRequest.ProtoReflect.Descriptor instead.

func (*GetUserProfileRequest) ProtoMessage

func (*GetUserProfileRequest) ProtoMessage()

func (*GetUserProfileRequest) ProtoReflect

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

func (*GetUserProfileRequest) Reset

func (x *GetUserProfileRequest) Reset()

func (*GetUserProfileRequest) String

func (x *GetUserProfileRequest) String() string

type GetUserProfileResponse

type GetUserProfileResponse struct {
	Profile *Profile `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserProfileResponse) Descriptor deprecated

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

Deprecated: Use GetUserProfileResponse.ProtoReflect.Descriptor instead.

func (*GetUserProfileResponse) GetProfile

func (x *GetUserProfileResponse) GetProfile() *Profile

func (*GetUserProfileResponse) ProtoMessage

func (*GetUserProfileResponse) ProtoMessage()

func (*GetUserProfileResponse) ProtoReflect

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

func (*GetUserProfileResponse) Reset

func (x *GetUserProfileResponse) Reset()

func (*GetUserProfileResponse) String

func (x *GetUserProfileResponse) String() string

type GetUserRequest

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

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

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 {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *User

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 GetUsersResponse

type GetUsersResponse struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	Meta  *Meta   `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersResponse) Descriptor deprecated

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

Deprecated: Use GetUsersResponse.ProtoReflect.Descriptor instead.

func (*GetUsersResponse) GetMeta

func (x *GetUsersResponse) GetMeta() *Meta

func (*GetUsersResponse) GetUsers

func (x *GetUsersResponse) GetUsers() []*User

func (*GetUsersResponse) ProtoMessage

func (*GetUsersResponse) ProtoMessage()

func (*GetUsersResponse) ProtoReflect

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

func (*GetUsersResponse) Reset

func (x *GetUsersResponse) Reset()

func (*GetUsersResponse) String

func (x *GetUsersResponse) String() string

type ListRequest

type ListRequest struct {
	Page     int32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int32  `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Search   string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"`
	OrderBy  string `protobuf:"bytes,4,opt,name=orderBy,proto3" json:"orderBy,omitempty"`
	Order    string `protobuf:"bytes,5,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetOrder

func (x *ListRequest) GetOrder() string

func (*ListRequest) GetOrderBy

func (x *ListRequest) GetOrderBy() string

func (*ListRequest) GetPage

func (x *ListRequest) GetPage() int32

func (*ListRequest) GetPageSize

func (x *ListRequest) GetPageSize() int32

func (*ListRequest) GetSearch

func (x *ListRequest) GetSearch() string

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListUsersRequest

type ListUsersRequest struct {
	Page    int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PerPage int32 `protobuf:"varint,2,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersRequest) Descriptor deprecated

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

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) GetPage

func (x *ListUsersRequest) GetPage() int32

func (*ListUsersRequest) GetPerPage

func (x *ListUsersRequest) GetPerPage() int32

func (*ListUsersRequest) ProtoMessage

func (*ListUsersRequest) ProtoMessage()

func (*ListUsersRequest) ProtoReflect

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

func (*ListUsersRequest) Reset

func (x *ListUsersRequest) Reset()

func (*ListUsersRequest) String

func (x *ListUsersRequest) String() string

type ListUsersResponse

type ListUsersResponse struct {
	Users   []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	Page    int32   `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	PerPage int32   `protobuf:"varint,3,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"`
	Total   int32   `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersResponse) Descriptor deprecated

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

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetPage

func (x *ListUsersResponse) GetPage() int32

func (*ListUsersResponse) GetPerPage

func (x *ListUsersResponse) GetPerPage() int32

func (*ListUsersResponse) GetTotal

func (x *ListUsersResponse) GetTotal() int32

func (*ListUsersResponse) GetUsers

func (x *ListUsersResponse) GetUsers() []*User

func (*ListUsersResponse) ProtoMessage

func (*ListUsersResponse) ProtoMessage()

func (*ListUsersResponse) ProtoReflect

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

func (*ListUsersResponse) Reset

func (x *ListUsersResponse) Reset()

func (*ListUsersResponse) String

func (x *ListUsersResponse) String() string

type Meta

type Meta struct {
	TotalCount int32  `protobuf:"varint,1,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
	TotalPages int32  `protobuf:"varint,2,opt,name=totalPages,proto3" json:"totalPages,omitempty"`
	PageSize   int32  `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	Page       int32  `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"`
	HasNext    bool   `protobuf:"varint,5,opt,name=hasNext,proto3" json:"hasNext,omitempty"`
	HasPrev    bool   `protobuf:"varint,6,opt,name=hasPrev,proto3" json:"hasPrev,omitempty"`
	OrderBy    string `protobuf:"bytes,7,opt,name=orderBy,proto3" json:"orderBy,omitempty"`
	Order      string `protobuf:"bytes,8,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*Meta) Descriptor deprecated

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

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetHasNext

func (x *Meta) GetHasNext() bool

func (*Meta) GetHasPrev

func (x *Meta) GetHasPrev() bool

func (*Meta) GetOrder

func (x *Meta) GetOrder() string

func (*Meta) GetOrderBy

func (x *Meta) GetOrderBy() string

func (*Meta) GetPage

func (x *Meta) GetPage() int32

func (*Meta) GetPageSize

func (x *Meta) GetPageSize() int32

func (*Meta) GetTotalCount

func (x *Meta) GetTotalCount() int32

func (*Meta) GetTotalPages

func (x *Meta) GetTotalPages() int32

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

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

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

type PasswordReset

type PasswordReset struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId    string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Token     string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	ExpiresAt string `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	CreatedAt string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*PasswordReset) Descriptor deprecated

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

Deprecated: Use PasswordReset.ProtoReflect.Descriptor instead.

func (*PasswordReset) GetCreatedAt

func (x *PasswordReset) GetCreatedAt() string

func (*PasswordReset) GetExpiresAt

func (x *PasswordReset) GetExpiresAt() string

func (*PasswordReset) GetId

func (x *PasswordReset) GetId() string

func (*PasswordReset) GetToken

func (x *PasswordReset) GetToken() string

func (*PasswordReset) GetUpdatedAt

func (x *PasswordReset) GetUpdatedAt() string

func (*PasswordReset) GetUserId

func (x *PasswordReset) GetUserId() string

func (*PasswordReset) ProtoMessage

func (*PasswordReset) ProtoMessage()

func (*PasswordReset) ProtoReflect

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

func (*PasswordReset) Reset

func (x *PasswordReset) Reset()

func (*PasswordReset) String

func (x *PasswordReset) String() string

type PasswordResets

type PasswordResets struct {
	PasswordResets []*PasswordReset `protobuf:"bytes,1,rep,name=password_resets,json=passwordResets,proto3" json:"password_resets,omitempty"`
	// contains filtered or unexported fields
}

func (*PasswordResets) Descriptor deprecated

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

Deprecated: Use PasswordResets.ProtoReflect.Descriptor instead.

func (*PasswordResets) GetPasswordResets

func (x *PasswordResets) GetPasswordResets() []*PasswordReset

func (*PasswordResets) ProtoMessage

func (*PasswordResets) ProtoMessage()

func (*PasswordResets) ProtoReflect

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

func (*PasswordResets) Reset

func (x *PasswordResets) Reset()

func (*PasswordResets) String

func (x *PasswordResets) String() string

type Permission

type Permission struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Key         string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	CreatedAt   string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Permission) Descriptor deprecated

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

Deprecated: Use Permission.ProtoReflect.Descriptor instead.

func (*Permission) GetCreatedAt

func (x *Permission) GetCreatedAt() string

func (*Permission) GetDescription

func (x *Permission) GetDescription() string

func (*Permission) GetId

func (x *Permission) GetId() string

func (*Permission) GetKey

func (x *Permission) GetKey() string

func (*Permission) GetName

func (x *Permission) GetName() string

func (*Permission) GetUpdatedAt

func (x *Permission) GetUpdatedAt() string

func (*Permission) ProtoMessage

func (*Permission) ProtoMessage()

func (*Permission) ProtoReflect

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

func (*Permission) Reset

func (x *Permission) Reset()

func (*Permission) String

func (x *Permission) String() string

type PermissionServiceClient

type PermissionServiceClient interface {
	GetPermissions(ctx context.Context, in *GetPermissionsRequest, opts ...grpc.CallOption) (*GetPermissionsResponse, error)
	GetPermission(ctx context.Context, in *GetPermissionRequest, opts ...grpc.CallOption) (*GetPermissionResponse, error)
	CreatePermission(ctx context.Context, in *CreatePermissionRequest, opts ...grpc.CallOption) (*DefaultResponse, error)
	UpdatePermission(ctx context.Context, in *UpdatePermissionRequest, opts ...grpc.CallOption) (*DefaultResponse, error)
	DeletePermission(ctx context.Context, in *DeletePermissionRequest, opts ...grpc.CallOption) (*DefaultResponse, error)
}

PermissionServiceClient is the client API for PermissionService 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 PermissionServiceServer

type PermissionServiceServer interface {
	GetPermissions(context.Context, *GetPermissionsRequest) (*GetPermissionsResponse, error)
	GetPermission(context.Context, *GetPermissionRequest) (*GetPermissionResponse, error)
	CreatePermission(context.Context, *CreatePermissionRequest) (*DefaultResponse, error)
	UpdatePermission(context.Context, *UpdatePermissionRequest) (*DefaultResponse, error)
	DeletePermission(context.Context, *DeletePermissionRequest) (*DefaultResponse, error)
	// contains filtered or unexported methods
}

PermissionServiceServer is the server API for PermissionService service. All implementations must embed UnimplementedPermissionServiceServer for forward compatibility

type Profile

type Profile struct {
	Picture   *string `protobuf:"bytes,1,opt,name=picture,proto3,oneof" json:"picture,omitempty"`
	Gender    *string `protobuf:"bytes,2,opt,name=gender,proto3,oneof" json:"gender,omitempty"`
	Education *string `protobuf:"bytes,3,opt,name=education,proto3,oneof" json:"education,omitempty"`
	Locale    *string `protobuf:"bytes,4,opt,name=locale,proto3,oneof" json:"locale,omitempty"`
	Timezone  *string `protobuf:"bytes,5,opt,name=timezone,proto3,oneof" json:"timezone,omitempty"`
	Birthdate *string `protobuf:"bytes,6,opt,name=birthdate,proto3,oneof" json:"birthdate,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) Descriptor deprecated

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetBirthdate

func (x *Profile) GetBirthdate() string

func (*Profile) GetEducation

func (x *Profile) GetEducation() string

func (*Profile) GetGender

func (x *Profile) GetGender() string

func (*Profile) GetLocale

func (x *Profile) GetLocale() string

func (*Profile) GetPicture

func (x *Profile) GetPicture() string

func (*Profile) GetTimezone

func (x *Profile) GetTimezone() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect

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

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

type RefreshTokenRequest

type RefreshTokenRequest struct {
	RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,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 ResetPasswordConfirmRequest

type ResetPasswordConfirmRequest struct {
	Email    string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Token    string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetPasswordConfirmRequest) Descriptor deprecated

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

Deprecated: Use ResetPasswordConfirmRequest.ProtoReflect.Descriptor instead.

func (*ResetPasswordConfirmRequest) GetEmail

func (x *ResetPasswordConfirmRequest) GetEmail() string

func (*ResetPasswordConfirmRequest) GetPassword

func (x *ResetPasswordConfirmRequest) GetPassword() string

func (*ResetPasswordConfirmRequest) GetToken

func (x *ResetPasswordConfirmRequest) GetToken() string

func (*ResetPasswordConfirmRequest) ProtoMessage

func (*ResetPasswordConfirmRequest) ProtoMessage()

func (*ResetPasswordConfirmRequest) ProtoReflect

func (*ResetPasswordConfirmRequest) Reset

func (x *ResetPasswordConfirmRequest) Reset()

func (*ResetPasswordConfirmRequest) String

func (x *ResetPasswordConfirmRequest) String() string

type ResetPasswordRequest

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

func (*ResetPasswordRequest) Descriptor deprecated

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

Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.

func (*ResetPasswordRequest) GetEmail

func (x *ResetPasswordRequest) GetEmail() string

func (*ResetPasswordRequest) ProtoMessage

func (*ResetPasswordRequest) ProtoMessage()

func (*ResetPasswordRequest) ProtoReflect

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

func (*ResetPasswordRequest) Reset

func (x *ResetPasswordRequest) Reset()

func (*ResetPasswordRequest) String

func (x *ResetPasswordRequest) String() string

type ResetPasswordResponse

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

func (*ResetPasswordResponse) Descriptor deprecated

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

Deprecated: Use ResetPasswordResponse.ProtoReflect.Descriptor instead.

func (*ResetPasswordResponse) GetEmail

func (x *ResetPasswordResponse) GetEmail() string

func (*ResetPasswordResponse) ProtoMessage

func (*ResetPasswordResponse) ProtoMessage()

func (*ResetPasswordResponse) ProtoReflect

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

func (*ResetPasswordResponse) Reset

func (x *ResetPasswordResponse) Reset()

func (*ResetPasswordResponse) String

func (x *ResetPasswordResponse) String() string

type Role

type Role struct {
	Id          string        `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string        `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Key         string        `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Description string        `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Permissions []*Permission `protobuf:"bytes,5,rep,name=permissions,proto3" json:"permissions,omitempty"`
	CreatedAt   string        `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   string        `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Role) Descriptor deprecated

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

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetCreatedAt

func (x *Role) GetCreatedAt() string

func (*Role) GetDescription

func (x *Role) GetDescription() string

func (*Role) GetId

func (x *Role) GetId() string

func (*Role) GetKey

func (x *Role) GetKey() string

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetPermissions

func (x *Role) GetPermissions() []*Permission

func (*Role) GetUpdatedAt

func (x *Role) GetUpdatedAt() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

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

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

type RoleServiceClient

type RoleServiceClient interface {
	GetRoles(ctx context.Context, in *GetRolesRequest, opts ...grpc.CallOption) (*GetRolesResponse, error)
	GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleResponse, error)
	CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error)
	UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleResponse, error)
	DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error)
}

RoleServiceClient is the client API for RoleService 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 RoleServiceServer

type RoleServiceServer interface {
	GetRoles(context.Context, *GetRolesRequest) (*GetRolesResponse, error)
	GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
	CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
	UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
	DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
	// contains filtered or unexported methods
}

RoleServiceServer is the server API for RoleService service. All implementations must embed UnimplementedRoleServiceServer for forward compatibility

type SendVerificationCodeRequest

type SendVerificationCodeRequest struct {
	Type VerificationType `protobuf:"varint,1,opt,name=type,proto3,enum=v1.VerificationType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*SendVerificationCodeRequest) Descriptor deprecated

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

Deprecated: Use SendVerificationCodeRequest.ProtoReflect.Descriptor instead.

func (*SendVerificationCodeRequest) GetType

func (*SendVerificationCodeRequest) ProtoMessage

func (*SendVerificationCodeRequest) ProtoMessage()

func (*SendVerificationCodeRequest) ProtoReflect

func (*SendVerificationCodeRequest) Reset

func (x *SendVerificationCodeRequest) Reset()

func (*SendVerificationCodeRequest) String

func (x *SendVerificationCodeRequest) String() string

type Session

type Session struct {
	Id         uint64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ClientId   string  `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	ClientName string  `protobuf:"bytes,4,opt,name=client_name,json=clientName,proto3" json:"client_name,omitempty"`
	Device     *Device `protobuf:"bytes,5,opt,name=device,proto3,oneof" json:"device,omitempty"`
	ExpiresAt  string  `protobuf:"bytes,6,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"`
	CreatedAt  string  `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt  string  `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Session) Descriptor deprecated

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

Deprecated: Use Session.ProtoReflect.Descriptor instead.

func (*Session) GetClientId

func (x *Session) GetClientId() string

func (*Session) GetClientName

func (x *Session) GetClientName() string

func (*Session) GetCreatedAt

func (x *Session) GetCreatedAt() string

func (*Session) GetDevice

func (x *Session) GetDevice() *Device

func (*Session) GetExpiresAt

func (x *Session) GetExpiresAt() string

func (*Session) GetId

func (x *Session) GetId() uint64

func (*Session) GetUpdatedAt

func (x *Session) GetUpdatedAt() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) ProtoReflect

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

func (*Session) Reset

func (x *Session) Reset()

func (*Session) String

func (x *Session) String() string

type SessionServiceClient

type SessionServiceClient interface {
	GetSessions(ctx context.Context, in *GetSessionsRequest, opts ...grpc.CallOption) (*GetSessionsResponse, error)
	DeleteSession(ctx context.Context, in *DeleteSessionRequest, opts ...grpc.CallOption) (*DefaultResponse, error)
	SignOut(ctx context.Context, in *SignOutRequest, opts ...grpc.CallOption) (*DefaultResponse, error)
}

SessionServiceClient is the client API for SessionService 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 SessionServiceServer

type SessionServiceServer interface {
	GetSessions(context.Context, *GetSessionsRequest) (*GetSessionsResponse, error)
	DeleteSession(context.Context, *DeleteSessionRequest) (*DefaultResponse, error)
	SignOut(context.Context, *SignOutRequest) (*DefaultResponse, error)
	// contains filtered or unexported methods
}

SessionServiceServer is the server API for SessionService service. All implementations must embed UnimplementedSessionServiceServer for forward compatibility

type SignInRequest

type SignInRequest 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 (*SignInRequest) Descriptor deprecated

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

Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.

func (*SignInRequest) GetEmail

func (x *SignInRequest) GetEmail() string

func (*SignInRequest) GetPassword

func (x *SignInRequest) GetPassword() string

func (*SignInRequest) ProtoMessage

func (*SignInRequest) ProtoMessage()

func (*SignInRequest) ProtoReflect

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

func (*SignInRequest) Reset

func (x *SignInRequest) Reset()

func (*SignInRequest) String

func (x *SignInRequest) String() string

type SignOutRequest

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

func (*SignOutRequest) Descriptor deprecated

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

Deprecated: Use SignOutRequest.ProtoReflect.Descriptor instead.

func (*SignOutRequest) GetRefreshToken

func (x *SignOutRequest) GetRefreshToken() string

func (*SignOutRequest) ProtoMessage

func (*SignOutRequest) ProtoMessage()

func (*SignOutRequest) ProtoReflect

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

func (*SignOutRequest) Reset

func (x *SignOutRequest) Reset()

func (*SignOutRequest) String

func (x *SignOutRequest) String() string

type SignUpRequest

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

func (*SignUpRequest) Descriptor deprecated

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

Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.

func (*SignUpRequest) GetEmail

func (x *SignUpRequest) GetEmail() string

func (*SignUpRequest) GetName

func (x *SignUpRequest) GetName() string

func (*SignUpRequest) GetPassword

func (x *SignUpRequest) GetPassword() string

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 SocialProvider

type SocialProvider struct {
	Id                       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId                   string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Provider                 string `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
	ProviderUserId           string `protobuf:"bytes,4,opt,name=provider_user_id,json=providerUserId,proto3" json:"provider_user_id,omitempty"`
	ProviderUserAccessToken  string `` /* 134-byte string literal not displayed */
	ProviderUserRefreshToken string `` /* 137-byte string literal not displayed */
	ProviderUserExpiresAt    string `` /* 128-byte string literal not displayed */
	CreatedAt                string `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt                string `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*SocialProvider) Descriptor deprecated

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

Deprecated: Use SocialProvider.ProtoReflect.Descriptor instead.

func (*SocialProvider) GetCreatedAt

func (x *SocialProvider) GetCreatedAt() string

func (*SocialProvider) GetId

func (x *SocialProvider) GetId() string

func (*SocialProvider) GetProvider

func (x *SocialProvider) GetProvider() string

func (*SocialProvider) GetProviderUserAccessToken

func (x *SocialProvider) GetProviderUserAccessToken() string

func (*SocialProvider) GetProviderUserExpiresAt

func (x *SocialProvider) GetProviderUserExpiresAt() string

func (*SocialProvider) GetProviderUserId

func (x *SocialProvider) GetProviderUserId() string

func (*SocialProvider) GetProviderUserRefreshToken

func (x *SocialProvider) GetProviderUserRefreshToken() string

func (*SocialProvider) GetUpdatedAt

func (x *SocialProvider) GetUpdatedAt() string

func (*SocialProvider) GetUserId

func (x *SocialProvider) GetUserId() string

func (*SocialProvider) ProtoMessage

func (*SocialProvider) ProtoMessage()

func (*SocialProvider) ProtoReflect

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

func (*SocialProvider) Reset

func (x *SocialProvider) Reset()

func (*SocialProvider) String

func (x *SocialProvider) String() string

type SocialProviders

type SocialProviders struct {
	SocialProviders []*SocialProvider `protobuf:"bytes,1,rep,name=social_providers,json=socialProviders,proto3" json:"social_providers,omitempty"`
	// contains filtered or unexported fields
}

func (*SocialProviders) Descriptor deprecated

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

Deprecated: Use SocialProviders.ProtoReflect.Descriptor instead.

func (*SocialProviders) GetSocialProviders

func (x *SocialProviders) GetSocialProviders() []*SocialProvider

func (*SocialProviders) ProtoMessage

func (*SocialProviders) ProtoMessage()

func (*SocialProviders) ProtoReflect

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

func (*SocialProviders) Reset

func (x *SocialProviders) Reset()

func (*SocialProviders) String

func (x *SocialProviders) String() string

type UnimplementedAuthenticationServiceServer

type UnimplementedAuthenticationServiceServer struct {
}

UnimplementedAuthenticationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthenticationServiceServer) RefreshToken

func (UnimplementedAuthenticationServiceServer) ResetPassword

func (UnimplementedAuthenticationServiceServer) ResetPasswordConfirm

func (UnimplementedAuthenticationServiceServer) SignIn

func (UnimplementedAuthenticationServiceServer) SignUp

type UnimplementedPermissionServiceServer

type UnimplementedPermissionServiceServer struct {
}

UnimplementedPermissionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPermissionServiceServer) CreatePermission

func (UnimplementedPermissionServiceServer) DeletePermission

func (UnimplementedPermissionServiceServer) GetPermission

func (UnimplementedPermissionServiceServer) GetPermissions

func (UnimplementedPermissionServiceServer) UpdatePermission

type UnimplementedRoleServiceServer

type UnimplementedRoleServiceServer struct {
}

UnimplementedRoleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRoleServiceServer) CreateRole

func (UnimplementedRoleServiceServer) DeleteRole

func (UnimplementedRoleServiceServer) GetRole

func (UnimplementedRoleServiceServer) GetRoles

func (UnimplementedRoleServiceServer) UpdateRole

type UnimplementedSessionServiceServer

type UnimplementedSessionServiceServer struct {
}

UnimplementedSessionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSessionServiceServer) DeleteSession

func (UnimplementedSessionServiceServer) GetSessions

func (UnimplementedSessionServiceServer) SignOut

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) ChangeEmail

func (UnimplementedUserServiceServer) ChangePassword

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) GetUserProfile

func (UnimplementedUserServiceServer) GetUsers

func (UnimplementedUserServiceServer) SendVerificationCode

func (UnimplementedUserServiceServer) UpdateUser

func (UnimplementedUserServiceServer) Verify

func (UnimplementedUserServiceServer) VerifyToken

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 UnsafePermissionServiceServer

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

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

type UnsafeRoleServiceServer

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

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

type UnsafeSessionServiceServer

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

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

type UnsafeUserServiceServer

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

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

type UpdatePermissionRequest

type UpdatePermissionRequest struct {
	Permission *Permission `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePermissionRequest) Descriptor deprecated

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

Deprecated: Use UpdatePermissionRequest.ProtoReflect.Descriptor instead.

func (*UpdatePermissionRequest) GetPermission

func (x *UpdatePermissionRequest) GetPermission() *Permission

func (*UpdatePermissionRequest) ProtoMessage

func (*UpdatePermissionRequest) ProtoMessage()

func (*UpdatePermissionRequest) ProtoReflect

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

func (*UpdatePermissionRequest) Reset

func (x *UpdatePermissionRequest) Reset()

func (*UpdatePermissionRequest) String

func (x *UpdatePermissionRequest) String() string

type UpdateRoleRequest

type UpdateRoleRequest struct {
	Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRoleRequest) Descriptor deprecated

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

Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.

func (*UpdateRoleRequest) GetRole

func (x *UpdateRoleRequest) GetRole() *Role

func (*UpdateRoleRequest) ProtoMessage

func (*UpdateRoleRequest) ProtoMessage()

func (*UpdateRoleRequest) ProtoReflect

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

func (*UpdateRoleRequest) Reset

func (x *UpdateRoleRequest) Reset()

func (*UpdateRoleRequest) String

func (x *UpdateRoleRequest) String() string

type UpdateRoleResponse

type UpdateRoleResponse struct {
	Role *Role `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRoleResponse) Descriptor deprecated

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

Deprecated: Use UpdateRoleResponse.ProtoReflect.Descriptor instead.

func (*UpdateRoleResponse) GetRole

func (x *UpdateRoleResponse) GetRole() *Role

func (*UpdateRoleResponse) ProtoMessage

func (*UpdateRoleResponse) ProtoMessage()

func (*UpdateRoleResponse) ProtoReflect

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

func (*UpdateRoleResponse) Reset

func (x *UpdateRoleResponse) Reset()

func (*UpdateRoleResponse) String

func (x *UpdateRoleResponse) String() string

type UpdateUserRequest

type UpdateUserRequest struct {
	Name    *string  `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Profile *Profile `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetName

func (x *UpdateUserRequest) GetName() string

func (*UpdateUserRequest) GetProfile

func (x *UpdateUserRequest) GetProfile() *Profile

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type User

type User struct {
	Id                      string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email                   string     `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Password                *string    `protobuf:"bytes,3,opt,name=password,proto3,oneof" json:"password,omitempty"`
	Name                    string     `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	EmailVerificationToken  *string    `` /* 135-byte string literal not displayed */
	EmailVerificationSentAt *string    `` /* 140-byte string literal not displayed */
	EmailVerified           bool       `protobuf:"varint,7,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified,omitempty"`
	Sessions                []*Session `protobuf:"bytes,14,rep,name=sessions,proto3" json:"sessions,omitempty"`
	Profile                 *Profile   `protobuf:"bytes,15,opt,name=profile,proto3" json:"profile,omitempty"`
	CreatedAt               string     `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt               string     `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetEmailVerificationSentAt

func (x *User) GetEmailVerificationSentAt() string

func (*User) GetEmailVerificationToken

func (x *User) GetEmailVerificationToken() string

func (*User) GetEmailVerified

func (x *User) GetEmailVerified() bool

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetProfile

func (x *User) GetProfile() *Profile

func (*User) GetSessions

func (x *User) GetSessions() []*Session

func (*User) GetUpdatedAt

func (x *User) GetUpdatedAt() 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

type UserServiceClient

type UserServiceClient interface {
	VerifyToken(ctx context.Context, in *VerifyTokenRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	GetUserProfile(ctx context.Context, in *GetUserProfileRequest, opts ...grpc.CallOption) (*GetUserProfileResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*DefaultResponse, error)
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DefaultResponse, error)
	SendVerificationCode(ctx context.Context, in *SendVerificationCodeRequest, opts ...grpc.CallOption) (*DefaultResponse, error)
	Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*DefaultResponse, error)
	ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*DefaultResponse, error)
	ChangeEmail(ctx context.Context, in *ChangeEmailRequest, opts ...grpc.CallOption) (*DefaultResponse, error)
	// Admin
	GetUsers(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*GetUsersResponse, error)
}

UserServiceClient is the client API for UserService 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 UserServiceServer

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type VerificationType

type VerificationType int32
const (
	VerificationType_EMAIL VerificationType = 0
	VerificationType_PHONE VerificationType = 1
)

func (VerificationType) Descriptor

func (VerificationType) Enum

func (VerificationType) EnumDescriptor deprecated

func (VerificationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use VerificationType.Descriptor instead.

func (VerificationType) Number

func (VerificationType) String

func (x VerificationType) String() string

func (VerificationType) Type

type VerifyRequest

type VerifyRequest struct {
	Type VerificationType `protobuf:"varint,1,opt,name=type,proto3,enum=v1.VerificationType" json:"type,omitempty"`
	Code string           `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyRequest) Descriptor deprecated

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

Deprecated: Use VerifyRequest.ProtoReflect.Descriptor instead.

func (*VerifyRequest) GetCode

func (x *VerifyRequest) GetCode() string

func (*VerifyRequest) GetType

func (x *VerifyRequest) GetType() VerificationType

func (*VerifyRequest) ProtoMessage

func (*VerifyRequest) ProtoMessage()

func (*VerifyRequest) ProtoReflect

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

func (*VerifyRequest) Reset

func (x *VerifyRequest) Reset()

func (*VerifyRequest) String

func (x *VerifyRequest) String() string

type VerifyTokenRequest

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

func (*VerifyTokenRequest) Descriptor deprecated

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

Deprecated: Use VerifyTokenRequest.ProtoReflect.Descriptor instead.

func (*VerifyTokenRequest) GetRefreshToken

func (x *VerifyTokenRequest) GetRefreshToken() string

func (*VerifyTokenRequest) ProtoMessage

func (*VerifyTokenRequest) ProtoMessage()

func (*VerifyTokenRequest) ProtoReflect

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

func (*VerifyTokenRequest) Reset

func (x *VerifyTokenRequest) Reset()

func (*VerifyTokenRequest) String

func (x *VerifyTokenRequest) String() string

Jump to

Keyboard shortcuts

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