Documentation ¶
Index ¶
- Variables
- func RegisterAccountsServer(s grpc.ServiceRegistrar, srv AccountsServer)
- func RegisterAuthenticationServer(s grpc.ServiceRegistrar, srv AuthenticationServer)
- func RegisterAuthorizationServer(s grpc.ServiceRegistrar, srv AuthorizationServer)
- func RegisterRightsServer(s grpc.ServiceRegistrar, srv RightsServer)
- type AccessRights
- func (AccessRights) Descriptor() protoreflect.EnumDescriptor
- func (x AccessRights) Enum() *AccessRights
- func (AccessRights) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccessRights) Number() protoreflect.EnumNumber
- func (x AccessRights) String() string
- func (AccessRights) Type() protoreflect.EnumType
- type AccessRuleId
- type AccessRuleIdAndRight
- func (*AccessRuleIdAndRight) Descriptor() ([]byte, []int)deprecated
- func (x *AccessRuleIdAndRight) GetAccessRight() AccessRights
- func (x *AccessRuleIdAndRight) GetId() string
- func (*AccessRuleIdAndRight) ProtoMessage()
- func (x *AccessRuleIdAndRight) ProtoReflect() protoreflect.Message
- func (x *AccessRuleIdAndRight) Reset()
- func (x *AccessRuleIdAndRight) String() string
- type AccessRuleInfo
- func (*AccessRuleInfo) Descriptor() ([]byte, []int)deprecated
- func (x *AccessRuleInfo) GetAccessRight() AccessRights
- func (x *AccessRuleInfo) GetApplicationId() string
- func (x *AccessRuleInfo) GetId() string
- func (x *AccessRuleInfo) GetUserId() string
- func (*AccessRuleInfo) ProtoMessage()
- func (x *AccessRuleInfo) ProtoReflect() protoreflect.Message
- func (x *AccessRuleInfo) Reset()
- func (x *AccessRuleInfo) String() string
- type AccessRuleWithoutId
- func (*AccessRuleWithoutId) Descriptor() ([]byte, []int)deprecated
- func (x *AccessRuleWithoutId) GetAccessRight() AccessRights
- func (x *AccessRuleWithoutId) GetApplicationId() string
- func (x *AccessRuleWithoutId) GetUserId() string
- func (*AccessRuleWithoutId) ProtoMessage()
- func (x *AccessRuleWithoutId) ProtoReflect() protoreflect.Message
- func (x *AccessRuleWithoutId) Reset()
- func (x *AccessRuleWithoutId) String() string
- type AccountCreds
- func (*AccountCreds) Descriptor() ([]byte, []int)deprecated
- func (x *AccountCreds) GetPassword() string
- func (x *AccountCreds) GetUsername() string
- func (*AccountCreds) ProtoMessage()
- func (x *AccountCreds) ProtoReflect() protoreflect.Message
- func (x *AccountCreds) Reset()
- func (x *AccountCreds) String() string
- type AccountId
- type AccountInfo
- type AccountInfoWithSensitive
- func (*AccountInfoWithSensitive) Descriptor() ([]byte, []int)deprecated
- func (x *AccountInfoWithSensitive) GetId() string
- func (x *AccountInfoWithSensitive) GetPassword() string
- func (x *AccountInfoWithSensitive) GetUsername() string
- func (*AccountInfoWithSensitive) ProtoMessage()
- func (x *AccountInfoWithSensitive) ProtoReflect() protoreflect.Message
- func (x *AccountInfoWithSensitive) Reset()
- func (x *AccountInfoWithSensitive) String() string
- type AccountName
- type AccountsClient
- type AccountsListOptions
- func (*AccountsListOptions) Descriptor() ([]byte, []int)deprecated
- func (x *AccountsListOptions) GetAccountName() *AccountName
- func (*AccountsListOptions) ProtoMessage()
- func (x *AccountsListOptions) ProtoReflect() protoreflect.Message
- func (x *AccountsListOptions) Reset()
- func (x *AccountsListOptions) String() string
- type AccountsServer
- type Accounts_ListClient
- type Accounts_ListServer
- type AuthenticationClient
- type AuthenticationServer
- type AuthorizationClient
- type AuthorizationServer
- type PasswordUpdate
- func (*PasswordUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *PasswordUpdate) GetId() string
- func (x *PasswordUpdate) GetNewPassword() string
- func (x *PasswordUpdate) GetOldPassword() string
- func (x *PasswordUpdate) GetUsername() string
- func (*PasswordUpdate) ProtoMessage()
- func (x *PasswordUpdate) ProtoReflect() protoreflect.Message
- func (x *PasswordUpdate) Reset()
- func (x *PasswordUpdate) String() string
- type RightsClient
- type RightsServer
- type UnimplementedAccountsServer
- func (UnimplementedAccountsServer) Create(context.Context, *AccountCreds) (*AccountInfo, error)
- func (UnimplementedAccountsServer) Get(context.Context, *AccountId) (*AccountInfo, error)
- func (UnimplementedAccountsServer) List(*AccountsListOptions, Accounts_ListServer) error
- func (UnimplementedAccountsServer) SelfGet(context.Context, *AccountId) (*AccountInfo, error)
- func (UnimplementedAccountsServer) UpdatePassword(context.Context, *PasswordUpdate) (*emptypb.Empty, error)
- func (UnimplementedAccountsServer) UpdateUser(context.Context, *AccountInfo) (*AccountInfo, error)
- type UnimplementedAuthenticationServer
- type UnimplementedAuthorizationServer
- func (UnimplementedAuthorizationServer) ParseIdFromToken(context.Context, *emptypb.Empty) (*AccountId, error)
- func (UnimplementedAuthorizationServer) RefreshToken(context.Context, *AccountId) (*emptypb.Empty, error)
- func (UnimplementedAuthorizationServer) ValidateToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- type UnimplementedRightsServer
- func (UnimplementedRightsServer) Create(context.Context, *AccessRuleWithoutId) (*AccessRuleInfo, error)
- func (UnimplementedRightsServer) Delete(context.Context, *AccessRuleId) (*emptypb.Empty, error)
- func (UnimplementedRightsServer) Get(context.Context, *AccessRuleId) (*AccessRuleInfo, error)
- func (UnimplementedRightsServer) Init(context.Context, *AccessRuleWithoutId) (*AccessRuleInfo, error)
- func (UnimplementedRightsServer) Update(context.Context, *AccessRuleIdAndRight) (*AccessRuleIdAndRight, error)
- type UnsafeAccountsServer
- type UnsafeAuthenticationServer
- type UnsafeAuthorizationServer
- type UnsafeRightsServer
Constants ¶
This section is empty.
Variables ¶
var ( AccessRights_name = map[int32]string{ 0: "ACCESS_RIGHTS_READ_UNSPECIFIED", 1: "ACCESS_RIGHTS_WRITE", 2: "ACCESS_RIGHTS_DELETE", } AccessRights_value = map[string]int32{ "ACCESS_RIGHTS_READ_UNSPECIFIED": 0, "ACCESS_RIGHTS_WRITE": 1, "ACCESS_RIGHTS_DELETE": 2, } )
Enum value maps for AccessRights.
var Accounts_ServiceDesc = grpc.ServiceDesc{ ServiceName: "users.Accounts", HandlerType: (*AccountsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _Accounts_Create_Handler, }, { MethodName: "UpdateUser", Handler: _Accounts_UpdateUser_Handler, }, { MethodName: "UpdatePassword", Handler: _Accounts_UpdatePassword_Handler, }, { MethodName: "Get", Handler: _Accounts_Get_Handler, }, { MethodName: "SelfGet", Handler: _Accounts_SelfGet_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "List", Handler: _Accounts_List_Handler, ServerStreams: true, }, }, Metadata: "accounts_v1.proto", }
Accounts_ServiceDesc is the grpc.ServiceDesc for Accounts service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Authentication_ServiceDesc = grpc.ServiceDesc{ ServiceName: "users.Authentication", HandlerType: (*AuthenticationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignIn", Handler: _Authentication_SignIn_Handler, }, { MethodName: "SignUp", Handler: _Authentication_SignUp_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authentication_v1.proto", }
Authentication_ServiceDesc is the grpc.ServiceDesc for Authentication service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Authorization_ServiceDesc = grpc.ServiceDesc{ ServiceName: "users.Authorization", HandlerType: (*AuthorizationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RefreshToken", Handler: _Authorization_RefreshToken_Handler, }, { MethodName: "ValidateToken", Handler: _Authorization_ValidateToken_Handler, }, { MethodName: "ParseIdFromToken", Handler: _Authorization_ParseIdFromToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "authorization_v1.proto", }
Authorization_ServiceDesc is the grpc.ServiceDesc for Authorization service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_accounts_v1_proto protoreflect.FileDescriptor
var File_authentication_v1_proto protoreflect.FileDescriptor
var File_rights_v1_proto protoreflect.FileDescriptor
var Rights_ServiceDesc = grpc.ServiceDesc{ ServiceName: "users.Rights", HandlerType: (*RightsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Init", Handler: _Rights_Init_Handler, }, { MethodName: "Create", Handler: _Rights_Create_Handler, }, { MethodName: "Update", Handler: _Rights_Update_Handler, }, { MethodName: "Delete", Handler: _Rights_Delete_Handler, }, { MethodName: "Get", Handler: _Rights_Get_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rights_v1.proto", }
Rights_ServiceDesc is the grpc.ServiceDesc for Rights service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAccountsServer ¶
func RegisterAccountsServer(s grpc.ServiceRegistrar, srv AccountsServer)
func RegisterAuthenticationServer ¶
func RegisterAuthenticationServer(s grpc.ServiceRegistrar, srv AuthenticationServer)
func RegisterAuthorizationServer ¶
func RegisterAuthorizationServer(s grpc.ServiceRegistrar, srv AuthorizationServer)
func RegisterRightsServer ¶
func RegisterRightsServer(s grpc.ServiceRegistrar, srv RightsServer)
Types ¶
type AccessRights ¶
type AccessRights int32
const ( AccessRights_ACCESS_RIGHTS_READ_UNSPECIFIED AccessRights = 0 AccessRights_ACCESS_RIGHTS_WRITE AccessRights = 1 AccessRights_ACCESS_RIGHTS_DELETE AccessRights = 2 )
func (AccessRights) Descriptor ¶
func (AccessRights) Descriptor() protoreflect.EnumDescriptor
func (AccessRights) Enum ¶
func (x AccessRights) Enum() *AccessRights
func (AccessRights) EnumDescriptor
deprecated
func (AccessRights) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccessRights.Descriptor instead.
func (AccessRights) Number ¶
func (x AccessRights) Number() protoreflect.EnumNumber
func (AccessRights) String ¶
func (x AccessRights) String() string
func (AccessRights) Type ¶
func (AccessRights) Type() protoreflect.EnumType
type AccessRuleId ¶
type AccessRuleId struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AccessRuleId) Descriptor
deprecated
func (*AccessRuleId) Descriptor() ([]byte, []int)
Deprecated: Use AccessRuleId.ProtoReflect.Descriptor instead.
func (*AccessRuleId) GetId ¶
func (x *AccessRuleId) GetId() string
func (*AccessRuleId) ProtoMessage ¶
func (*AccessRuleId) ProtoMessage()
func (*AccessRuleId) ProtoReflect ¶
func (x *AccessRuleId) ProtoReflect() protoreflect.Message
func (*AccessRuleId) Reset ¶
func (x *AccessRuleId) Reset()
func (*AccessRuleId) String ¶
func (x *AccessRuleId) String() string
type AccessRuleIdAndRight ¶
type AccessRuleIdAndRight struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` AccessRight AccessRights `protobuf:"varint,3,opt,name=access_right,json=accessRight,proto3,enum=users.AccessRights" json:"access_right,omitempty"` // contains filtered or unexported fields }
func (*AccessRuleIdAndRight) Descriptor
deprecated
func (*AccessRuleIdAndRight) Descriptor() ([]byte, []int)
Deprecated: Use AccessRuleIdAndRight.ProtoReflect.Descriptor instead.
func (*AccessRuleIdAndRight) GetAccessRight ¶
func (x *AccessRuleIdAndRight) GetAccessRight() AccessRights
func (*AccessRuleIdAndRight) GetId ¶
func (x *AccessRuleIdAndRight) GetId() string
func (*AccessRuleIdAndRight) ProtoMessage ¶
func (*AccessRuleIdAndRight) ProtoMessage()
func (*AccessRuleIdAndRight) ProtoReflect ¶
func (x *AccessRuleIdAndRight) ProtoReflect() protoreflect.Message
func (*AccessRuleIdAndRight) Reset ¶
func (x *AccessRuleIdAndRight) Reset()
func (*AccessRuleIdAndRight) String ¶
func (x *AccessRuleIdAndRight) String() string
type AccessRuleInfo ¶
type AccessRuleInfo 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"` ApplicationId string `protobuf:"bytes,3,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"` AccessRight AccessRights `protobuf:"varint,4,opt,name=access_right,json=accessRight,proto3,enum=users.AccessRights" json:"access_right,omitempty"` // contains filtered or unexported fields }
func (*AccessRuleInfo) Descriptor
deprecated
func (*AccessRuleInfo) Descriptor() ([]byte, []int)
Deprecated: Use AccessRuleInfo.ProtoReflect.Descriptor instead.
func (*AccessRuleInfo) GetAccessRight ¶
func (x *AccessRuleInfo) GetAccessRight() AccessRights
func (*AccessRuleInfo) GetApplicationId ¶
func (x *AccessRuleInfo) GetApplicationId() string
func (*AccessRuleInfo) GetId ¶
func (x *AccessRuleInfo) GetId() string
func (*AccessRuleInfo) GetUserId ¶
func (x *AccessRuleInfo) GetUserId() string
func (*AccessRuleInfo) ProtoMessage ¶
func (*AccessRuleInfo) ProtoMessage()
func (*AccessRuleInfo) ProtoReflect ¶
func (x *AccessRuleInfo) ProtoReflect() protoreflect.Message
func (*AccessRuleInfo) Reset ¶
func (x *AccessRuleInfo) Reset()
func (*AccessRuleInfo) String ¶
func (x *AccessRuleInfo) String() string
type AccessRuleWithoutId ¶
type AccessRuleWithoutId struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ApplicationId string `protobuf:"bytes,2,opt,name=application_id,json=applicationId,proto3" json:"application_id,omitempty"` AccessRight AccessRights `protobuf:"varint,3,opt,name=access_right,json=accessRight,proto3,enum=users.AccessRights" json:"access_right,omitempty"` // contains filtered or unexported fields }
func (*AccessRuleWithoutId) Descriptor
deprecated
func (*AccessRuleWithoutId) Descriptor() ([]byte, []int)
Deprecated: Use AccessRuleWithoutId.ProtoReflect.Descriptor instead.
func (*AccessRuleWithoutId) GetAccessRight ¶
func (x *AccessRuleWithoutId) GetAccessRight() AccessRights
func (*AccessRuleWithoutId) GetApplicationId ¶
func (x *AccessRuleWithoutId) GetApplicationId() string
func (*AccessRuleWithoutId) GetUserId ¶
func (x *AccessRuleWithoutId) GetUserId() string
func (*AccessRuleWithoutId) ProtoMessage ¶
func (*AccessRuleWithoutId) ProtoMessage()
func (*AccessRuleWithoutId) ProtoReflect ¶
func (x *AccessRuleWithoutId) ProtoReflect() protoreflect.Message
func (*AccessRuleWithoutId) Reset ¶
func (x *AccessRuleWithoutId) Reset()
func (*AccessRuleWithoutId) String ¶
func (x *AccessRuleWithoutId) String() string
type AccountCreds ¶
type AccountCreds struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // username: unix-like Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // password // contains filtered or unexported fields }
* Represents credentials (username and password)
func (*AccountCreds) Descriptor
deprecated
func (*AccountCreds) Descriptor() ([]byte, []int)
Deprecated: Use AccountCreds.ProtoReflect.Descriptor instead.
func (*AccountCreds) GetPassword ¶
func (x *AccountCreds) GetPassword() string
func (*AccountCreds) GetUsername ¶
func (x *AccountCreds) GetUsername() string
func (*AccountCreds) ProtoMessage ¶
func (*AccountCreds) ProtoMessage()
func (*AccountCreds) ProtoReflect ¶
func (x *AccountCreds) ProtoReflect() protoreflect.Message
func (*AccountCreds) Reset ¶
func (x *AccountCreds) Reset()
func (*AccountCreds) String ¶
func (x *AccountCreds) String() string
type AccountId ¶
type AccountId struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // UUID // contains filtered or unexported fields }
* Represents an account's ID only
func (*AccountId) Descriptor
deprecated
func (*AccountId) ProtoMessage ¶
func (*AccountId) ProtoMessage()
func (*AccountId) ProtoReflect ¶
func (x *AccountId) ProtoReflect() protoreflect.Message
type AccountInfo ¶
type AccountInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // UUID Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // username: unix-like // contains filtered or unexported fields }
* Represents an account without sensitive data
func (*AccountInfo) Descriptor
deprecated
func (*AccountInfo) Descriptor() ([]byte, []int)
Deprecated: Use AccountInfo.ProtoReflect.Descriptor instead.
func (*AccountInfo) GetId ¶
func (x *AccountInfo) GetId() string
func (*AccountInfo) GetUsername ¶
func (x *AccountInfo) GetUsername() string
func (*AccountInfo) ProtoMessage ¶
func (*AccountInfo) ProtoMessage()
func (*AccountInfo) ProtoReflect ¶
func (x *AccountInfo) ProtoReflect() protoreflect.Message
func (*AccountInfo) Reset ¶
func (x *AccountInfo) Reset()
func (*AccountInfo) String ¶
func (x *AccountInfo) String() string
type AccountInfoWithSensitive ¶
type AccountInfoWithSensitive struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // UUID Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // username: unix-like Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // Password // contains filtered or unexported fields }
* Represents an account with sensitive data
func (*AccountInfoWithSensitive) Descriptor
deprecated
func (*AccountInfoWithSensitive) Descriptor() ([]byte, []int)
Deprecated: Use AccountInfoWithSensitive.ProtoReflect.Descriptor instead.
func (*AccountInfoWithSensitive) GetId ¶
func (x *AccountInfoWithSensitive) GetId() string
func (*AccountInfoWithSensitive) GetPassword ¶
func (x *AccountInfoWithSensitive) GetPassword() string
func (*AccountInfoWithSensitive) GetUsername ¶
func (x *AccountInfoWithSensitive) GetUsername() string
func (*AccountInfoWithSensitive) ProtoMessage ¶
func (*AccountInfoWithSensitive) ProtoMessage()
func (*AccountInfoWithSensitive) ProtoReflect ¶
func (x *AccountInfoWithSensitive) ProtoReflect() protoreflect.Message
func (*AccountInfoWithSensitive) Reset ¶
func (x *AccountInfoWithSensitive) Reset()
func (*AccountInfoWithSensitive) String ¶
func (x *AccountInfoWithSensitive) String() string
type AccountName ¶
type AccountName struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // username // contains filtered or unexported fields }
* Represents username only
func (*AccountName) Descriptor
deprecated
func (*AccountName) Descriptor() ([]byte, []int)
Deprecated: Use AccountName.ProtoReflect.Descriptor instead.
func (*AccountName) GetUsername ¶
func (x *AccountName) GetUsername() string
func (*AccountName) ProtoMessage ¶
func (*AccountName) ProtoMessage()
func (*AccountName) ProtoReflect ¶
func (x *AccountName) ProtoReflect() protoreflect.Message
func (*AccountName) Reset ¶
func (x *AccountName) Reset()
func (*AccountName) String ¶
func (x *AccountName) String() string
type AccountsClient ¶
type AccountsClient interface { /// Use to create an account Create(ctx context.Context, in *AccountCreds, opts ...grpc.CallOption) (*AccountInfo, error) /// Use to update an account UpdateUser(ctx context.Context, in *AccountInfo, opts ...grpc.CallOption) (*AccountInfo, error) /// Use to update a password UpdatePassword(ctx context.Context, in *PasswordUpdate, opts ...grpc.CallOption) (*emptypb.Empty, error) /// Use to get an account by ID Get(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*AccountInfo, error) /// Use to get yourself by ID SelfGet(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*AccountInfo, error) /// List Accounts List(ctx context.Context, in *AccountsListOptions, opts ...grpc.CallOption) (Accounts_ListClient, error) }
AccountsClient is the client API for Accounts service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAccountsClient ¶
func NewAccountsClient(cc grpc.ClientConnInterface) AccountsClient
type AccountsListOptions ¶
type AccountsListOptions struct { AccountName *AccountName `protobuf:"bytes,1,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` // contains filtered or unexported fields }
* Represents options for accounts listing
func (*AccountsListOptions) Descriptor
deprecated
func (*AccountsListOptions) Descriptor() ([]byte, []int)
Deprecated: Use AccountsListOptions.ProtoReflect.Descriptor instead.
func (*AccountsListOptions) GetAccountName ¶
func (x *AccountsListOptions) GetAccountName() *AccountName
func (*AccountsListOptions) ProtoMessage ¶
func (*AccountsListOptions) ProtoMessage()
func (*AccountsListOptions) ProtoReflect ¶
func (x *AccountsListOptions) ProtoReflect() protoreflect.Message
func (*AccountsListOptions) Reset ¶
func (x *AccountsListOptions) Reset()
func (*AccountsListOptions) String ¶
func (x *AccountsListOptions) String() string
type AccountsServer ¶
type AccountsServer interface { /// Use to create an account Create(context.Context, *AccountCreds) (*AccountInfo, error) /// Use to update an account UpdateUser(context.Context, *AccountInfo) (*AccountInfo, error) /// Use to update a password UpdatePassword(context.Context, *PasswordUpdate) (*emptypb.Empty, error) /// Use to get an account by ID Get(context.Context, *AccountId) (*AccountInfo, error) /// Use to get yourself by ID SelfGet(context.Context, *AccountId) (*AccountInfo, error) /// List Accounts List(*AccountsListOptions, Accounts_ListServer) error // contains filtered or unexported methods }
AccountsServer is the server API for Accounts service. All implementations must embed UnimplementedAccountsServer for forward compatibility
type Accounts_ListClient ¶
type Accounts_ListClient interface { Recv() (*AccountInfo, error) grpc.ClientStream }
type Accounts_ListServer ¶
type Accounts_ListServer interface { Send(*AccountInfo) error grpc.ServerStream }
type AuthenticationClient ¶
type AuthenticationClient interface { /// Use to sign in SignIn(ctx context.Context, in *AccountCreds, opts ...grpc.CallOption) (*AccountId, error) /// Use to sign up SignUp(ctx context.Context, in *AccountCreds, opts ...grpc.CallOption) (*AccountId, error) }
AuthenticationClient is the client API for Authentication service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthenticationClient ¶
func NewAuthenticationClient(cc grpc.ClientConnInterface) AuthenticationClient
type AuthenticationServer ¶
type AuthenticationServer interface { /// Use to sign in SignIn(context.Context, *AccountCreds) (*AccountId, error) /// Use to sign up SignUp(context.Context, *AccountCreds) (*AccountId, error) // contains filtered or unexported methods }
AuthenticationServer is the server API for Authentication service. All implementations must embed UnimplementedAuthenticationServer for forward compatibility
type AuthorizationClient ¶
type AuthorizationClient interface { /// Use to refresh access token RefreshToken(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*emptypb.Empty, error) /// Use To validate jwt token ValidateToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) /// Use to parse user ID from token ParseIdFromToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AccountId, error) }
AuthorizationClient is the client API for Authorization service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAuthorizationClient ¶
func NewAuthorizationClient(cc grpc.ClientConnInterface) AuthorizationClient
type AuthorizationServer ¶
type AuthorizationServer interface { /// Use to refresh access token RefreshToken(context.Context, *AccountId) (*emptypb.Empty, error) /// Use To validate jwt token ValidateToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error) /// Use to parse user ID from token ParseIdFromToken(context.Context, *emptypb.Empty) (*AccountId, error) // contains filtered or unexported methods }
AuthorizationServer is the server API for Authorization service. All implementations must embed UnimplementedAuthorizationServer for forward compatibility
type PasswordUpdate ¶
type PasswordUpdate struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` OldPassword string `protobuf:"bytes,3,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"` NewPassword string `protobuf:"bytes,4,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` // contains filtered or unexported fields }
* Represents fields required for a password update
func (*PasswordUpdate) Descriptor
deprecated
func (*PasswordUpdate) Descriptor() ([]byte, []int)
Deprecated: Use PasswordUpdate.ProtoReflect.Descriptor instead.
func (*PasswordUpdate) GetId ¶
func (x *PasswordUpdate) GetId() string
func (*PasswordUpdate) GetNewPassword ¶
func (x *PasswordUpdate) GetNewPassword() string
func (*PasswordUpdate) GetOldPassword ¶
func (x *PasswordUpdate) GetOldPassword() string
func (*PasswordUpdate) GetUsername ¶
func (x *PasswordUpdate) GetUsername() string
func (*PasswordUpdate) ProtoMessage ¶
func (*PasswordUpdate) ProtoMessage()
func (*PasswordUpdate) ProtoReflect ¶
func (x *PasswordUpdate) ProtoReflect() protoreflect.Message
func (*PasswordUpdate) Reset ¶
func (x *PasswordUpdate) Reset()
func (*PasswordUpdate) String ¶
func (x *PasswordUpdate) String() string
type RightsClient ¶
type RightsClient interface { Init(ctx context.Context, in *AccessRuleWithoutId, opts ...grpc.CallOption) (*AccessRuleInfo, error) Create(ctx context.Context, in *AccessRuleWithoutId, opts ...grpc.CallOption) (*AccessRuleInfo, error) Update(ctx context.Context, in *AccessRuleIdAndRight, opts ...grpc.CallOption) (*AccessRuleIdAndRight, error) Delete(ctx context.Context, in *AccessRuleId, opts ...grpc.CallOption) (*emptypb.Empty, error) Get(ctx context.Context, in *AccessRuleId, opts ...grpc.CallOption) (*AccessRuleInfo, error) }
RightsClient is the client API for Rights service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRightsClient ¶
func NewRightsClient(cc grpc.ClientConnInterface) RightsClient
type RightsServer ¶
type RightsServer interface { Init(context.Context, *AccessRuleWithoutId) (*AccessRuleInfo, error) Create(context.Context, *AccessRuleWithoutId) (*AccessRuleInfo, error) Update(context.Context, *AccessRuleIdAndRight) (*AccessRuleIdAndRight, error) Delete(context.Context, *AccessRuleId) (*emptypb.Empty, error) Get(context.Context, *AccessRuleId) (*AccessRuleInfo, error) // contains filtered or unexported methods }
RightsServer is the server API for Rights service. All implementations must embed UnimplementedRightsServer for forward compatibility
type UnimplementedAccountsServer ¶
type UnimplementedAccountsServer struct { }
UnimplementedAccountsServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountsServer) Create ¶
func (UnimplementedAccountsServer) Create(context.Context, *AccountCreds) (*AccountInfo, error)
func (UnimplementedAccountsServer) Get ¶
func (UnimplementedAccountsServer) Get(context.Context, *AccountId) (*AccountInfo, error)
func (UnimplementedAccountsServer) List ¶
func (UnimplementedAccountsServer) List(*AccountsListOptions, Accounts_ListServer) error
func (UnimplementedAccountsServer) SelfGet ¶
func (UnimplementedAccountsServer) SelfGet(context.Context, *AccountId) (*AccountInfo, error)
func (UnimplementedAccountsServer) UpdatePassword ¶
func (UnimplementedAccountsServer) UpdatePassword(context.Context, *PasswordUpdate) (*emptypb.Empty, error)
func (UnimplementedAccountsServer) UpdateUser ¶
func (UnimplementedAccountsServer) UpdateUser(context.Context, *AccountInfo) (*AccountInfo, error)
type UnimplementedAuthenticationServer ¶
type UnimplementedAuthenticationServer struct { }
UnimplementedAuthenticationServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthenticationServer) SignIn ¶
func (UnimplementedAuthenticationServer) SignIn(context.Context, *AccountCreds) (*AccountId, error)
func (UnimplementedAuthenticationServer) SignUp ¶
func (UnimplementedAuthenticationServer) SignUp(context.Context, *AccountCreds) (*AccountId, error)
type UnimplementedAuthorizationServer ¶
type UnimplementedAuthorizationServer struct { }
UnimplementedAuthorizationServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthorizationServer) ParseIdFromToken ¶
func (UnimplementedAuthorizationServer) RefreshToken ¶
func (UnimplementedAuthorizationServer) ValidateToken ¶
type UnimplementedRightsServer ¶
type UnimplementedRightsServer struct { }
UnimplementedRightsServer must be embedded to have forward compatible implementations.
func (UnimplementedRightsServer) Create ¶
func (UnimplementedRightsServer) Create(context.Context, *AccessRuleWithoutId) (*AccessRuleInfo, error)
func (UnimplementedRightsServer) Delete ¶
func (UnimplementedRightsServer) Delete(context.Context, *AccessRuleId) (*emptypb.Empty, error)
func (UnimplementedRightsServer) Get ¶
func (UnimplementedRightsServer) Get(context.Context, *AccessRuleId) (*AccessRuleInfo, error)
func (UnimplementedRightsServer) Init ¶
func (UnimplementedRightsServer) Init(context.Context, *AccessRuleWithoutId) (*AccessRuleInfo, error)
func (UnimplementedRightsServer) Update ¶
func (UnimplementedRightsServer) Update(context.Context, *AccessRuleIdAndRight) (*AccessRuleIdAndRight, error)
type UnsafeAccountsServer ¶
type UnsafeAccountsServer interface {
// contains filtered or unexported methods
}
UnsafeAccountsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountsServer will result in compilation errors.
type UnsafeAuthenticationServer ¶
type UnsafeAuthenticationServer interface {
// contains filtered or unexported methods
}
UnsafeAuthenticationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticationServer will result in compilation errors.
type UnsafeAuthorizationServer ¶
type UnsafeAuthorizationServer interface {
// contains filtered or unexported methods
}
UnsafeAuthorizationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthorizationServer will result in compilation errors.
type UnsafeRightsServer ¶
type UnsafeRightsServer interface {
// contains filtered or unexported methods
}
UnsafeRightsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RightsServer will result in compilation errors.