Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterPermissionServiceServer(s grpc.ServiceRegistrar, srv PermissionServiceServer)
- func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type CreatePermissionRequest
- func (*CreatePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePermissionRequest) GetData() *CreatePermissionRequest_Data
- func (*CreatePermissionRequest) ProtoMessage()
- func (x *CreatePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *CreatePermissionRequest) Reset()
- func (x *CreatePermissionRequest) String() string
- func (this *CreatePermissionRequest) Validate() error
- type CreatePermissionRequest_Data
- func (*CreatePermissionRequest_Data) Descriptor() ([]byte, []int)deprecated
- func (x *CreatePermissionRequest_Data) GetAttributes() *PermissionAttributes
- func (x *CreatePermissionRequest_Data) GetType() string
- func (*CreatePermissionRequest_Data) ProtoMessage()
- func (x *CreatePermissionRequest_Data) ProtoReflect() protoreflect.Message
- func (x *CreatePermissionRequest_Data) Reset()
- func (x *CreatePermissionRequest_Data) String() string
- func (this *CreatePermissionRequest_Data) Validate() error
- type CreateRoleRequest
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleRequest) GetData() *CreateRoleRequest_Data
- func (*CreateRoleRequest) ProtoMessage()
- func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRoleRequest) Reset()
- func (x *CreateRoleRequest) String() string
- func (this *CreateRoleRequest) Validate() error
- type CreateRoleRequest_Data
- func (*CreateRoleRequest_Data) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleRequest_Data) GetAttributes() *RoleAttributes
- func (x *CreateRoleRequest_Data) GetRelationships() *NewRoleRelationships
- func (x *CreateRoleRequest_Data) GetType() string
- func (*CreateRoleRequest_Data) ProtoMessage()
- func (x *CreateRoleRequest_Data) ProtoReflect() protoreflect.Message
- func (x *CreateRoleRequest_Data) Reset()
- func (x *CreateRoleRequest_Data) String() string
- func (this *CreateRoleRequest_Data) Validate() error
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetData() *CreateUserRequest_Data
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- func (this *CreateUserRequest) Validate() error
- type CreateUserRequest_Data
- func (*CreateUserRequest_Data) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest_Data) GetAttributes() *UserAttributes
- func (x *CreateUserRequest_Data) GetRelationships() *NewUserRelationships
- func (x *CreateUserRequest_Data) GetType() string
- func (*CreateUserRequest_Data) ProtoMessage()
- func (x *CreateUserRequest_Data) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest_Data) Reset()
- func (x *CreateUserRequest_Data) String() string
- func (this *CreateUserRequest_Data) Validate() error
- type ExistingRoleRelationships
- func (*ExistingRoleRelationships) Descriptor() ([]byte, []int)deprecated
- func (x *ExistingRoleRelationships) GetPermissions() *ExistingRoleRelationships_Permissions
- func (x *ExistingRoleRelationships) GetUsers() *ExistingRoleRelationships_Users
- func (*ExistingRoleRelationships) ProtoMessage()
- func (x *ExistingRoleRelationships) ProtoReflect() protoreflect.Message
- func (x *ExistingRoleRelationships) Reset()
- func (x *ExistingRoleRelationships) String() string
- func (this *ExistingRoleRelationships) Validate() error
- type ExistingRoleRelationships_Permissions
- func (*ExistingRoleRelationships_Permissions) Descriptor() ([]byte, []int)deprecated
- func (x *ExistingRoleRelationships_Permissions) GetData() []*jsonapi.Data
- func (x *ExistingRoleRelationships_Permissions) GetLinks() *jsonapi.Links
- func (*ExistingRoleRelationships_Permissions) ProtoMessage()
- func (x *ExistingRoleRelationships_Permissions) ProtoReflect() protoreflect.Message
- func (x *ExistingRoleRelationships_Permissions) Reset()
- func (x *ExistingRoleRelationships_Permissions) String() string
- func (this *ExistingRoleRelationships_Permissions) Validate() error
- type ExistingRoleRelationships_Users
- func (*ExistingRoleRelationships_Users) Descriptor() ([]byte, []int)deprecated
- func (x *ExistingRoleRelationships_Users) GetData() []*jsonapi.Data
- func (x *ExistingRoleRelationships_Users) GetLinks() *jsonapi.Links
- func (*ExistingRoleRelationships_Users) ProtoMessage()
- func (x *ExistingRoleRelationships_Users) ProtoReflect() protoreflect.Message
- func (x *ExistingRoleRelationships_Users) Reset()
- func (x *ExistingRoleRelationships_Users) String() string
- func (this *ExistingRoleRelationships_Users) Validate() error
- type ExistingUserRelationships
- func (*ExistingUserRelationships) Descriptor() ([]byte, []int)deprecated
- func (x *ExistingUserRelationships) GetRoles() *ExistingUserRelationships_Roles
- func (*ExistingUserRelationships) ProtoMessage()
- func (x *ExistingUserRelationships) ProtoReflect() protoreflect.Message
- func (x *ExistingUserRelationships) Reset()
- func (x *ExistingUserRelationships) String() string
- func (this *ExistingUserRelationships) Validate() error
- type ExistingUserRelationships_Roles
- func (*ExistingUserRelationships_Roles) Descriptor() ([]byte, []int)deprecated
- func (x *ExistingUserRelationships_Roles) GetData() []*jsonapi.Data
- func (x *ExistingUserRelationships_Roles) GetLinks() *jsonapi.Links
- func (*ExistingUserRelationships_Roles) ProtoMessage()
- func (x *ExistingUserRelationships_Roles) ProtoReflect() protoreflect.Message
- func (x *ExistingUserRelationships_Roles) Reset()
- func (x *ExistingUserRelationships_Roles) String() string
- func (this *ExistingUserRelationships_Roles) Validate() error
- type NewRoleRelationships
- func (*NewRoleRelationships) Descriptor() ([]byte, []int)deprecated
- func (x *NewRoleRelationships) GetPermissions() *NewRoleRelationships_Permissions
- func (x *NewRoleRelationships) GetUsers() *NewRoleRelationships_Users
- func (*NewRoleRelationships) ProtoMessage()
- func (x *NewRoleRelationships) ProtoReflect() protoreflect.Message
- func (x *NewRoleRelationships) Reset()
- func (x *NewRoleRelationships) String() string
- func (this *NewRoleRelationships) Validate() error
- type NewRoleRelationships_Permissions
- func (*NewRoleRelationships_Permissions) Descriptor() ([]byte, []int)deprecated
- func (x *NewRoleRelationships_Permissions) GetData() []*jsonapi.Data
- func (*NewRoleRelationships_Permissions) ProtoMessage()
- func (x *NewRoleRelationships_Permissions) ProtoReflect() protoreflect.Message
- func (x *NewRoleRelationships_Permissions) Reset()
- func (x *NewRoleRelationships_Permissions) String() string
- func (this *NewRoleRelationships_Permissions) Validate() error
- type NewRoleRelationships_Users
- func (*NewRoleRelationships_Users) Descriptor() ([]byte, []int)deprecated
- func (x *NewRoleRelationships_Users) GetData() []*jsonapi.Data
- func (*NewRoleRelationships_Users) ProtoMessage()
- func (x *NewRoleRelationships_Users) ProtoReflect() protoreflect.Message
- func (x *NewRoleRelationships_Users) Reset()
- func (x *NewRoleRelationships_Users) String() string
- func (this *NewRoleRelationships_Users) Validate() error
- type NewUserRelationships
- func (*NewUserRelationships) Descriptor() ([]byte, []int)deprecated
- func (x *NewUserRelationships) GetRoles() *NewUserRelationships_Roles
- func (*NewUserRelationships) ProtoMessage()
- func (x *NewUserRelationships) ProtoReflect() protoreflect.Message
- func (x *NewUserRelationships) Reset()
- func (x *NewUserRelationships) String() string
- func (this *NewUserRelationships) Validate() error
- type NewUserRelationships_Roles
- func (*NewUserRelationships_Roles) Descriptor() ([]byte, []int)deprecated
- func (x *NewUserRelationships_Roles) GetData() []*jsonapi.Data
- func (*NewUserRelationships_Roles) ProtoMessage()
- func (x *NewUserRelationships_Roles) ProtoReflect() protoreflect.Message
- func (x *NewUserRelationships_Roles) Reset()
- func (x *NewUserRelationships_Roles) String() string
- func (this *NewUserRelationships_Roles) Validate() error
- type Permission
- func (*Permission) Descriptor() ([]byte, []int)deprecated
- func (x *Permission) GetData() *PermissionData
- func (x *Permission) GetLinks() *jsonapi.Links
- func (*Permission) ProtoMessage()
- func (x *Permission) ProtoReflect() protoreflect.Message
- func (x *Permission) Reset()
- func (x *Permission) String() string
- func (this *Permission) Validate() error
- type PermissionAttributes
- func (*PermissionAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionAttributes) GetCreatedAt() *timestamppb.Timestamp
- func (x *PermissionAttributes) GetDescription() string
- func (x *PermissionAttributes) GetPermission() string
- func (x *PermissionAttributes) GetResource() string
- func (x *PermissionAttributes) GetUpdatedAt() *timestamppb.Timestamp
- func (*PermissionAttributes) ProtoMessage()
- func (x *PermissionAttributes) ProtoReflect() protoreflect.Message
- func (x *PermissionAttributes) Reset()
- func (x *PermissionAttributes) String() string
- func (this *PermissionAttributes) Validate() error
- type PermissionCollection
- func (*PermissionCollection) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionCollection) GetData() []*PermissionData
- func (x *PermissionCollection) GetLinks() *jsonapi.Links
- func (*PermissionCollection) ProtoMessage()
- func (x *PermissionCollection) ProtoReflect() protoreflect.Message
- func (x *PermissionCollection) Reset()
- func (x *PermissionCollection) String() string
- func (this *PermissionCollection) Validate() error
- type PermissionData
- func (*PermissionData) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionData) GetAttributes() *PermissionAttributes
- func (x *PermissionData) GetId() int64
- func (x *PermissionData) GetLinks() *jsonapi.Links
- func (x *PermissionData) GetType() string
- func (*PermissionData) ProtoMessage()
- func (x *PermissionData) ProtoReflect() protoreflect.Message
- func (x *PermissionData) Reset()
- func (x *PermissionData) String() string
- func (this *PermissionData) Validate() error
- type PermissionServiceClient
- type PermissionServiceServer
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetData() *RoleData
- func (x *Role) GetIncluded() []*anypb.Any
- func (x *Role) GetLinks() *jsonapi.Links
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- func (this *Role) Validate() error
- type RoleAttributes
- func (*RoleAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *RoleAttributes) GetCreatedAt() *timestamppb.Timestamp
- func (x *RoleAttributes) GetDescription() string
- func (x *RoleAttributes) GetRole() string
- func (x *RoleAttributes) GetUpdatedAt() *timestamppb.Timestamp
- func (*RoleAttributes) ProtoMessage()
- func (x *RoleAttributes) ProtoReflect() protoreflect.Message
- func (x *RoleAttributes) Reset()
- func (x *RoleAttributes) String() string
- func (this *RoleAttributes) Validate() error
- type RoleCollection
- func (*RoleCollection) Descriptor() ([]byte, []int)deprecated
- func (x *RoleCollection) GetData() []*RoleData
- func (x *RoleCollection) GetIncluded() []*anypb.Any
- func (x *RoleCollection) GetLinks() *jsonapi.Links
- func (*RoleCollection) ProtoMessage()
- func (x *RoleCollection) ProtoReflect() protoreflect.Message
- func (x *RoleCollection) Reset()
- func (x *RoleCollection) String() string
- func (this *RoleCollection) Validate() error
- type RoleData
- func (*RoleData) Descriptor() ([]byte, []int)deprecated
- func (x *RoleData) GetAttributes() *RoleAttributes
- func (x *RoleData) GetId() int64
- func (x *RoleData) GetLinks() *jsonapi.Links
- func (x *RoleData) GetRelationships() *ExistingRoleRelationships
- func (x *RoleData) GetType() string
- func (*RoleData) ProtoMessage()
- func (x *RoleData) ProtoReflect() protoreflect.Message
- func (x *RoleData) Reset()
- func (x *RoleData) String() string
- func (this *RoleData) Validate() error
- type RoleServiceClient
- type RoleServiceServer
- type UnimplementedPermissionServiceServer
- func (UnimplementedPermissionServiceServer) CreatePermission(context.Context, *CreatePermissionRequest) (*Permission, error)
- func (UnimplementedPermissionServiceServer) DeletePermission(context.Context, *jsonapi.DeleteRequest) (*emptypb.Empty, error)
- func (UnimplementedPermissionServiceServer) GetPermission(context.Context, *jsonapi.GetRequestWithFields) (*Permission, error)
- func (UnimplementedPermissionServiceServer) ListPermissions(context.Context, *jsonapi.SimpleListRequest) (*PermissionCollection, error)
- func (UnimplementedPermissionServiceServer) UpdatePermission(context.Context, *UpdatePermissionRequest) (*Permission, error)
- type UnimplementedRoleServiceServer
- func (UnimplementedRoleServiceServer) CreatePermissionRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
- func (UnimplementedRoleServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*Role, error)
- func (UnimplementedRoleServiceServer) CreateUserRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
- func (UnimplementedRoleServiceServer) DeletePermissionRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
- func (UnimplementedRoleServiceServer) DeleteRole(context.Context, *jsonapi.DeleteRequest) (*emptypb.Empty, error)
- func (UnimplementedRoleServiceServer) DeleteUserRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
- func (UnimplementedRoleServiceServer) GetRelatedPermissions(context.Context, *jsonapi.RelationshipRequest) (*PermissionCollection, error)
- func (UnimplementedRoleServiceServer) GetRelatedUsers(context.Context, *jsonapi.RelationshipRequestWithPagination) (*UserCollection, error)
- func (UnimplementedRoleServiceServer) GetRole(context.Context, *jsonapi.GetRequest) (*Role, error)
- func (UnimplementedRoleServiceServer) ListRoles(context.Context, *jsonapi.SimpleListRequest) (*RoleCollection, error)
- func (UnimplementedRoleServiceServer) UpdatePermissionRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
- func (UnimplementedRoleServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*Role, error)
- func (UnimplementedRoleServiceServer) UpdateUserRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateRoleRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*User, error)
- func (UnimplementedUserServiceServer) DeleteRoleRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *jsonapi.DeleteRequest) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) ExistUser(context.Context, *jsonapi.IdRequest) (*jsonapi.ExistResponse, error)
- func (UnimplementedUserServiceServer) GetRelatedRoles(context.Context, *jsonapi.RelationshipRequest) (*RoleCollection, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *jsonapi.GetRequest) (*User, error)
- func (UnimplementedUserServiceServer) GetUserByEmail(context.Context, *jsonapi.GetEmailRequest) (*User, error)
- func (UnimplementedUserServiceServer) Healthz(context.Context, *jsonapi.HealthzIdRequest) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) ListUsers(context.Context, *jsonapi.ListRequest) (*UserCollection, error)
- func (UnimplementedUserServiceServer) UpdateRoleRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
- type UnsafePermissionServiceServer
- type UnsafeRoleServiceServer
- type UnsafeUserServiceServer
- type UpdatePermissionRequest
- func (*UpdatePermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePermissionRequest) GetData() *UpdatePermissionRequest_Data
- func (x *UpdatePermissionRequest) GetId() int64
- func (x *UpdatePermissionRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdatePermissionRequest) ProtoMessage()
- func (x *UpdatePermissionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePermissionRequest) Reset()
- func (x *UpdatePermissionRequest) String() string
- func (this *UpdatePermissionRequest) Validate() error
- type UpdatePermissionRequest_Data
- func (*UpdatePermissionRequest_Data) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePermissionRequest_Data) GetAttributes() *PermissionAttributes
- func (x *UpdatePermissionRequest_Data) GetId() int64
- func (x *UpdatePermissionRequest_Data) GetType() string
- func (*UpdatePermissionRequest_Data) ProtoMessage()
- func (x *UpdatePermissionRequest_Data) ProtoReflect() protoreflect.Message
- func (x *UpdatePermissionRequest_Data) Reset()
- func (x *UpdatePermissionRequest_Data) String() string
- func (this *UpdatePermissionRequest_Data) Validate() error
- type UpdateRoleRequest
- func (*UpdateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleRequest) GetData() *UpdateRoleRequest_Data
- func (x *UpdateRoleRequest) GetId() int64
- func (x *UpdateRoleRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateRoleRequest) ProtoMessage()
- func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleRequest) Reset()
- func (x *UpdateRoleRequest) String() string
- func (this *UpdateRoleRequest) Validate() error
- type UpdateRoleRequest_Data
- func (*UpdateRoleRequest_Data) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleRequest_Data) GetAttributes() *RoleAttributes
- func (x *UpdateRoleRequest_Data) GetId() int64
- func (x *UpdateRoleRequest_Data) GetRelationships() *ExistingRoleRelationships
- func (x *UpdateRoleRequest_Data) GetType() string
- func (*UpdateRoleRequest_Data) ProtoMessage()
- func (x *UpdateRoleRequest_Data) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleRequest_Data) Reset()
- func (x *UpdateRoleRequest_Data) String() string
- func (this *UpdateRoleRequest_Data) Validate() error
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetData() *UpdateUserRequest_Data
- func (x *UpdateUserRequest) GetId() int64
- func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- func (this *UpdateUserRequest) Validate() error
- type UpdateUserRequest_Data
- func (*UpdateUserRequest_Data) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest_Data) GetAttributes() *UserAttributes
- func (x *UpdateUserRequest_Data) GetId() int64
- func (x *UpdateUserRequest_Data) GetRelationships() *ExistingUserRelationships
- func (x *UpdateUserRequest_Data) GetType() string
- func (*UpdateUserRequest_Data) ProtoMessage()
- func (x *UpdateUserRequest_Data) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest_Data) Reset()
- func (x *UpdateUserRequest_Data) String() string
- func (this *UpdateUserRequest_Data) Validate() error
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetData() *UserData
- func (x *User) GetIncluded() []*anypb.Any
- func (x *User) GetLinks() *jsonapi.Links
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (this *User) Validate() error
- type UserAttributes
- func (*UserAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *UserAttributes) GetCity() string
- func (x *UserAttributes) GetCountry() string
- func (x *UserAttributes) GetCreatedAt() *timestamppb.Timestamp
- func (x *UserAttributes) GetEmail() string
- func (x *UserAttributes) GetFirstAddress() string
- func (x *UserAttributes) GetFirstName() string
- func (x *UserAttributes) GetGroupName() string
- func (x *UserAttributes) GetIsActive() bool
- func (x *UserAttributes) GetLastName() string
- func (x *UserAttributes) GetOrganization() string
- func (x *UserAttributes) GetPhone() string
- func (x *UserAttributes) GetSecondAddress() string
- func (x *UserAttributes) GetState() string
- func (x *UserAttributes) GetUpdatedAt() *timestamppb.Timestamp
- func (x *UserAttributes) GetZipcode() string
- func (*UserAttributes) ProtoMessage()
- func (x *UserAttributes) ProtoReflect() protoreflect.Message
- func (x *UserAttributes) Reset()
- func (x *UserAttributes) String() string
- func (this *UserAttributes) Validate() error
- type UserCollection
- func (*UserCollection) Descriptor() ([]byte, []int)deprecated
- func (x *UserCollection) GetData() []*UserData
- func (x *UserCollection) GetIncluded() []*anypb.Any
- func (x *UserCollection) GetLinks() *jsonapi.PaginationLinks
- func (x *UserCollection) GetMeta() *jsonapi.Meta
- func (*UserCollection) ProtoMessage()
- func (x *UserCollection) ProtoReflect() protoreflect.Message
- func (x *UserCollection) Reset()
- func (x *UserCollection) String() string
- func (this *UserCollection) Validate() error
- type UserData
- func (*UserData) Descriptor() ([]byte, []int)deprecated
- func (x *UserData) GetAttributes() *UserAttributes
- func (x *UserData) GetId() int64
- func (x *UserData) GetLinks() *jsonapi.Links
- func (x *UserData) GetRelationships() *ExistingUserRelationships
- func (x *UserData) GetType() string
- func (*UserData) ProtoMessage()
- func (x *UserData) ProtoReflect() protoreflect.Message
- func (x *UserData) Reset()
- func (x *UserData) String() string
- func (this *UserData) Validate() error
- type UserServiceClient
- type UserServiceServer
Constants ¶
const ( UserService_ExistUser_FullMethodName = "/dictybase.user.UserService/ExistUser" UserService_GetUser_FullMethodName = "/dictybase.user.UserService/GetUser" UserService_GetUserByEmail_FullMethodName = "/dictybase.user.UserService/GetUserByEmail" UserService_GetRelatedRoles_FullMethodName = "/dictybase.user.UserService/GetRelatedRoles" UserService_ListUsers_FullMethodName = "/dictybase.user.UserService/ListUsers" UserService_CreateUser_FullMethodName = "/dictybase.user.UserService/CreateUser" UserService_CreateRoleRelationship_FullMethodName = "/dictybase.user.UserService/CreateRoleRelationship" UserService_UpdateUser_FullMethodName = "/dictybase.user.UserService/UpdateUser" UserService_UpdateRoleRelationship_FullMethodName = "/dictybase.user.UserService/UpdateRoleRelationship" UserService_DeleteUser_FullMethodName = "/dictybase.user.UserService/DeleteUser" UserService_DeleteRoleRelationship_FullMethodName = "/dictybase.user.UserService/DeleteRoleRelationship" UserService_Healthz_FullMethodName = "/dictybase.user.UserService/Healthz" )
const ( RoleService_GetRole_FullMethodName = "/dictybase.user.RoleService/GetRole" RoleService_GetRelatedUsers_FullMethodName = "/dictybase.user.RoleService/GetRelatedUsers" RoleService_GetRelatedPermissions_FullMethodName = "/dictybase.user.RoleService/GetRelatedPermissions" RoleService_ListRoles_FullMethodName = "/dictybase.user.RoleService/ListRoles" RoleService_CreateRole_FullMethodName = "/dictybase.user.RoleService/CreateRole" RoleService_CreateUserRelationship_FullMethodName = "/dictybase.user.RoleService/CreateUserRelationship" RoleService_CreatePermissionRelationship_FullMethodName = "/dictybase.user.RoleService/CreatePermissionRelationship" RoleService_UpdateRole_FullMethodName = "/dictybase.user.RoleService/UpdateRole" RoleService_UpdateUserRelationship_FullMethodName = "/dictybase.user.RoleService/UpdateUserRelationship" RoleService_UpdatePermissionRelationship_FullMethodName = "/dictybase.user.RoleService/UpdatePermissionRelationship" RoleService_DeleteRole_FullMethodName = "/dictybase.user.RoleService/DeleteRole" RoleService_DeleteUserRelationship_FullMethodName = "/dictybase.user.RoleService/DeleteUserRelationship" RoleService_DeletePermissionRelationship_FullMethodName = "/dictybase.user.RoleService/DeletePermissionRelationship" )
const ( PermissionService_GetPermission_FullMethodName = "/dictybase.user.PermissionService/GetPermission" PermissionService_ListPermissions_FullMethodName = "/dictybase.user.PermissionService/ListPermissions" PermissionService_CreatePermission_FullMethodName = "/dictybase.user.PermissionService/CreatePermission" PermissionService_UpdatePermission_FullMethodName = "/dictybase.user.PermissionService/UpdatePermission" PermissionService_DeletePermission_FullMethodName = "/dictybase.user.PermissionService/DeletePermission" )
Variables ¶
var File_dictybase_user_user_proto protoreflect.FileDescriptor
var PermissionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dictybase.user.PermissionService", HandlerType: (*PermissionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPermission", Handler: _PermissionService_GetPermission_Handler, }, { MethodName: "ListPermissions", Handler: _PermissionService_ListPermissions_Handler, }, { MethodName: "CreatePermission", Handler: _PermissionService_CreatePermission_Handler, }, { MethodName: "UpdatePermission", Handler: _PermissionService_UpdatePermission_Handler, }, { MethodName: "DeletePermission", Handler: _PermissionService_DeletePermission_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "dictybase/user/user.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)
var RoleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dictybase.user.RoleService", HandlerType: (*RoleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetRole", Handler: _RoleService_GetRole_Handler, }, { MethodName: "GetRelatedUsers", Handler: _RoleService_GetRelatedUsers_Handler, }, { MethodName: "GetRelatedPermissions", Handler: _RoleService_GetRelatedPermissions_Handler, }, { MethodName: "ListRoles", Handler: _RoleService_ListRoles_Handler, }, { MethodName: "CreateRole", Handler: _RoleService_CreateRole_Handler, }, { MethodName: "CreateUserRelationship", Handler: _RoleService_CreateUserRelationship_Handler, }, { MethodName: "CreatePermissionRelationship", Handler: _RoleService_CreatePermissionRelationship_Handler, }, { MethodName: "UpdateRole", Handler: _RoleService_UpdateRole_Handler, }, { MethodName: "UpdateUserRelationship", Handler: _RoleService_UpdateUserRelationship_Handler, }, { MethodName: "UpdatePermissionRelationship", Handler: _RoleService_UpdatePermissionRelationship_Handler, }, { MethodName: "DeleteRole", Handler: _RoleService_DeleteRole_Handler, }, { MethodName: "DeleteUserRelationship", Handler: _RoleService_DeleteUserRelationship_Handler, }, { MethodName: "DeletePermissionRelationship", Handler: _RoleService_DeletePermissionRelationship_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "dictybase/user/user.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)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dictybase.user.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ExistUser", Handler: _UserService_ExistUser_Handler, }, { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "GetUserByEmail", Handler: _UserService_GetUserByEmail_Handler, }, { MethodName: "GetRelatedRoles", Handler: _UserService_GetRelatedRoles_Handler, }, { MethodName: "ListUsers", Handler: _UserService_ListUsers_Handler, }, { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "CreateRoleRelationship", Handler: _UserService_CreateRoleRelationship_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "UpdateRoleRelationship", Handler: _UserService_UpdateRoleRelationship_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, { MethodName: "DeleteRoleRelationship", Handler: _UserService_DeleteRoleRelationship_Handler, }, { MethodName: "Healthz", Handler: _UserService_Healthz_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "dictybase/user/user.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 RegisterPermissionServiceServer ¶
func RegisterPermissionServiceServer(s grpc.ServiceRegistrar, srv PermissionServiceServer)
func RegisterRoleServiceServer ¶
func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type CreatePermissionRequest ¶
type CreatePermissionRequest struct { Data *CreatePermissionRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CreatePermissionRequest) Descriptor
deprecated
func (*CreatePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreatePermissionRequest.ProtoReflect.Descriptor instead.
func (*CreatePermissionRequest) GetData ¶
func (x *CreatePermissionRequest) GetData() *CreatePermissionRequest_Data
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
func (*CreatePermissionRequest) Validate ¶
func (this *CreatePermissionRequest) Validate() error
type CreatePermissionRequest_Data ¶
type CreatePermissionRequest_Data struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Attributes *PermissionAttributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
The payload for new user
func (*CreatePermissionRequest_Data) Descriptor
deprecated
func (*CreatePermissionRequest_Data) Descriptor() ([]byte, []int)
Deprecated: Use CreatePermissionRequest_Data.ProtoReflect.Descriptor instead.
func (*CreatePermissionRequest_Data) GetAttributes ¶
func (x *CreatePermissionRequest_Data) GetAttributes() *PermissionAttributes
func (*CreatePermissionRequest_Data) GetType ¶
func (x *CreatePermissionRequest_Data) GetType() string
func (*CreatePermissionRequest_Data) ProtoMessage ¶
func (*CreatePermissionRequest_Data) ProtoMessage()
func (*CreatePermissionRequest_Data) ProtoReflect ¶
func (x *CreatePermissionRequest_Data) ProtoReflect() protoreflect.Message
func (*CreatePermissionRequest_Data) Reset ¶
func (x *CreatePermissionRequest_Data) Reset()
func (*CreatePermissionRequest_Data) String ¶
func (x *CreatePermissionRequest_Data) String() string
func (*CreatePermissionRequest_Data) Validate ¶
func (this *CreatePermissionRequest_Data) Validate() error
type CreateRoleRequest ¶
type CreateRoleRequest struct { Data *CreateRoleRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) GetData ¶
func (x *CreateRoleRequest) GetData() *CreateRoleRequest_Data
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
func (*CreateRoleRequest) Validate ¶
func (this *CreateRoleRequest) Validate() error
type CreateRoleRequest_Data ¶
type CreateRoleRequest_Data struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Attributes *RoleAttributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"` Relationships *NewRoleRelationships `protobuf:"bytes,3,opt,name=relationships,proto3" json:"relationships,omitempty"` // contains filtered or unexported fields }
The payload for new role
func (*CreateRoleRequest_Data) Descriptor
deprecated
func (*CreateRoleRequest_Data) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest_Data.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest_Data) GetAttributes ¶
func (x *CreateRoleRequest_Data) GetAttributes() *RoleAttributes
func (*CreateRoleRequest_Data) GetRelationships ¶
func (x *CreateRoleRequest_Data) GetRelationships() *NewRoleRelationships
func (*CreateRoleRequest_Data) GetType ¶
func (x *CreateRoleRequest_Data) GetType() string
func (*CreateRoleRequest_Data) ProtoMessage ¶
func (*CreateRoleRequest_Data) ProtoMessage()
func (*CreateRoleRequest_Data) ProtoReflect ¶
func (x *CreateRoleRequest_Data) ProtoReflect() protoreflect.Message
func (*CreateRoleRequest_Data) Reset ¶
func (x *CreateRoleRequest_Data) Reset()
func (*CreateRoleRequest_Data) String ¶
func (x *CreateRoleRequest_Data) String() string
func (*CreateRoleRequest_Data) Validate ¶
func (this *CreateRoleRequest_Data) Validate() error
type CreateUserRequest ¶
type CreateUserRequest struct { Data *CreateUserRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetData ¶
func (x *CreateUserRequest) GetData() *CreateUserRequest_Data
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
func (*CreateUserRequest) Validate ¶
func (this *CreateUserRequest) Validate() error
type CreateUserRequest_Data ¶
type CreateUserRequest_Data struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Attributes *UserAttributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"` Relationships *NewUserRelationships `protobuf:"bytes,3,opt,name=relationships,proto3" json:"relationships,omitempty"` // contains filtered or unexported fields }
The payload for new user
func (*CreateUserRequest_Data) Descriptor
deprecated
func (*CreateUserRequest_Data) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest_Data.ProtoReflect.Descriptor instead.
func (*CreateUserRequest_Data) GetAttributes ¶
func (x *CreateUserRequest_Data) GetAttributes() *UserAttributes
func (*CreateUserRequest_Data) GetRelationships ¶
func (x *CreateUserRequest_Data) GetRelationships() *NewUserRelationships
func (*CreateUserRequest_Data) GetType ¶
func (x *CreateUserRequest_Data) GetType() string
func (*CreateUserRequest_Data) ProtoMessage ¶
func (*CreateUserRequest_Data) ProtoMessage()
func (*CreateUserRequest_Data) ProtoReflect ¶
func (x *CreateUserRequest_Data) ProtoReflect() protoreflect.Message
func (*CreateUserRequest_Data) Reset ¶
func (x *CreateUserRequest_Data) Reset()
func (*CreateUserRequest_Data) String ¶
func (x *CreateUserRequest_Data) String() string
func (*CreateUserRequest_Data) Validate ¶
func (this *CreateUserRequest_Data) Validate() error
type ExistingRoleRelationships ¶
type ExistingRoleRelationships struct { Permissions *ExistingRoleRelationships_Permissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"` Users *ExistingRoleRelationships_Users `protobuf:"bytes,2,opt,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
The relationship definition for existing roles.
func (*ExistingRoleRelationships) Descriptor
deprecated
func (*ExistingRoleRelationships) Descriptor() ([]byte, []int)
Deprecated: Use ExistingRoleRelationships.ProtoReflect.Descriptor instead.
func (*ExistingRoleRelationships) GetPermissions ¶
func (x *ExistingRoleRelationships) GetPermissions() *ExistingRoleRelationships_Permissions
func (*ExistingRoleRelationships) GetUsers ¶
func (x *ExistingRoleRelationships) GetUsers() *ExistingRoleRelationships_Users
func (*ExistingRoleRelationships) ProtoMessage ¶
func (*ExistingRoleRelationships) ProtoMessage()
func (*ExistingRoleRelationships) ProtoReflect ¶
func (x *ExistingRoleRelationships) ProtoReflect() protoreflect.Message
func (*ExistingRoleRelationships) Reset ¶
func (x *ExistingRoleRelationships) Reset()
func (*ExistingRoleRelationships) String ¶
func (x *ExistingRoleRelationships) String() string
func (*ExistingRoleRelationships) Validate ¶
func (this *ExistingRoleRelationships) Validate() error
type ExistingRoleRelationships_Permissions ¶
type ExistingRoleRelationships_Permissions struct { Links *jsonapi.Links `protobuf:"bytes,1,opt,name=links,proto3" json:"links,omitempty"` Data []*jsonapi.Data `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Relationships with permission definition.
func (*ExistingRoleRelationships_Permissions) Descriptor
deprecated
func (*ExistingRoleRelationships_Permissions) Descriptor() ([]byte, []int)
Deprecated: Use ExistingRoleRelationships_Permissions.ProtoReflect.Descriptor instead.
func (*ExistingRoleRelationships_Permissions) GetData ¶
func (x *ExistingRoleRelationships_Permissions) GetData() []*jsonapi.Data
func (*ExistingRoleRelationships_Permissions) GetLinks ¶
func (x *ExistingRoleRelationships_Permissions) GetLinks() *jsonapi.Links
func (*ExistingRoleRelationships_Permissions) ProtoMessage ¶
func (*ExistingRoleRelationships_Permissions) ProtoMessage()
func (*ExistingRoleRelationships_Permissions) ProtoReflect ¶
func (x *ExistingRoleRelationships_Permissions) ProtoReflect() protoreflect.Message
func (*ExistingRoleRelationships_Permissions) Reset ¶
func (x *ExistingRoleRelationships_Permissions) Reset()
func (*ExistingRoleRelationships_Permissions) String ¶
func (x *ExistingRoleRelationships_Permissions) String() string
func (*ExistingRoleRelationships_Permissions) Validate ¶
func (this *ExistingRoleRelationships_Permissions) Validate() error
type ExistingRoleRelationships_Users ¶
type ExistingRoleRelationships_Users struct { Links *jsonapi.Links `protobuf:"bytes,1,opt,name=links,proto3" json:"links,omitempty"` Data []*jsonapi.Data `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Relationships with user definition.
func (*ExistingRoleRelationships_Users) Descriptor
deprecated
func (*ExistingRoleRelationships_Users) Descriptor() ([]byte, []int)
Deprecated: Use ExistingRoleRelationships_Users.ProtoReflect.Descriptor instead.
func (*ExistingRoleRelationships_Users) GetData ¶
func (x *ExistingRoleRelationships_Users) GetData() []*jsonapi.Data
func (*ExistingRoleRelationships_Users) GetLinks ¶
func (x *ExistingRoleRelationships_Users) GetLinks() *jsonapi.Links
func (*ExistingRoleRelationships_Users) ProtoMessage ¶
func (*ExistingRoleRelationships_Users) ProtoMessage()
func (*ExistingRoleRelationships_Users) ProtoReflect ¶
func (x *ExistingRoleRelationships_Users) ProtoReflect() protoreflect.Message
func (*ExistingRoleRelationships_Users) Reset ¶
func (x *ExistingRoleRelationships_Users) Reset()
func (*ExistingRoleRelationships_Users) String ¶
func (x *ExistingRoleRelationships_Users) String() string
func (*ExistingRoleRelationships_Users) Validate ¶
func (this *ExistingRoleRelationships_Users) Validate() error
type ExistingUserRelationships ¶
type ExistingUserRelationships struct { Roles *ExistingUserRelationships_Roles `protobuf:"bytes,1,opt,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
The relationship definition for existing users.
func (*ExistingUserRelationships) Descriptor
deprecated
func (*ExistingUserRelationships) Descriptor() ([]byte, []int)
Deprecated: Use ExistingUserRelationships.ProtoReflect.Descriptor instead.
func (*ExistingUserRelationships) GetRoles ¶
func (x *ExistingUserRelationships) GetRoles() *ExistingUserRelationships_Roles
func (*ExistingUserRelationships) ProtoMessage ¶
func (*ExistingUserRelationships) ProtoMessage()
func (*ExistingUserRelationships) ProtoReflect ¶
func (x *ExistingUserRelationships) ProtoReflect() protoreflect.Message
func (*ExistingUserRelationships) Reset ¶
func (x *ExistingUserRelationships) Reset()
func (*ExistingUserRelationships) String ¶
func (x *ExistingUserRelationships) String() string
func (*ExistingUserRelationships) Validate ¶
func (this *ExistingUserRelationships) Validate() error
type ExistingUserRelationships_Roles ¶
type ExistingUserRelationships_Roles struct { // Http links with role resource. Links *jsonapi.Links `protobuf:"bytes,1,opt,name=links,proto3" json:"links,omitempty"` // A role [resource identifier object](http://jsonapi.org/format/#document-resource-identifier-objects). Data []*jsonapi.Data `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Relationships with role resource.
func (*ExistingUserRelationships_Roles) Descriptor
deprecated
func (*ExistingUserRelationships_Roles) Descriptor() ([]byte, []int)
Deprecated: Use ExistingUserRelationships_Roles.ProtoReflect.Descriptor instead.
func (*ExistingUserRelationships_Roles) GetData ¶
func (x *ExistingUserRelationships_Roles) GetData() []*jsonapi.Data
func (*ExistingUserRelationships_Roles) GetLinks ¶
func (x *ExistingUserRelationships_Roles) GetLinks() *jsonapi.Links
func (*ExistingUserRelationships_Roles) ProtoMessage ¶
func (*ExistingUserRelationships_Roles) ProtoMessage()
func (*ExistingUserRelationships_Roles) ProtoReflect ¶
func (x *ExistingUserRelationships_Roles) ProtoReflect() protoreflect.Message
func (*ExistingUserRelationships_Roles) Reset ¶
func (x *ExistingUserRelationships_Roles) Reset()
func (*ExistingUserRelationships_Roles) String ¶
func (x *ExistingUserRelationships_Roles) String() string
func (*ExistingUserRelationships_Roles) Validate ¶
func (this *ExistingUserRelationships_Roles) Validate() error
type NewRoleRelationships ¶
type NewRoleRelationships struct { Permissions *NewRoleRelationships_Permissions `protobuf:"bytes,1,opt,name=permissions,proto3" json:"permissions,omitempty"` Users *NewRoleRelationships_Users `protobuf:"bytes,2,opt,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
The relationship definition for creating new roles.
func (*NewRoleRelationships) Descriptor
deprecated
func (*NewRoleRelationships) Descriptor() ([]byte, []int)
Deprecated: Use NewRoleRelationships.ProtoReflect.Descriptor instead.
func (*NewRoleRelationships) GetPermissions ¶
func (x *NewRoleRelationships) GetPermissions() *NewRoleRelationships_Permissions
func (*NewRoleRelationships) GetUsers ¶
func (x *NewRoleRelationships) GetUsers() *NewRoleRelationships_Users
func (*NewRoleRelationships) ProtoMessage ¶
func (*NewRoleRelationships) ProtoMessage()
func (*NewRoleRelationships) ProtoReflect ¶
func (x *NewRoleRelationships) ProtoReflect() protoreflect.Message
func (*NewRoleRelationships) Reset ¶
func (x *NewRoleRelationships) Reset()
func (*NewRoleRelationships) String ¶
func (x *NewRoleRelationships) String() string
func (*NewRoleRelationships) Validate ¶
func (this *NewRoleRelationships) Validate() error
type NewRoleRelationships_Permissions ¶
type NewRoleRelationships_Permissions struct { Data []*jsonapi.Data `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*NewRoleRelationships_Permissions) Descriptor
deprecated
func (*NewRoleRelationships_Permissions) Descriptor() ([]byte, []int)
Deprecated: Use NewRoleRelationships_Permissions.ProtoReflect.Descriptor instead.
func (*NewRoleRelationships_Permissions) GetData ¶
func (x *NewRoleRelationships_Permissions) GetData() []*jsonapi.Data
func (*NewRoleRelationships_Permissions) ProtoMessage ¶
func (*NewRoleRelationships_Permissions) ProtoMessage()
func (*NewRoleRelationships_Permissions) ProtoReflect ¶
func (x *NewRoleRelationships_Permissions) ProtoReflect() protoreflect.Message
func (*NewRoleRelationships_Permissions) Reset ¶
func (x *NewRoleRelationships_Permissions) Reset()
func (*NewRoleRelationships_Permissions) String ¶
func (x *NewRoleRelationships_Permissions) String() string
func (*NewRoleRelationships_Permissions) Validate ¶
func (this *NewRoleRelationships_Permissions) Validate() error
type NewRoleRelationships_Users ¶
type NewRoleRelationships_Users struct { Data []*jsonapi.Data `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*NewRoleRelationships_Users) Descriptor
deprecated
func (*NewRoleRelationships_Users) Descriptor() ([]byte, []int)
Deprecated: Use NewRoleRelationships_Users.ProtoReflect.Descriptor instead.
func (*NewRoleRelationships_Users) GetData ¶
func (x *NewRoleRelationships_Users) GetData() []*jsonapi.Data
func (*NewRoleRelationships_Users) ProtoMessage ¶
func (*NewRoleRelationships_Users) ProtoMessage()
func (*NewRoleRelationships_Users) ProtoReflect ¶
func (x *NewRoleRelationships_Users) ProtoReflect() protoreflect.Message
func (*NewRoleRelationships_Users) Reset ¶
func (x *NewRoleRelationships_Users) Reset()
func (*NewRoleRelationships_Users) String ¶
func (x *NewRoleRelationships_Users) String() string
func (*NewRoleRelationships_Users) Validate ¶
func (this *NewRoleRelationships_Users) Validate() error
type NewUserRelationships ¶
type NewUserRelationships struct { Roles *NewUserRelationships_Roles `protobuf:"bytes,1,opt,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
The relationship definition for creating new users.
func (*NewUserRelationships) Descriptor
deprecated
func (*NewUserRelationships) Descriptor() ([]byte, []int)
Deprecated: Use NewUserRelationships.ProtoReflect.Descriptor instead.
func (*NewUserRelationships) GetRoles ¶
func (x *NewUserRelationships) GetRoles() *NewUserRelationships_Roles
func (*NewUserRelationships) ProtoMessage ¶
func (*NewUserRelationships) ProtoMessage()
func (*NewUserRelationships) ProtoReflect ¶
func (x *NewUserRelationships) ProtoReflect() protoreflect.Message
func (*NewUserRelationships) Reset ¶
func (x *NewUserRelationships) Reset()
func (*NewUserRelationships) String ¶
func (x *NewUserRelationships) String() string
func (*NewUserRelationships) Validate ¶
func (this *NewUserRelationships) Validate() error
type NewUserRelationships_Roles ¶
type NewUserRelationships_Roles struct { // A role [resource identifier object](http://jsonapi.org/format/#document-resource-identifier-objects). Data []*jsonapi.Data `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
Relationships with role resource.
func (*NewUserRelationships_Roles) Descriptor
deprecated
func (*NewUserRelationships_Roles) Descriptor() ([]byte, []int)
Deprecated: Use NewUserRelationships_Roles.ProtoReflect.Descriptor instead.
func (*NewUserRelationships_Roles) GetData ¶
func (x *NewUserRelationships_Roles) GetData() []*jsonapi.Data
func (*NewUserRelationships_Roles) ProtoMessage ¶
func (*NewUserRelationships_Roles) ProtoMessage()
func (*NewUserRelationships_Roles) ProtoReflect ¶
func (x *NewUserRelationships_Roles) ProtoReflect() protoreflect.Message
func (*NewUserRelationships_Roles) Reset ¶
func (x *NewUserRelationships_Roles) Reset()
func (*NewUserRelationships_Roles) String ¶
func (x *NewUserRelationships_Roles) String() string
func (*NewUserRelationships_Roles) Validate ¶
func (this *NewUserRelationships_Roles) Validate() error
type Permission ¶
type Permission struct { Data *PermissionData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Links *jsonapi.Links `protobuf:"bytes,2,opt,name=links,proto3" json:"links,omitempty"` // contains filtered or unexported fields }
A resource for managing user permission.
func (*Permission) Descriptor
deprecated
func (*Permission) Descriptor() ([]byte, []int)
Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) GetData ¶
func (x *Permission) GetData() *PermissionData
func (*Permission) GetLinks ¶
func (x *Permission) GetLinks() *jsonapi.Links
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
func (*Permission) Validate ¶
func (this *Permission) Validate() error
type PermissionAttributes ¶
type PermissionAttributes struct { // Kind of permission, for example read, write, admin etc. Permission string `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"` // Brief description of the type of permission. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Timestamp for creation and update CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Resource(object) on which this permission is granted Resource string `protobuf:"bytes,5,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
A container for permission fields.
func (*PermissionAttributes) Descriptor
deprecated
func (*PermissionAttributes) Descriptor() ([]byte, []int)
Deprecated: Use PermissionAttributes.ProtoReflect.Descriptor instead.
func (*PermissionAttributes) GetCreatedAt ¶
func (x *PermissionAttributes) GetCreatedAt() *timestamppb.Timestamp
func (*PermissionAttributes) GetDescription ¶
func (x *PermissionAttributes) GetDescription() string
func (*PermissionAttributes) GetPermission ¶
func (x *PermissionAttributes) GetPermission() string
func (*PermissionAttributes) GetResource ¶
func (x *PermissionAttributes) GetResource() string
func (*PermissionAttributes) GetUpdatedAt ¶
func (x *PermissionAttributes) GetUpdatedAt() *timestamppb.Timestamp
func (*PermissionAttributes) ProtoMessage ¶
func (*PermissionAttributes) ProtoMessage()
func (*PermissionAttributes) ProtoReflect ¶
func (x *PermissionAttributes) ProtoReflect() protoreflect.Message
func (*PermissionAttributes) Reset ¶
func (x *PermissionAttributes) Reset()
func (*PermissionAttributes) String ¶
func (x *PermissionAttributes) String() string
func (*PermissionAttributes) Validate ¶
func (this *PermissionAttributes) Validate() error
type PermissionCollection ¶
type PermissionCollection struct { Data []*PermissionData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` Links *jsonapi.Links `protobuf:"bytes,2,opt,name=links,proto3" json:"links,omitempty"` // contains filtered or unexported fields }
A permission collection resource.
func (*PermissionCollection) Descriptor
deprecated
func (*PermissionCollection) Descriptor() ([]byte, []int)
Deprecated: Use PermissionCollection.ProtoReflect.Descriptor instead.
func (*PermissionCollection) GetData ¶
func (x *PermissionCollection) GetData() []*PermissionData
func (*PermissionCollection) GetLinks ¶
func (x *PermissionCollection) GetLinks() *jsonapi.Links
func (*PermissionCollection) ProtoMessage ¶
func (*PermissionCollection) ProtoMessage()
func (*PermissionCollection) ProtoReflect ¶
func (x *PermissionCollection) ProtoReflect() protoreflect.Message
func (*PermissionCollection) Reset ¶
func (x *PermissionCollection) Reset()
func (*PermissionCollection) String ¶
func (x *PermissionCollection) String() string
func (*PermissionCollection) Validate ¶
func (this *PermissionCollection) Validate() error
type PermissionData ¶
type PermissionData struct { // The resource name. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Unique id. Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Attributes *PermissionAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` Links *jsonapi.Links `protobuf:"bytes,4,opt,name=links,proto3" json:"links,omitempty"` // contains filtered or unexported fields }
A top level container for permission data.
func (*PermissionData) Descriptor
deprecated
func (*PermissionData) Descriptor() ([]byte, []int)
Deprecated: Use PermissionData.ProtoReflect.Descriptor instead.
func (*PermissionData) GetAttributes ¶
func (x *PermissionData) GetAttributes() *PermissionAttributes
func (*PermissionData) GetId ¶
func (x *PermissionData) GetId() int64
func (*PermissionData) GetLinks ¶
func (x *PermissionData) GetLinks() *jsonapi.Links
func (*PermissionData) GetType ¶
func (x *PermissionData) GetType() string
func (*PermissionData) ProtoMessage ¶
func (*PermissionData) ProtoMessage()
func (*PermissionData) ProtoReflect ¶
func (x *PermissionData) ProtoReflect() protoreflect.Message
func (*PermissionData) Reset ¶
func (x *PermissionData) Reset()
func (*PermissionData) String ¶
func (x *PermissionData) String() string
func (*PermissionData) Validate ¶
func (this *PermissionData) Validate() error
type PermissionServiceClient ¶
type PermissionServiceClient interface { // Gets the specified permission GetPermission(ctx context.Context, in *jsonapi.GetRequestWithFields, opts ...grpc.CallOption) (*Permission, error) // List all permissions ListPermissions(ctx context.Context, in *jsonapi.SimpleListRequest, opts ...grpc.CallOption) (*PermissionCollection, error) // Create an permission CreatePermission(ctx context.Context, in *CreatePermissionRequest, opts ...grpc.CallOption) (*Permission, error) // Update an permission UpdatePermission(ctx context.Context, in *UpdatePermissionRequest, opts ...grpc.CallOption) (*Permission, error) // Delete an permission DeletePermission(ctx context.Context, in *jsonapi.DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, 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.
func NewPermissionServiceClient ¶
func NewPermissionServiceClient(cc grpc.ClientConnInterface) PermissionServiceClient
type PermissionServiceServer ¶
type PermissionServiceServer interface { // Gets the specified permission GetPermission(context.Context, *jsonapi.GetRequestWithFields) (*Permission, error) // List all permissions ListPermissions(context.Context, *jsonapi.SimpleListRequest) (*PermissionCollection, error) // Create an permission CreatePermission(context.Context, *CreatePermissionRequest) (*Permission, error) // Update an permission UpdatePermission(context.Context, *UpdatePermissionRequest) (*Permission, error) // Delete an permission DeletePermission(context.Context, *jsonapi.DeleteRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
PermissionServiceServer is the server API for PermissionService service. All implementations must embed UnimplementedPermissionServiceServer for forward compatibility
type Role ¶
type Role struct { Data *RoleData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Links *jsonapi.Links `protobuf:"bytes,2,opt,name=links,proto3" json:"links,omitempty"` Included []*anypb.Any `protobuf:"bytes,3,rep,name=included,proto3" json:"included,omitempty"` // contains filtered or unexported fields }
A definition for managing user roles.
func (*Role) Descriptor
deprecated
func (*Role) GetIncluded ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type RoleAttributes ¶
type RoleAttributes struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Timestamp for creation and update CreatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
A container for role fields.
func (*RoleAttributes) Descriptor
deprecated
func (*RoleAttributes) Descriptor() ([]byte, []int)
Deprecated: Use RoleAttributes.ProtoReflect.Descriptor instead.
func (*RoleAttributes) GetCreatedAt ¶
func (x *RoleAttributes) GetCreatedAt() *timestamppb.Timestamp
func (*RoleAttributes) GetDescription ¶
func (x *RoleAttributes) GetDescription() string
func (*RoleAttributes) GetRole ¶
func (x *RoleAttributes) GetRole() string
func (*RoleAttributes) GetUpdatedAt ¶
func (x *RoleAttributes) GetUpdatedAt() *timestamppb.Timestamp
func (*RoleAttributes) ProtoMessage ¶
func (*RoleAttributes) ProtoMessage()
func (*RoleAttributes) ProtoReflect ¶
func (x *RoleAttributes) ProtoReflect() protoreflect.Message
func (*RoleAttributes) Reset ¶
func (x *RoleAttributes) Reset()
func (*RoleAttributes) String ¶
func (x *RoleAttributes) String() string
func (*RoleAttributes) Validate ¶
func (this *RoleAttributes) Validate() error
type RoleCollection ¶
type RoleCollection struct { Data []*RoleData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` Links *jsonapi.Links `protobuf:"bytes,2,opt,name=links,proto3" json:"links,omitempty"` Included []*anypb.Any `protobuf:"bytes,3,rep,name=included,proto3" json:"included,omitempty"` // contains filtered or unexported fields }
A role collection definition.
func (*RoleCollection) Descriptor
deprecated
func (*RoleCollection) Descriptor() ([]byte, []int)
Deprecated: Use RoleCollection.ProtoReflect.Descriptor instead.
func (*RoleCollection) GetData ¶
func (x *RoleCollection) GetData() []*RoleData
func (*RoleCollection) GetIncluded ¶
func (x *RoleCollection) GetIncluded() []*anypb.Any
func (*RoleCollection) GetLinks ¶
func (x *RoleCollection) GetLinks() *jsonapi.Links
func (*RoleCollection) ProtoMessage ¶
func (*RoleCollection) ProtoMessage()
func (*RoleCollection) ProtoReflect ¶
func (x *RoleCollection) ProtoReflect() protoreflect.Message
func (*RoleCollection) Reset ¶
func (x *RoleCollection) Reset()
func (*RoleCollection) String ¶
func (x *RoleCollection) String() string
func (*RoleCollection) Validate ¶
func (this *RoleCollection) Validate() error
type RoleData ¶
type RoleData struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Attributes *RoleAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` Links *jsonapi.Links `protobuf:"bytes,4,opt,name=links,proto3" json:"links,omitempty"` Relationships *ExistingRoleRelationships `protobuf:"bytes,5,opt,name=relationships,proto3" json:"relationships,omitempty"` // contains filtered or unexported fields }
A top level container for role data.
func (*RoleData) Descriptor
deprecated
func (*RoleData) GetAttributes ¶
func (x *RoleData) GetAttributes() *RoleAttributes
func (*RoleData) GetRelationships ¶
func (x *RoleData) GetRelationships() *ExistingRoleRelationships
func (*RoleData) ProtoMessage ¶
func (*RoleData) ProtoMessage()
func (*RoleData) ProtoReflect ¶
func (x *RoleData) ProtoReflect() protoreflect.Message
type RoleServiceClient ¶
type RoleServiceClient interface { // Gets the specified role GetRole(ctx context.Context, in *jsonapi.GetRequest, opts ...grpc.CallOption) (*Role, error) // Gets all related users GetRelatedUsers(ctx context.Context, in *jsonapi.RelationshipRequestWithPagination, opts ...grpc.CallOption) (*UserCollection, error) // Gets all related permissions GetRelatedPermissions(ctx context.Context, in *jsonapi.RelationshipRequest, opts ...grpc.CallOption) (*PermissionCollection, error) // List all roles. Both *users* and *permissions* relationships are allowed in the include parameter. ListRoles(ctx context.Context, in *jsonapi.SimpleListRequest, opts ...grpc.CallOption) (*RoleCollection, error) // Create an role CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*Role, error) // Create user relationship with role CreateUserRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error) // Create permission relationship with role CreatePermissionRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error) // Update an role UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*Role, error) // Update existing user relationship with role UpdateUserRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error) // Update existing permission relationship with role UpdatePermissionRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error) // Delete an role DeleteRole(ctx context.Context, in *jsonapi.DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Delete existing user relationship with role DeleteUserRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error) // Delete existing permission relationship with role DeletePermissionRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, 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.
func NewRoleServiceClient ¶
func NewRoleServiceClient(cc grpc.ClientConnInterface) RoleServiceClient
type RoleServiceServer ¶
type RoleServiceServer interface { // Gets the specified role GetRole(context.Context, *jsonapi.GetRequest) (*Role, error) // Gets all related users GetRelatedUsers(context.Context, *jsonapi.RelationshipRequestWithPagination) (*UserCollection, error) // Gets all related permissions GetRelatedPermissions(context.Context, *jsonapi.RelationshipRequest) (*PermissionCollection, error) // List all roles. Both *users* and *permissions* relationships are allowed in the include parameter. ListRoles(context.Context, *jsonapi.SimpleListRequest) (*RoleCollection, error) // Create an role CreateRole(context.Context, *CreateRoleRequest) (*Role, error) // Create user relationship with role CreateUserRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error) // Create permission relationship with role CreatePermissionRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error) // Update an role UpdateRole(context.Context, *UpdateRoleRequest) (*Role, error) // Update existing user relationship with role UpdateUserRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error) // Update existing permission relationship with role UpdatePermissionRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error) // Delete an role DeleteRole(context.Context, *jsonapi.DeleteRequest) (*emptypb.Empty, error) // Delete existing user relationship with role DeleteUserRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error) // Delete existing permission relationship with role DeletePermissionRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error) // contains filtered or unexported methods }
RoleServiceServer is the server API for RoleService service. All implementations must embed UnimplementedRoleServiceServer for forward compatibility
type UnimplementedPermissionServiceServer ¶
type UnimplementedPermissionServiceServer struct { }
UnimplementedPermissionServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPermissionServiceServer) CreatePermission ¶
func (UnimplementedPermissionServiceServer) CreatePermission(context.Context, *CreatePermissionRequest) (*Permission, error)
func (UnimplementedPermissionServiceServer) DeletePermission ¶
func (UnimplementedPermissionServiceServer) DeletePermission(context.Context, *jsonapi.DeleteRequest) (*emptypb.Empty, error)
func (UnimplementedPermissionServiceServer) GetPermission ¶
func (UnimplementedPermissionServiceServer) GetPermission(context.Context, *jsonapi.GetRequestWithFields) (*Permission, error)
func (UnimplementedPermissionServiceServer) ListPermissions ¶
func (UnimplementedPermissionServiceServer) ListPermissions(context.Context, *jsonapi.SimpleListRequest) (*PermissionCollection, error)
func (UnimplementedPermissionServiceServer) UpdatePermission ¶
func (UnimplementedPermissionServiceServer) UpdatePermission(context.Context, *UpdatePermissionRequest) (*Permission, error)
type UnimplementedRoleServiceServer ¶
type UnimplementedRoleServiceServer struct { }
UnimplementedRoleServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedRoleServiceServer) CreatePermissionRelationship ¶
func (UnimplementedRoleServiceServer) CreatePermissionRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
func (UnimplementedRoleServiceServer) CreateRole ¶
func (UnimplementedRoleServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*Role, error)
func (UnimplementedRoleServiceServer) CreateUserRelationship ¶
func (UnimplementedRoleServiceServer) CreateUserRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
func (UnimplementedRoleServiceServer) DeletePermissionRelationship ¶
func (UnimplementedRoleServiceServer) DeletePermissionRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
func (UnimplementedRoleServiceServer) DeleteRole ¶
func (UnimplementedRoleServiceServer) DeleteRole(context.Context, *jsonapi.DeleteRequest) (*emptypb.Empty, error)
func (UnimplementedRoleServiceServer) DeleteUserRelationship ¶
func (UnimplementedRoleServiceServer) DeleteUserRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
func (UnimplementedRoleServiceServer) GetRelatedPermissions ¶
func (UnimplementedRoleServiceServer) GetRelatedPermissions(context.Context, *jsonapi.RelationshipRequest) (*PermissionCollection, error)
func (UnimplementedRoleServiceServer) GetRelatedUsers ¶
func (UnimplementedRoleServiceServer) GetRelatedUsers(context.Context, *jsonapi.RelationshipRequestWithPagination) (*UserCollection, error)
func (UnimplementedRoleServiceServer) GetRole ¶
func (UnimplementedRoleServiceServer) GetRole(context.Context, *jsonapi.GetRequest) (*Role, error)
func (UnimplementedRoleServiceServer) ListRoles ¶
func (UnimplementedRoleServiceServer) ListRoles(context.Context, *jsonapi.SimpleListRequest) (*RoleCollection, error)
func (UnimplementedRoleServiceServer) UpdatePermissionRelationship ¶
func (UnimplementedRoleServiceServer) UpdatePermissionRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
func (UnimplementedRoleServiceServer) UpdateRole ¶
func (UnimplementedRoleServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*Role, error)
func (UnimplementedRoleServiceServer) UpdateUserRelationship ¶
func (UnimplementedRoleServiceServer) UpdateUserRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateRoleRelationship ¶
func (UnimplementedUserServiceServer) CreateRoleRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*User, error)
func (UnimplementedUserServiceServer) DeleteRoleRelationship ¶
func (UnimplementedUserServiceServer) DeleteRoleRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *jsonapi.DeleteRequest) (*emptypb.Empty, error)
func (UnimplementedUserServiceServer) ExistUser ¶
func (UnimplementedUserServiceServer) ExistUser(context.Context, *jsonapi.IdRequest) (*jsonapi.ExistResponse, error)
func (UnimplementedUserServiceServer) GetRelatedRoles ¶
func (UnimplementedUserServiceServer) GetRelatedRoles(context.Context, *jsonapi.RelationshipRequest) (*RoleCollection, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *jsonapi.GetRequest) (*User, error)
func (UnimplementedUserServiceServer) GetUserByEmail ¶
func (UnimplementedUserServiceServer) GetUserByEmail(context.Context, *jsonapi.GetEmailRequest) (*User, error)
func (UnimplementedUserServiceServer) Healthz ¶
func (UnimplementedUserServiceServer) Healthz(context.Context, *jsonapi.HealthzIdRequest) (*emptypb.Empty, error)
func (UnimplementedUserServiceServer) ListUsers ¶
func (UnimplementedUserServiceServer) ListUsers(context.Context, *jsonapi.ListRequest) (*UserCollection, error)
func (UnimplementedUserServiceServer) UpdateRoleRelationship ¶
func (UnimplementedUserServiceServer) UpdateRoleRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
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 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 { Data *UpdatePermissionRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // Unique id, required Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // An optional mask specifying which fields to update. // Presence of this field allow partial updates. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdatePermissionRequest) Descriptor
deprecated
func (*UpdatePermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePermissionRequest.ProtoReflect.Descriptor instead.
func (*UpdatePermissionRequest) GetData ¶
func (x *UpdatePermissionRequest) GetData() *UpdatePermissionRequest_Data
func (*UpdatePermissionRequest) GetId ¶
func (x *UpdatePermissionRequest) GetId() int64
func (*UpdatePermissionRequest) GetUpdateMask ¶
func (x *UpdatePermissionRequest) GetUpdateMask() *fieldmaskpb.FieldMask
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
func (*UpdatePermissionRequest) Validate ¶
func (this *UpdatePermissionRequest) Validate() error
type UpdatePermissionRequest_Data ¶
type UpdatePermissionRequest_Data struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Attributes *PermissionAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` // contains filtered or unexported fields }
func (*UpdatePermissionRequest_Data) Descriptor
deprecated
func (*UpdatePermissionRequest_Data) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePermissionRequest_Data.ProtoReflect.Descriptor instead.
func (*UpdatePermissionRequest_Data) GetAttributes ¶
func (x *UpdatePermissionRequest_Data) GetAttributes() *PermissionAttributes
func (*UpdatePermissionRequest_Data) GetId ¶
func (x *UpdatePermissionRequest_Data) GetId() int64
func (*UpdatePermissionRequest_Data) GetType ¶
func (x *UpdatePermissionRequest_Data) GetType() string
func (*UpdatePermissionRequest_Data) ProtoMessage ¶
func (*UpdatePermissionRequest_Data) ProtoMessage()
func (*UpdatePermissionRequest_Data) ProtoReflect ¶
func (x *UpdatePermissionRequest_Data) ProtoReflect() protoreflect.Message
func (*UpdatePermissionRequest_Data) Reset ¶
func (x *UpdatePermissionRequest_Data) Reset()
func (*UpdatePermissionRequest_Data) String ¶
func (x *UpdatePermissionRequest_Data) String() string
func (*UpdatePermissionRequest_Data) Validate ¶
func (this *UpdatePermissionRequest_Data) Validate() error
type UpdateRoleRequest ¶
type UpdateRoleRequest struct { Data *UpdateRoleRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // Unique id, required Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // An optional mask specifying which fields to update. // Presence of this field allow partial updates. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleRequest) Descriptor
deprecated
func (*UpdateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest) GetData ¶
func (x *UpdateRoleRequest) GetData() *UpdateRoleRequest_Data
func (*UpdateRoleRequest) GetId ¶
func (x *UpdateRoleRequest) GetId() int64
func (*UpdateRoleRequest) GetUpdateMask ¶
func (x *UpdateRoleRequest) GetUpdateMask() *fieldmaskpb.FieldMask
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
func (*UpdateRoleRequest) Validate ¶
func (this *UpdateRoleRequest) Validate() error
type UpdateRoleRequest_Data ¶
type UpdateRoleRequest_Data struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Attributes *RoleAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` Relationships *ExistingRoleRelationships `protobuf:"bytes,4,opt,name=relationships,proto3" json:"relationships,omitempty"` // contains filtered or unexported fields }
func (*UpdateRoleRequest_Data) Descriptor
deprecated
func (*UpdateRoleRequest_Data) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest_Data.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest_Data) GetAttributes ¶
func (x *UpdateRoleRequest_Data) GetAttributes() *RoleAttributes
func (*UpdateRoleRequest_Data) GetId ¶
func (x *UpdateRoleRequest_Data) GetId() int64
func (*UpdateRoleRequest_Data) GetRelationships ¶
func (x *UpdateRoleRequest_Data) GetRelationships() *ExistingRoleRelationships
func (*UpdateRoleRequest_Data) GetType ¶
func (x *UpdateRoleRequest_Data) GetType() string
func (*UpdateRoleRequest_Data) ProtoMessage ¶
func (*UpdateRoleRequest_Data) ProtoMessage()
func (*UpdateRoleRequest_Data) ProtoReflect ¶
func (x *UpdateRoleRequest_Data) ProtoReflect() protoreflect.Message
func (*UpdateRoleRequest_Data) Reset ¶
func (x *UpdateRoleRequest_Data) Reset()
func (*UpdateRoleRequest_Data) String ¶
func (x *UpdateRoleRequest_Data) String() string
func (*UpdateRoleRequest_Data) Validate ¶
func (this *UpdateRoleRequest_Data) Validate() error
type UpdateUserRequest ¶
type UpdateUserRequest struct { Data *UpdateUserRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // Unique id, required Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // An optional mask specifying which fields to update. // Presence of this field allow partial updates. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetData ¶
func (x *UpdateUserRequest) GetData() *UpdateUserRequest_Data
func (*UpdateUserRequest) GetId ¶
func (x *UpdateUserRequest) GetId() int64
func (*UpdateUserRequest) GetUpdateMask ¶
func (x *UpdateUserRequest) GetUpdateMask() *fieldmaskpb.FieldMask
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
func (*UpdateUserRequest) Validate ¶
func (this *UpdateUserRequest) Validate() error
type UpdateUserRequest_Data ¶
type UpdateUserRequest_Data struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Attributes *UserAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` Relationships *ExistingUserRelationships `protobuf:"bytes,4,opt,name=relationships,proto3" json:"relationships,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest_Data) Descriptor
deprecated
func (*UpdateUserRequest_Data) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest_Data.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest_Data) GetAttributes ¶
func (x *UpdateUserRequest_Data) GetAttributes() *UserAttributes
func (*UpdateUserRequest_Data) GetId ¶
func (x *UpdateUserRequest_Data) GetId() int64
func (*UpdateUserRequest_Data) GetRelationships ¶
func (x *UpdateUserRequest_Data) GetRelationships() *ExistingUserRelationships
func (*UpdateUserRequest_Data) GetType ¶
func (x *UpdateUserRequest_Data) GetType() string
func (*UpdateUserRequest_Data) ProtoMessage ¶
func (*UpdateUserRequest_Data) ProtoMessage()
func (*UpdateUserRequest_Data) ProtoReflect ¶
func (x *UpdateUserRequest_Data) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest_Data) Reset ¶
func (x *UpdateUserRequest_Data) Reset()
func (*UpdateUserRequest_Data) String ¶
func (x *UpdateUserRequest_Data) String() string
func (*UpdateUserRequest_Data) Validate ¶
func (this *UpdateUserRequest_Data) Validate() error
type User ¶
type User struct { Data *UserData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Links *jsonapi.Links `protobuf:"bytes,2,opt,name=links,proto3" json:"links,omitempty"` Included []*anypb.Any `protobuf:"bytes,3,rep,name=included,proto3" json:"included,omitempty"` // contains filtered or unexported fields }
A user resource.
func (*User) Descriptor
deprecated
func (*User) GetIncluded ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserAttributes ¶
type UserAttributes struct { // First name. FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` // Last name. LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` // Email. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // Organization in which the user belong. Organization string `protobuf:"bytes,4,opt,name=organization,proto3" json:"organization,omitempty"` // Group in which the user belong. GroupName string `protobuf:"bytes,5,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` // Address. FirstAddress string `protobuf:"bytes,6,opt,name=first_address,json=firstAddress,proto3" json:"first_address,omitempty"` // More address. SecondAddress string `protobuf:"bytes,7,opt,name=second_address,json=secondAddress,proto3" json:"second_address,omitempty"` // City. City string `protobuf:"bytes,8,opt,name=city,proto3" json:"city,omitempty"` // State. State string `protobuf:"bytes,9,opt,name=state,proto3" json:"state,omitempty"` // Zipcode. Zipcode string `protobuf:"bytes,10,opt,name=zipcode,proto3" json:"zipcode,omitempty"` // Country. Country string `protobuf:"bytes,11,opt,name=country,proto3" json:"country,omitempty"` // Phone no. Phone string `protobuf:"bytes,12,opt,name=phone,proto3" json:"phone,omitempty"` // Current status of user. IsActive bool `protobuf:"varint,13,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // Timestamp for creation and update CreatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
A container for user fields.
func (*UserAttributes) Descriptor
deprecated
func (*UserAttributes) Descriptor() ([]byte, []int)
Deprecated: Use UserAttributes.ProtoReflect.Descriptor instead.
func (*UserAttributes) GetCity ¶
func (x *UserAttributes) GetCity() string
func (*UserAttributes) GetCountry ¶
func (x *UserAttributes) GetCountry() string
func (*UserAttributes) GetCreatedAt ¶
func (x *UserAttributes) GetCreatedAt() *timestamppb.Timestamp
func (*UserAttributes) GetEmail ¶
func (x *UserAttributes) GetEmail() string
func (*UserAttributes) GetFirstAddress ¶
func (x *UserAttributes) GetFirstAddress() string
func (*UserAttributes) GetFirstName ¶
func (x *UserAttributes) GetFirstName() string
func (*UserAttributes) GetGroupName ¶
func (x *UserAttributes) GetGroupName() string
func (*UserAttributes) GetIsActive ¶
func (x *UserAttributes) GetIsActive() bool
func (*UserAttributes) GetLastName ¶
func (x *UserAttributes) GetLastName() string
func (*UserAttributes) GetOrganization ¶
func (x *UserAttributes) GetOrganization() string
func (*UserAttributes) GetPhone ¶
func (x *UserAttributes) GetPhone() string
func (*UserAttributes) GetSecondAddress ¶
func (x *UserAttributes) GetSecondAddress() string
func (*UserAttributes) GetState ¶
func (x *UserAttributes) GetState() string
func (*UserAttributes) GetUpdatedAt ¶
func (x *UserAttributes) GetUpdatedAt() *timestamppb.Timestamp
func (*UserAttributes) GetZipcode ¶
func (x *UserAttributes) GetZipcode() string
func (*UserAttributes) ProtoMessage ¶
func (*UserAttributes) ProtoMessage()
func (*UserAttributes) ProtoReflect ¶
func (x *UserAttributes) ProtoReflect() protoreflect.Message
func (*UserAttributes) Reset ¶
func (x *UserAttributes) Reset()
func (*UserAttributes) String ¶
func (x *UserAttributes) String() string
func (*UserAttributes) Validate ¶
func (this *UserAttributes) Validate() error
type UserCollection ¶
type UserCollection struct { Data []*UserData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` Links *jsonapi.PaginationLinks `protobuf:"bytes,2,opt,name=links,proto3" json:"links,omitempty"` Meta *jsonapi.Meta `protobuf:"bytes,3,opt,name=meta,proto3" json:"meta,omitempty"` Included []*anypb.Any `protobuf:"bytes,4,rep,name=included,proto3" json:"included,omitempty"` // contains filtered or unexported fields }
A user collection resource.
func (*UserCollection) Descriptor
deprecated
func (*UserCollection) Descriptor() ([]byte, []int)
Deprecated: Use UserCollection.ProtoReflect.Descriptor instead.
func (*UserCollection) GetData ¶
func (x *UserCollection) GetData() []*UserData
func (*UserCollection) GetIncluded ¶
func (x *UserCollection) GetIncluded() []*anypb.Any
func (*UserCollection) GetLinks ¶
func (x *UserCollection) GetLinks() *jsonapi.PaginationLinks
func (*UserCollection) GetMeta ¶
func (x *UserCollection) GetMeta() *jsonapi.Meta
func (*UserCollection) ProtoMessage ¶
func (*UserCollection) ProtoMessage()
func (*UserCollection) ProtoReflect ¶
func (x *UserCollection) ProtoReflect() protoreflect.Message
func (*UserCollection) Reset ¶
func (x *UserCollection) Reset()
func (*UserCollection) String ¶
func (x *UserCollection) String() string
func (*UserCollection) Validate ¶
func (this *UserCollection) Validate() error
type UserData ¶
type UserData struct { // The resource name. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Unique id. Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Attributes *UserAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` Links *jsonapi.Links `protobuf:"bytes,4,opt,name=links,proto3" json:"links,omitempty"` Relationships *ExistingUserRelationships `protobuf:"bytes,5,opt,name=relationships,proto3" json:"relationships,omitempty"` // contains filtered or unexported fields }
A top level container for user data.
func (*UserData) Descriptor
deprecated
func (*UserData) GetAttributes ¶
func (x *UserData) GetAttributes() *UserAttributes
func (*UserData) GetRelationships ¶
func (x *UserData) GetRelationships() *ExistingUserRelationships
func (*UserData) ProtoMessage ¶
func (*UserData) ProtoMessage()
func (*UserData) ProtoReflect ¶
func (x *UserData) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { // Check the existence of user ExistUser(ctx context.Context, in *jsonapi.IdRequest, opts ...grpc.CallOption) (*jsonapi.ExistResponse, error) // Gets the specified user GetUser(ctx context.Context, in *jsonapi.GetRequest, opts ...grpc.CallOption) (*User, error) // Gets the specified user by their email id GetUserByEmail(ctx context.Context, in *jsonapi.GetEmailRequest, opts ...grpc.CallOption) (*User, error) // Gets all related roles GetRelatedRoles(ctx context.Context, in *jsonapi.RelationshipRequest, opts ...grpc.CallOption) (*RoleCollection, error) // List all users. Only *roles* relationship is allowed for inclusion. ListUsers(ctx context.Context, in *jsonapi.ListRequest, opts ...grpc.CallOption) (*UserCollection, error) // Create an user CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error) // Create relationship links with roles CreateRoleRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error) // Update relationship links with roles UpdateRoleRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error) // Delete an user DeleteUser(ctx context.Context, in *jsonapi.DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Delete relationship links with roles DeleteRoleRelationship(ctx context.Context, in *jsonapi.DataCollection, opts ...grpc.CallOption) (*emptypb.Empty, error) // Basic health check that always return success Healthz(ctx context.Context, in *jsonapi.HealthzIdRequest, opts ...grpc.CallOption) (*emptypb.Empty, 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.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { // Check the existence of user ExistUser(context.Context, *jsonapi.IdRequest) (*jsonapi.ExistResponse, error) // Gets the specified user GetUser(context.Context, *jsonapi.GetRequest) (*User, error) // Gets the specified user by their email id GetUserByEmail(context.Context, *jsonapi.GetEmailRequest) (*User, error) // Gets all related roles GetRelatedRoles(context.Context, *jsonapi.RelationshipRequest) (*RoleCollection, error) // List all users. Only *roles* relationship is allowed for inclusion. ListUsers(context.Context, *jsonapi.ListRequest) (*UserCollection, error) // Create an user CreateUser(context.Context, *CreateUserRequest) (*User, error) // Create relationship links with roles CreateRoleRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error) UpdateUser(context.Context, *UpdateUserRequest) (*User, error) // Update relationship links with roles UpdateRoleRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error) // Delete an user DeleteUser(context.Context, *jsonapi.DeleteRequest) (*emptypb.Empty, error) // Delete relationship links with roles DeleteRoleRelationship(context.Context, *jsonapi.DataCollection) (*emptypb.Empty, error) // Basic health check that always return success Healthz(context.Context, *jsonapi.HealthzIdRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility