Versions in this module Expand all Collapse all v0 v0.1.2 Oct 21, 2022 Changes in this version + var AccessRights_name = map[int32]string + var AccessRights_value = map[string]int32 + var Accounts_ServiceDesc = grpc.ServiceDesc + var Authentication_ServiceDesc = grpc.ServiceDesc + var Authorization_ServiceDesc = grpc.ServiceDesc + var File_accounts_v1_proto protoreflect.FileDescriptor + var File_authentication_v1_proto protoreflect.FileDescriptor + var File_authorization_v1_proto protoreflect.FileDescriptor + var File_rights_v1_proto protoreflect.FileDescriptor + var Rights_ServiceDesc = grpc.ServiceDesc + 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 int32 + const AccessRights_ACCESS_RIGHTS_DELETE + const AccessRights_ACCESS_RIGHTS_READ_UNSPECIFIED + const AccessRights_ACCESS_RIGHTS_WRITE + func (AccessRights) Descriptor() protoreflect.EnumDescriptor + func (AccessRights) EnumDescriptor() ([]byte, []int) + func (AccessRights) Type() protoreflect.EnumType + func (x AccessRights) Enum() *AccessRights + func (x AccessRights) Number() protoreflect.EnumNumber + func (x AccessRights) String() string + type AccessRuleId struct + Id string + func (*AccessRuleId) Descriptor() ([]byte, []int) + func (*AccessRuleId) ProtoMessage() + func (x *AccessRuleId) GetId() string + func (x *AccessRuleId) ProtoReflect() protoreflect.Message + func (x *AccessRuleId) Reset() + func (x *AccessRuleId) String() string + type AccessRuleIdAndRight struct + AccessRight AccessRights + Id string + func (*AccessRuleIdAndRight) Descriptor() ([]byte, []int) + func (*AccessRuleIdAndRight) ProtoMessage() + func (x *AccessRuleIdAndRight) GetAccessRight() AccessRights + func (x *AccessRuleIdAndRight) GetId() string + func (x *AccessRuleIdAndRight) ProtoReflect() protoreflect.Message + func (x *AccessRuleIdAndRight) Reset() + func (x *AccessRuleIdAndRight) String() string + type AccessRuleInfo struct + AccessRight AccessRights + ApplicationId string + Id string + UserId string + func (*AccessRuleInfo) Descriptor() ([]byte, []int) + func (*AccessRuleInfo) ProtoMessage() + func (x *AccessRuleInfo) GetAccessRight() AccessRights + func (x *AccessRuleInfo) GetApplicationId() string + func (x *AccessRuleInfo) GetId() string + func (x *AccessRuleInfo) GetUserId() string + func (x *AccessRuleInfo) ProtoReflect() protoreflect.Message + func (x *AccessRuleInfo) Reset() + func (x *AccessRuleInfo) String() string + type AccessRuleWithoutId struct + AccessRight AccessRights + ApplicationId string + UserId string + func (*AccessRuleWithoutId) Descriptor() ([]byte, []int) + func (*AccessRuleWithoutId) ProtoMessage() + func (x *AccessRuleWithoutId) GetAccessRight() AccessRights + func (x *AccessRuleWithoutId) GetApplicationId() string + func (x *AccessRuleWithoutId) GetUserId() string + func (x *AccessRuleWithoutId) ProtoReflect() protoreflect.Message + func (x *AccessRuleWithoutId) Reset() + func (x *AccessRuleWithoutId) String() string + type AccountCreds struct + Password string + Username string + func (*AccountCreds) Descriptor() ([]byte, []int) + func (*AccountCreds) ProtoMessage() + func (x *AccountCreds) GetPassword() string + func (x *AccountCreds) GetUsername() string + func (x *AccountCreds) ProtoReflect() protoreflect.Message + func (x *AccountCreds) Reset() + func (x *AccountCreds) String() string + type AccountId struct + Id string + func (*AccountId) Descriptor() ([]byte, []int) + func (*AccountId) ProtoMessage() + func (x *AccountId) GetId() string + func (x *AccountId) ProtoReflect() protoreflect.Message + func (x *AccountId) Reset() + func (x *AccountId) String() string + type AccountInfo struct + Id string + Username string + func (*AccountInfo) Descriptor() ([]byte, []int) + func (*AccountInfo) ProtoMessage() + func (x *AccountInfo) GetId() string + func (x *AccountInfo) GetUsername() string + func (x *AccountInfo) ProtoReflect() protoreflect.Message + func (x *AccountInfo) Reset() + func (x *AccountInfo) String() string + type AccountInfoWithSensitive struct + Id string + Password string + Username string + func (*AccountInfoWithSensitive) Descriptor() ([]byte, []int) + func (*AccountInfoWithSensitive) ProtoMessage() + func (x *AccountInfoWithSensitive) GetId() string + func (x *AccountInfoWithSensitive) GetPassword() string + func (x *AccountInfoWithSensitive) GetUsername() string + func (x *AccountInfoWithSensitive) ProtoReflect() protoreflect.Message + func (x *AccountInfoWithSensitive) Reset() + func (x *AccountInfoWithSensitive) String() string + type AccountName struct + Username string + func (*AccountName) Descriptor() ([]byte, []int) + func (*AccountName) ProtoMessage() + func (x *AccountName) GetUsername() string + func (x *AccountName) ProtoReflect() protoreflect.Message + func (x *AccountName) Reset() + func (x *AccountName) String() string + type AccountsClient interface + Create func(ctx context.Context, in *AccountCreds, opts ...grpc.CallOption) (*AccountInfo, error) + Get func(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*AccountInfo, error) + List func(ctx context.Context, in *AccountsListOptions, opts ...grpc.CallOption) (Accounts_ListClient, error) + SelfGet func(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*AccountInfo, error) + UpdatePassword func(ctx context.Context, in *PasswordUpdate, opts ...grpc.CallOption) (*emptypb.Empty, error) + UpdateUser func(ctx context.Context, in *AccountInfo, opts ...grpc.CallOption) (*AccountInfo, error) + func NewAccountsClient(cc grpc.ClientConnInterface) AccountsClient + type AccountsListOptions struct + AccountName *AccountName + func (*AccountsListOptions) Descriptor() ([]byte, []int) + func (*AccountsListOptions) ProtoMessage() + func (x *AccountsListOptions) GetAccountName() *AccountName + func (x *AccountsListOptions) ProtoReflect() protoreflect.Message + func (x *AccountsListOptions) Reset() + func (x *AccountsListOptions) String() string + type AccountsServer interface + Create func(context.Context, *AccountCreds) (*AccountInfo, error) + Get func(context.Context, *AccountId) (*AccountInfo, error) + List func(*AccountsListOptions, Accounts_ListServer) error + SelfGet func(context.Context, *AccountId) (*AccountInfo, error) + UpdatePassword func(context.Context, *PasswordUpdate) (*emptypb.Empty, error) + UpdateUser func(context.Context, *AccountInfo) (*AccountInfo, error) + type Accounts_ListClient interface + Recv func() (*AccountInfo, error) + type Accounts_ListServer interface + Send func(*AccountInfo) error + type AuthenticationClient interface + SignIn func(ctx context.Context, in *AccountCreds, opts ...grpc.CallOption) (*AccountId, error) + SignUp func(ctx context.Context, in *AccountCreds, opts ...grpc.CallOption) (*AccountId, error) + func NewAuthenticationClient(cc grpc.ClientConnInterface) AuthenticationClient + type AuthenticationServer interface + SignIn func(context.Context, *AccountCreds) (*AccountId, error) + SignUp func(context.Context, *AccountCreds) (*AccountId, error) + type AuthorizationClient interface + ParseIdFromToken func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AccountId, error) + RefreshToken func(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*emptypb.Empty, error) + ValidateToken func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) + func NewAuthorizationClient(cc grpc.ClientConnInterface) AuthorizationClient + type AuthorizationServer interface + ParseIdFromToken func(context.Context, *emptypb.Empty) (*AccountId, error) + RefreshToken func(context.Context, *AccountId) (*emptypb.Empty, error) + ValidateToken func(context.Context, *emptypb.Empty) (*emptypb.Empty, error) + type PasswordUpdate struct + Id string + NewPassword string + OldPassword string + Username string + func (*PasswordUpdate) Descriptor() ([]byte, []int) + func (*PasswordUpdate) ProtoMessage() + func (x *PasswordUpdate) GetId() string + func (x *PasswordUpdate) GetNewPassword() string + func (x *PasswordUpdate) GetOldPassword() string + func (x *PasswordUpdate) GetUsername() string + func (x *PasswordUpdate) ProtoReflect() protoreflect.Message + func (x *PasswordUpdate) Reset() + func (x *PasswordUpdate) String() string + type RightsClient interface + Create func(ctx context.Context, in *AccessRuleWithoutId, opts ...grpc.CallOption) (*AccessRuleInfo, error) + Delete func(ctx context.Context, in *AccessRuleId, opts ...grpc.CallOption) (*emptypb.Empty, error) + Get func(ctx context.Context, in *AccessRuleId, opts ...grpc.CallOption) (*AccessRuleInfo, error) + Init func(ctx context.Context, in *AccessRuleWithoutId, opts ...grpc.CallOption) (*AccessRuleInfo, error) + Update func(ctx context.Context, in *AccessRuleIdAndRight, opts ...grpc.CallOption) (*AccessRuleIdAndRight, error) + func NewRightsClient(cc grpc.ClientConnInterface) RightsClient + type RightsServer interface + Create func(context.Context, *AccessRuleWithoutId) (*AccessRuleInfo, error) + Delete func(context.Context, *AccessRuleId) (*emptypb.Empty, error) + Get func(context.Context, *AccessRuleId) (*AccessRuleInfo, error) + Init func(context.Context, *AccessRuleWithoutId) (*AccessRuleInfo, error) + Update func(context.Context, *AccessRuleIdAndRight) (*AccessRuleIdAndRight, error) + type UnimplementedAccountsServer struct + 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 struct + func (UnimplementedAuthenticationServer) SignIn(context.Context, *AccountCreds) (*AccountId, error) + func (UnimplementedAuthenticationServer) SignUp(context.Context, *AccountCreds) (*AccountId, error) + type UnimplementedAuthorizationServer struct + 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 struct + 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 interface + type UnsafeAuthenticationServer interface + type UnsafeAuthorizationServer interface + type UnsafeRightsServer interface