Versions in this module Expand all Collapse all v0 v0.0.56 Jan 18, 2025 Changes in this version + const AuthorizationService_CheckAuthorization_FullMethodName + const AuthorizationService_CreateApi_FullMethodName + const AuthorizationService_CreateMenu_FullMethodName + const AuthorizationService_CreateRole_FullMethodName + const AuthorizationService_DeleteApi_FullMethodName + const AuthorizationService_DeleteMenu_FullMethodName + const AuthorizationService_DeleteRoleForUser_FullMethodName + const AuthorizationService_DeleteRole_FullMethodName + const AuthorizationService_DeleteRolesForUser_FullMethodName + const AuthorizationService_GetApiListAll_FullMethodName + const AuthorizationService_GetApiList_FullMethodName + const AuthorizationService_GetMenuAll_FullMethodName + const AuthorizationService_GetMenuTree_FullMethodName + const AuthorizationService_GetPolicies_FullMethodName + const AuthorizationService_GetRoleAll_FullMethodName + const AuthorizationService_GetRoleMenuBtn_FullMethodName + const AuthorizationService_GetRoleMenuTree_FullMethodName + const AuthorizationService_GetRoleMenu_FullMethodName + const AuthorizationService_GetRolesForUser_FullMethodName + const AuthorizationService_GetUsersForRole_FullMethodName + const AuthorizationService_SaveRoleMenuBtn_FullMethodName + const AuthorizationService_SaveRoleMenu_FullMethodName + const AuthorizationService_SetRolesForUser_FullMethodName + const AuthorizationService_UpdateApi_FullMethodName + const AuthorizationService_UpdateMenu_FullMethodName + const AuthorizationService_UpdatePolicies_FullMethodName + const AuthorizationService_UpdateRole_FullMethodName + const OperationAuthorizationServiceCheckAuthorization + const OperationAuthorizationServiceCreateApi + const OperationAuthorizationServiceCreateMenu + const OperationAuthorizationServiceCreateRole + const OperationAuthorizationServiceDeleteApi + const OperationAuthorizationServiceDeleteMenu + const OperationAuthorizationServiceDeleteRole + const OperationAuthorizationServiceDeleteRoleForUser + const OperationAuthorizationServiceDeleteRolesForUser + const OperationAuthorizationServiceGetApiList + const OperationAuthorizationServiceGetApiListAll + const OperationAuthorizationServiceGetMenuAll + const OperationAuthorizationServiceGetMenuTree + const OperationAuthorizationServiceGetPolicies + const OperationAuthorizationServiceGetRoleAll + const OperationAuthorizationServiceGetRoleMenu + const OperationAuthorizationServiceGetRoleMenuBtn + const OperationAuthorizationServiceGetRoleMenuTree + const OperationAuthorizationServiceGetRolesForUser + const OperationAuthorizationServiceGetUsersForRole + const OperationAuthorizationServiceSaveRoleMenu + const OperationAuthorizationServiceSaveRoleMenuBtn + const OperationAuthorizationServiceSetRolesForUser + const OperationAuthorizationServiceUpdateApi + const OperationAuthorizationServiceUpdateMenu + const OperationAuthorizationServiceUpdatePolicies + const OperationAuthorizationServiceUpdateRole + var AuthorizationService_ServiceDesc = grpc.ServiceDesc + var ErrorReason_name = map[int32]string + var ErrorReason_value = map[string]int32 + var File_auth_v1_authorization_proto protoreflect.FileDescriptor + var File_auth_v1_error_reason_proto protoreflect.FileDescriptor + func ErrorBadRequest(format string, args ...interface{}) *errors.Error + func ErrorRecordAlreadyExists(format string, args ...interface{}) *errors.Error + func ErrorRecordNotFound(format string, args ...interface{}) *errors.Error + func ErrorSystemError(format string, args ...interface{}) *errors.Error + func IsBadRequest(err error) bool + func IsRecordAlreadyExists(err error) bool + func IsRecordNotFound(err error) bool + func IsSystemError(err error) bool + func RegisterAuthorizationServiceHTTPServer(s *http.Server, srv AuthorizationServiceHTTPServer) + func RegisterAuthorizationServiceServer(s grpc.ServiceRegistrar, srv AuthorizationServiceServer) + type Api struct + CreatedAt string + Domain string + Group string + Id int64 + Method string + Name string + Path string + UpdatedAt string + func (*Api) Descriptor() ([]byte, []int) + func (*Api) ProtoMessage() + func (x *Api) GetCreatedAt() string + func (x *Api) GetDomain() string + func (x *Api) GetGroup() string + func (x *Api) GetId() int64 + func (x *Api) GetMethod() string + func (x *Api) GetName() string + func (x *Api) GetPath() string + func (x *Api) GetUpdatedAt() string + func (x *Api) ProtoReflect() protoreflect.Message + func (x *Api) Reset() + func (x *Api) String() string + type AuthorizationServiceClient interface + CheckAuthorization func(ctx context.Context, in *CheckAuthorizationReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + CreateApi func(ctx context.Context, in *CreateApiReq, opts ...grpc.CallOption) (*Api, error) + CreateMenu func(ctx context.Context, in *CreateMenuReq, opts ...grpc.CallOption) (*Menu, error) + CreateRole func(ctx context.Context, in *CreateRoleReq, opts ...grpc.CallOption) (*Role, error) + DeleteApi func(ctx context.Context, in *DeleteApiReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteMenu func(ctx context.Context, in *IdReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteRole func(ctx context.Context, in *DeleteRoleReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteRoleForUser func(ctx context.Context, in *DeleteRoleForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteRolesForUser func(ctx context.Context, in *DeleteRolesForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + GetApiList func(ctx context.Context, in *GetApiListReq, opts ...grpc.CallOption) (*GetApiListPageRes, error) + GetApiListAll func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetApiListAllRes, error) + GetMenuAll func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeRes, error) + GetMenuTree func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMenuTreeRes, error) + GetPolicies func(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetPoliciesRes, error) + GetRoleAll func(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetRoleAllRes, error) + GetRoleMenu func(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetMenuTreeRes, error) + GetRoleMenuBtn func(ctx context.Context, in *GetRoleMenuBtnReq, opts ...grpc.CallOption) (*GetRoleMenuBtnRes, error) + GetRoleMenuTree func(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetMenuTreeRes, error) + GetRolesForUser func(ctx context.Context, in *GetRolesForUserReq, opts ...grpc.CallOption) (*GetRolesForUserRes, error) + GetUsersForRole func(ctx context.Context, in *RoleNameReq, opts ...grpc.CallOption) (*GetUsersForRoleRes, error) + SaveRoleMenu func(ctx context.Context, in *SaveRoleMenuReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + SaveRoleMenuBtn func(ctx context.Context, in *SaveRoleMenuBtnReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + SetRolesForUser func(ctx context.Context, in *SetRolesForUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + UpdateApi func(ctx context.Context, in *UpdateApiReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + UpdateMenu func(ctx context.Context, in *UpdateMenuReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + UpdatePolicies func(ctx context.Context, in *UpdatePoliciesReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + UpdateRole func(ctx context.Context, in *UpdateRoleReq, opts ...grpc.CallOption) (*emptypb.Empty, error) + func NewAuthorizationServiceClient(cc grpc.ClientConnInterface) AuthorizationServiceClient + type AuthorizationServiceHTTPClient interface + CheckAuthorization func(ctx context.Context, req *CheckAuthorizationReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + CreateApi func(ctx context.Context, req *CreateApiReq, opts ...http.CallOption) (rsp *Api, err error) + CreateMenu func(ctx context.Context, req *CreateMenuReq, opts ...http.CallOption) (rsp *Menu, err error) + CreateRole func(ctx context.Context, req *CreateRoleReq, opts ...http.CallOption) (rsp *Role, err error) + DeleteApi func(ctx context.Context, req *DeleteApiReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + DeleteMenu func(ctx context.Context, req *IdReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + DeleteRole func(ctx context.Context, req *DeleteRoleReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + DeleteRoleForUser func(ctx context.Context, req *DeleteRoleForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + DeleteRolesForUser func(ctx context.Context, req *DeleteRolesForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + GetApiList func(ctx context.Context, req *GetApiListReq, opts ...http.CallOption) (rsp *GetApiListPageRes, err error) + GetApiListAll func(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetApiListAllRes, err error) + GetMenuAll func(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error) + GetMenuTree func(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error) + GetPolicies func(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetPoliciesRes, err error) + GetRoleAll func(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetRoleAllRes, err error) + GetRoleMenu func(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error) + GetRoleMenuBtn func(ctx context.Context, req *GetRoleMenuBtnReq, opts ...http.CallOption) (rsp *GetRoleMenuBtnRes, err error) + GetRoleMenuTree func(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetMenuTreeRes, err error) + GetRolesForUser func(ctx context.Context, req *GetRolesForUserReq, opts ...http.CallOption) (rsp *GetRolesForUserRes, err error) + GetUsersForRole func(ctx context.Context, req *RoleNameReq, opts ...http.CallOption) (rsp *GetUsersForRoleRes, err error) + SaveRoleMenu func(ctx context.Context, req *SaveRoleMenuReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + SaveRoleMenuBtn func(ctx context.Context, req *SaveRoleMenuBtnReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + SetRolesForUser func(ctx context.Context, req *SetRolesForUserReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + UpdateApi func(ctx context.Context, req *UpdateApiReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + UpdateMenu func(ctx context.Context, req *UpdateMenuReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + UpdatePolicies func(ctx context.Context, req *UpdatePoliciesReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + UpdateRole func(ctx context.Context, req *UpdateRoleReq, opts ...http.CallOption) (rsp *emptypb.Empty, err error) + func NewAuthorizationServiceHTTPClient(client *http.Client) AuthorizationServiceHTTPClient + type AuthorizationServiceHTTPClientImpl struct + func (c *AuthorizationServiceHTTPClientImpl) CheckAuthorization(ctx context.Context, in *CheckAuthorizationReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AuthorizationServiceHTTPClientImpl) CreateApi(ctx context.Context, in *CreateApiReq, opts ...http.CallOption) (*Api, error) + func (c *AuthorizationServiceHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuReq, opts ...http.CallOption) (*Menu, error) + func (c *AuthorizationServiceHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleReq, opts ...http.CallOption) (*Role, error) + func (c *AuthorizationServiceHTTPClientImpl) DeleteApi(ctx context.Context, in *DeleteApiReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AuthorizationServiceHTTPClientImpl) DeleteMenu(ctx context.Context, in *IdReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AuthorizationServiceHTTPClientImpl) DeleteRole(ctx context.Context, in *DeleteRoleReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AuthorizationServiceHTTPClientImpl) DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AuthorizationServiceHTTPClientImpl) DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AuthorizationServiceHTTPClientImpl) GetApiList(ctx context.Context, in *GetApiListReq, opts ...http.CallOption) (*GetApiListPageRes, error) + func (c *AuthorizationServiceHTTPClientImpl) GetApiListAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetApiListAllRes, error) + func (c *AuthorizationServiceHTTPClientImpl) GetMenuAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeRes, error) + func (c *AuthorizationServiceHTTPClientImpl) GetMenuTree(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetMenuTreeRes, error) + func (c *AuthorizationServiceHTTPClientImpl) GetPolicies(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetPoliciesRes, error) + func (c *AuthorizationServiceHTTPClientImpl) GetRoleAll(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetRoleAllRes, error) + func (c *AuthorizationServiceHTTPClientImpl) GetRoleMenu(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetMenuTreeRes, error) + func (c *AuthorizationServiceHTTPClientImpl) GetRoleMenuBtn(ctx context.Context, in *GetRoleMenuBtnReq, opts ...http.CallOption) (*GetRoleMenuBtnRes, error) + func (c *AuthorizationServiceHTTPClientImpl) GetRoleMenuTree(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetMenuTreeRes, error) + func (c *AuthorizationServiceHTTPClientImpl) GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...http.CallOption) (*GetRolesForUserRes, error) + func (c *AuthorizationServiceHTTPClientImpl) GetUsersForRole(ctx context.Context, in *RoleNameReq, opts ...http.CallOption) (*GetUsersForRoleRes, error) + func (c *AuthorizationServiceHTTPClientImpl) SaveRoleMenu(ctx context.Context, in *SaveRoleMenuReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AuthorizationServiceHTTPClientImpl) SaveRoleMenuBtn(ctx context.Context, in *SaveRoleMenuBtnReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AuthorizationServiceHTTPClientImpl) SetRolesForUser(ctx context.Context, in *SetRolesForUserReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AuthorizationServiceHTTPClientImpl) UpdateApi(ctx context.Context, in *UpdateApiReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AuthorizationServiceHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AuthorizationServiceHTTPClientImpl) UpdatePolicies(ctx context.Context, in *UpdatePoliciesReq, opts ...http.CallOption) (*emptypb.Empty, error) + func (c *AuthorizationServiceHTTPClientImpl) UpdateRole(ctx context.Context, in *UpdateRoleReq, opts ...http.CallOption) (*emptypb.Empty, error) + type AuthorizationServiceHTTPServer interface + CheckAuthorization func(context.Context, *CheckAuthorizationReq) (*emptypb.Empty, error) + CreateApi func(context.Context, *CreateApiReq) (*Api, error) + CreateMenu func(context.Context, *CreateMenuReq) (*Menu, error) + CreateRole func(context.Context, *CreateRoleReq) (*Role, error) + DeleteApi func(context.Context, *DeleteApiReq) (*emptypb.Empty, error) + DeleteMenu func(context.Context, *IdReq) (*emptypb.Empty, error) + DeleteRole func(context.Context, *DeleteRoleReq) (*emptypb.Empty, error) + DeleteRoleForUser func(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error) + DeleteRolesForUser func(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error) + GetApiList func(context.Context, *GetApiListReq) (*GetApiListPageRes, error) + GetApiListAll func(context.Context, *emptypb.Empty) (*GetApiListAllRes, error) + GetMenuAll func(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error) + GetMenuTree func(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error) + GetPolicies func(context.Context, *RoleNameReq) (*GetPoliciesRes, error) + GetRoleAll func(context.Context, *emptypb.Empty) (*GetRoleAllRes, error) + GetRoleMenu func(context.Context, *RoleNameReq) (*GetMenuTreeRes, error) + GetRoleMenuBtn func(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error) + GetRoleMenuTree func(context.Context, *RoleNameReq) (*GetMenuTreeRes, error) + GetRolesForUser func(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error) + GetUsersForRole func(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error) + SaveRoleMenu func(context.Context, *SaveRoleMenuReq) (*emptypb.Empty, error) + SaveRoleMenuBtn func(context.Context, *SaveRoleMenuBtnReq) (*emptypb.Empty, error) + SetRolesForUser func(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error) + UpdateApi func(context.Context, *UpdateApiReq) (*emptypb.Empty, error) + UpdateMenu func(context.Context, *UpdateMenuReq) (*emptypb.Empty, error) + UpdatePolicies func(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error) + UpdateRole func(context.Context, *UpdateRoleReq) (*emptypb.Empty, error) + type AuthorizationServiceServer interface + CheckAuthorization func(context.Context, *CheckAuthorizationReq) (*emptypb.Empty, error) + CreateApi func(context.Context, *CreateApiReq) (*Api, error) + CreateMenu func(context.Context, *CreateMenuReq) (*Menu, error) + CreateRole func(context.Context, *CreateRoleReq) (*Role, error) + DeleteApi func(context.Context, *DeleteApiReq) (*emptypb.Empty, error) + DeleteMenu func(context.Context, *IdReq) (*emptypb.Empty, error) + DeleteRole func(context.Context, *DeleteRoleReq) (*emptypb.Empty, error) + DeleteRoleForUser func(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error) + DeleteRolesForUser func(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error) + GetApiList func(context.Context, *GetApiListReq) (*GetApiListPageRes, error) + GetApiListAll func(context.Context, *emptypb.Empty) (*GetApiListAllRes, error) + GetMenuAll func(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error) + GetMenuTree func(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error) + GetPolicies func(context.Context, *RoleNameReq) (*GetPoliciesRes, error) + GetRoleAll func(context.Context, *emptypb.Empty) (*GetRoleAllRes, error) + GetRoleMenu func(context.Context, *RoleNameReq) (*GetMenuTreeRes, error) + GetRoleMenuBtn func(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error) + GetRoleMenuTree func(context.Context, *RoleNameReq) (*GetMenuTreeRes, error) + GetRolesForUser func(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error) + GetUsersForRole func(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error) + SaveRoleMenu func(context.Context, *SaveRoleMenuReq) (*emptypb.Empty, error) + SaveRoleMenuBtn func(context.Context, *SaveRoleMenuBtnReq) (*emptypb.Empty, error) + SetRolesForUser func(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error) + UpdateApi func(context.Context, *UpdateApiReq) (*emptypb.Empty, error) + UpdateMenu func(context.Context, *UpdateMenuReq) (*emptypb.Empty, error) + UpdatePolicies func(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error) + UpdateRole func(context.Context, *UpdateRoleReq) (*emptypb.Empty, error) + type CheckAuthorizationReq struct + Act string + Obj string + Sub string + func (*CheckAuthorizationReq) Descriptor() ([]byte, []int) + func (*CheckAuthorizationReq) ProtoMessage() + func (x *CheckAuthorizationReq) GetAct() string + func (x *CheckAuthorizationReq) GetObj() string + func (x *CheckAuthorizationReq) GetSub() string + func (x *CheckAuthorizationReq) ProtoReflect() protoreflect.Message + func (x *CheckAuthorizationReq) Reset() + func (x *CheckAuthorizationReq) String() string + type CreateApiReq struct + Group string + Method string + Name string + Path string + func (*CreateApiReq) Descriptor() ([]byte, []int) + func (*CreateApiReq) ProtoMessage() + func (x *CreateApiReq) GetGroup() string + func (x *CreateApiReq) GetMethod() string + func (x *CreateApiReq) GetName() string + func (x *CreateApiReq) GetPath() string + func (x *CreateApiReq) ProtoReflect() protoreflect.Message + func (x *CreateApiReq) Reset() + func (x *CreateApiReq) String() string + type CreateMenuReq struct + Component string + Hidden bool + Icon string + MenuBtns []*MenuBtn + Name string + ParentId int64 + ParentIds string + Path string + Sort int64 + Title string + func (*CreateMenuReq) Descriptor() ([]byte, []int) + func (*CreateMenuReq) ProtoMessage() + func (x *CreateMenuReq) GetComponent() string + func (x *CreateMenuReq) GetHidden() bool + func (x *CreateMenuReq) GetIcon() string + func (x *CreateMenuReq) GetMenuBtns() []*MenuBtn + func (x *CreateMenuReq) GetName() string + func (x *CreateMenuReq) GetParentId() int64 + func (x *CreateMenuReq) GetParentIds() string + func (x *CreateMenuReq) GetPath() string + func (x *CreateMenuReq) GetSort() int64 + func (x *CreateMenuReq) GetTitle() string + func (x *CreateMenuReq) ProtoReflect() protoreflect.Message + func (x *CreateMenuReq) Reset() + func (x *CreateMenuReq) String() string + type CreateRoleReq struct + Name string + func (*CreateRoleReq) Descriptor() ([]byte, []int) + func (*CreateRoleReq) ProtoMessage() + func (x *CreateRoleReq) GetName() string + func (x *CreateRoleReq) ProtoReflect() protoreflect.Message + func (x *CreateRoleReq) Reset() + func (x *CreateRoleReq) String() string + type DeleteApiReq struct + Id int64 + func (*DeleteApiReq) Descriptor() ([]byte, []int) + func (*DeleteApiReq) ProtoMessage() + func (x *DeleteApiReq) GetId() int64 + func (x *DeleteApiReq) ProtoReflect() protoreflect.Message + func (x *DeleteApiReq) Reset() + func (x *DeleteApiReq) String() string + type DeleteRoleForUserReq struct + Role string + Username string + func (*DeleteRoleForUserReq) Descriptor() ([]byte, []int) + func (*DeleteRoleForUserReq) ProtoMessage() + func (x *DeleteRoleForUserReq) GetRole() string + func (x *DeleteRoleForUserReq) GetUsername() string + func (x *DeleteRoleForUserReq) ProtoReflect() protoreflect.Message + func (x *DeleteRoleForUserReq) Reset() + func (x *DeleteRoleForUserReq) String() string + type DeleteRoleReq struct + Id int64 + func (*DeleteRoleReq) Descriptor() ([]byte, []int) + func (*DeleteRoleReq) ProtoMessage() + func (x *DeleteRoleReq) GetId() int64 + func (x *DeleteRoleReq) ProtoReflect() protoreflect.Message + func (x *DeleteRoleReq) Reset() + func (x *DeleteRoleReq) String() string + type DeleteRolesForUserReq struct + Username string + func (*DeleteRolesForUserReq) Descriptor() ([]byte, []int) + func (*DeleteRolesForUserReq) ProtoMessage() + func (x *DeleteRolesForUserReq) GetUsername() string + func (x *DeleteRolesForUserReq) ProtoReflect() protoreflect.Message + func (x *DeleteRolesForUserReq) Reset() + func (x *DeleteRolesForUserReq) String() string + type ErrorReason int32 + const ErrorReason_BAD_REQUEST + const ErrorReason_RECORD_ALREADY_EXISTS + const ErrorReason_RECORD_NOT_FOUND + const ErrorReason_SYSTEM_ERROR + func (ErrorReason) Descriptor() protoreflect.EnumDescriptor + func (ErrorReason) EnumDescriptor() ([]byte, []int) + func (ErrorReason) Type() protoreflect.EnumType + func (x ErrorReason) Enum() *ErrorReason + func (x ErrorReason) Number() protoreflect.EnumNumber + func (x ErrorReason) String() string + type GetApiListAllRes struct + List []*Api + func (*GetApiListAllRes) Descriptor() ([]byte, []int) + func (*GetApiListAllRes) ProtoMessage() + func (x *GetApiListAllRes) GetList() []*Api + func (x *GetApiListAllRes) ProtoReflect() protoreflect.Message + func (x *GetApiListAllRes) Reset() + func (x *GetApiListAllRes) String() string + type GetApiListPageRes struct + List []*Api + Total int64 + func (*GetApiListPageRes) Descriptor() ([]byte, []int) + func (*GetApiListPageRes) ProtoMessage() + func (x *GetApiListPageRes) GetList() []*Api + func (x *GetApiListPageRes) GetTotal() int64 + func (x *GetApiListPageRes) ProtoReflect() protoreflect.Message + func (x *GetApiListPageRes) Reset() + func (x *GetApiListPageRes) String() string + type GetApiListReq struct + Group string + Method string + Name string + Page int64 + PageSize int64 + Path string + func (*GetApiListReq) Descriptor() ([]byte, []int) + func (*GetApiListReq) ProtoMessage() + func (x *GetApiListReq) GetGroup() string + func (x *GetApiListReq) GetMethod() string + func (x *GetApiListReq) GetName() string + func (x *GetApiListReq) GetPage() int64 + func (x *GetApiListReq) GetPageSize() int64 + func (x *GetApiListReq) GetPath() string + func (x *GetApiListReq) ProtoReflect() protoreflect.Message + func (x *GetApiListReq) Reset() + func (x *GetApiListReq) String() string + type GetMenuTreeRes struct + List []*Menu + func (*GetMenuTreeRes) Descriptor() ([]byte, []int) + func (*GetMenuTreeRes) ProtoMessage() + func (x *GetMenuTreeRes) GetList() []*Menu + func (x *GetMenuTreeRes) ProtoReflect() protoreflect.Message + func (x *GetMenuTreeRes) Reset() + func (x *GetMenuTreeRes) String() string + type GetPoliciesRes struct + PolicyRules []*PolicyRules + func (*GetPoliciesRes) Descriptor() ([]byte, []int) + func (*GetPoliciesRes) ProtoMessage() + func (x *GetPoliciesRes) GetPolicyRules() []*PolicyRules + func (x *GetPoliciesRes) ProtoReflect() protoreflect.Message + func (x *GetPoliciesRes) Reset() + func (x *GetPoliciesRes) String() string + type GetRoleAllRes struct + List []*Role + func (*GetRoleAllRes) Descriptor() ([]byte, []int) + func (*GetRoleAllRes) ProtoMessage() + func (x *GetRoleAllRes) GetList() []*Role + func (x *GetRoleAllRes) ProtoReflect() protoreflect.Message + func (x *GetRoleAllRes) Reset() + func (x *GetRoleAllRes) String() string + type GetRoleListPageRes struct + List []*Role + Total int64 + func (*GetRoleListPageRes) Descriptor() ([]byte, []int) + func (*GetRoleListPageRes) ProtoMessage() + func (x *GetRoleListPageRes) GetList() []*Role + func (x *GetRoleListPageRes) GetTotal() int64 + func (x *GetRoleListPageRes) ProtoReflect() protoreflect.Message + func (x *GetRoleListPageRes) Reset() + func (x *GetRoleListPageRes) String() string + type GetRoleListReq struct + Name string + Page int64 + PageSize int64 + func (*GetRoleListReq) Descriptor() ([]byte, []int) + func (*GetRoleListReq) ProtoMessage() + func (x *GetRoleListReq) GetName() string + func (x *GetRoleListReq) GetPage() int64 + func (x *GetRoleListReq) GetPageSize() int64 + func (x *GetRoleListReq) ProtoReflect() protoreflect.Message + func (x *GetRoleListReq) Reset() + func (x *GetRoleListReq) String() string + type GetRoleMenuBtnReq struct + MenuId int64 + RoleId int64 + RoleName string + func (*GetRoleMenuBtnReq) Descriptor() ([]byte, []int) + func (*GetRoleMenuBtnReq) ProtoMessage() + func (x *GetRoleMenuBtnReq) GetMenuId() int64 + func (x *GetRoleMenuBtnReq) GetRoleId() int64 + func (x *GetRoleMenuBtnReq) GetRoleName() string + func (x *GetRoleMenuBtnReq) ProtoReflect() protoreflect.Message + func (x *GetRoleMenuBtnReq) Reset() + func (x *GetRoleMenuBtnReq) String() string + type GetRoleMenuBtnRes struct + List []*MenuBtn + func (*GetRoleMenuBtnRes) Descriptor() ([]byte, []int) + func (*GetRoleMenuBtnRes) ProtoMessage() + func (x *GetRoleMenuBtnRes) GetList() []*MenuBtn + func (x *GetRoleMenuBtnRes) ProtoReflect() protoreflect.Message + func (x *GetRoleMenuBtnRes) Reset() + func (x *GetRoleMenuBtnRes) String() string + type GetRolesForUserReq struct + Username string + func (*GetRolesForUserReq) Descriptor() ([]byte, []int) + func (*GetRolesForUserReq) ProtoMessage() + func (x *GetRolesForUserReq) GetUsername() string + func (x *GetRolesForUserReq) ProtoReflect() protoreflect.Message + func (x *GetRolesForUserReq) Reset() + func (x *GetRolesForUserReq) String() string + type GetRolesForUserRes struct + Roles []string + func (*GetRolesForUserRes) Descriptor() ([]byte, []int) + func (*GetRolesForUserRes) ProtoMessage() + func (x *GetRolesForUserRes) GetRoles() []string + func (x *GetRolesForUserRes) ProtoReflect() protoreflect.Message + func (x *GetRolesForUserRes) Reset() + func (x *GetRolesForUserRes) String() string + type GetUsersForRoleRes struct + Users []string + func (*GetUsersForRoleRes) Descriptor() ([]byte, []int) + func (*GetUsersForRoleRes) ProtoMessage() + func (x *GetUsersForRoleRes) GetUsers() []string + func (x *GetUsersForRoleRes) ProtoReflect() protoreflect.Message + func (x *GetUsersForRoleRes) Reset() + func (x *GetUsersForRoleRes) String() string + type IdReq struct + Id int64 + func (*IdReq) Descriptor() ([]byte, []int) + func (*IdReq) ProtoMessage() + func (x *IdReq) GetId() int64 + func (x *IdReq) ProtoReflect() protoreflect.Message + func (x *IdReq) Reset() + func (x *IdReq) String() string + type Menu struct + Children []*Menu + Component string + CreatedAt string + Hidden bool + Icon string + Id int64 + MenuBtns []*MenuBtn + Name string + ParentId int64 + ParentIds string + Path string + Sort int64 + Title string + UpdatedAt string + func (*Menu) Descriptor() ([]byte, []int) + func (*Menu) ProtoMessage() + func (x *Menu) GetChildren() []*Menu + func (x *Menu) GetComponent() string + func (x *Menu) GetCreatedAt() string + func (x *Menu) GetHidden() bool + func (x *Menu) GetIcon() string + func (x *Menu) GetId() int64 + func (x *Menu) GetMenuBtns() []*MenuBtn + func (x *Menu) GetName() string + func (x *Menu) GetParentId() int64 + func (x *Menu) GetParentIds() string + func (x *Menu) GetPath() string + func (x *Menu) GetSort() int64 + func (x *Menu) GetTitle() string + func (x *Menu) GetUpdatedAt() string + func (x *Menu) ProtoReflect() protoreflect.Message + func (x *Menu) Reset() + func (x *Menu) String() string + type MenuBtn struct + CreatedAt string + Description string + Id int64 + Identifier string + MenuId int64 + Name string + UpdatedAt string + func (*MenuBtn) Descriptor() ([]byte, []int) + func (*MenuBtn) ProtoMessage() + func (x *MenuBtn) GetCreatedAt() string + func (x *MenuBtn) GetDescription() string + func (x *MenuBtn) GetId() int64 + func (x *MenuBtn) GetIdentifier() string + func (x *MenuBtn) GetMenuId() int64 + func (x *MenuBtn) GetName() string + func (x *MenuBtn) GetUpdatedAt() string + func (x *MenuBtn) ProtoReflect() protoreflect.Message + func (x *MenuBtn) Reset() + func (x *MenuBtn) String() string + type PolicyRules struct + Method string + Path string + func (*PolicyRules) Descriptor() ([]byte, []int) + func (*PolicyRules) ProtoMessage() + func (x *PolicyRules) GetMethod() string + func (x *PolicyRules) GetPath() string + func (x *PolicyRules) ProtoReflect() protoreflect.Message + func (x *PolicyRules) Reset() + func (x *PolicyRules) String() string + type Role struct + CreatedAt string + Id int64 + Name string + UpdatedAt string + func (*Role) Descriptor() ([]byte, []int) + func (*Role) ProtoMessage() + func (x *Role) GetCreatedAt() string + func (x *Role) GetId() int64 + func (x *Role) GetName() string + func (x *Role) GetUpdatedAt() string + func (x *Role) ProtoReflect() protoreflect.Message + func (x *Role) Reset() + func (x *Role) String() string + type RoleNameReq struct + Role string + func (*RoleNameReq) Descriptor() ([]byte, []int) + func (*RoleNameReq) ProtoMessage() + func (x *RoleNameReq) GetRole() string + func (x *RoleNameReq) ProtoReflect() protoreflect.Message + func (x *RoleNameReq) Reset() + func (x *RoleNameReq) String() string + type SaveRoleMenuBtnReq struct + MenuBtnIds []int64 + MenuId int64 + RoleId int64 + func (*SaveRoleMenuBtnReq) Descriptor() ([]byte, []int) + func (*SaveRoleMenuBtnReq) ProtoMessage() + func (x *SaveRoleMenuBtnReq) GetMenuBtnIds() []int64 + func (x *SaveRoleMenuBtnReq) GetMenuId() int64 + func (x *SaveRoleMenuBtnReq) GetRoleId() int64 + func (x *SaveRoleMenuBtnReq) ProtoReflect() protoreflect.Message + func (x *SaveRoleMenuBtnReq) Reset() + func (x *SaveRoleMenuBtnReq) String() string + type SaveRoleMenuReq struct + MenuIds []int64 + RoleId int64 + func (*SaveRoleMenuReq) Descriptor() ([]byte, []int) + func (*SaveRoleMenuReq) ProtoMessage() + func (x *SaveRoleMenuReq) GetMenuIds() []int64 + func (x *SaveRoleMenuReq) GetRoleId() int64 + func (x *SaveRoleMenuReq) ProtoReflect() protoreflect.Message + func (x *SaveRoleMenuReq) Reset() + func (x *SaveRoleMenuReq) String() string + type SetRolesForUserReq struct + Roles []string + Username string + func (*SetRolesForUserReq) Descriptor() ([]byte, []int) + func (*SetRolesForUserReq) ProtoMessage() + func (x *SetRolesForUserReq) GetRoles() []string + func (x *SetRolesForUserReq) GetUsername() string + func (x *SetRolesForUserReq) ProtoReflect() protoreflect.Message + func (x *SetRolesForUserReq) Reset() + func (x *SetRolesForUserReq) String() string + type UnimplementedAuthorizationServiceServer struct + func (UnimplementedAuthorizationServiceServer) CheckAuthorization(context.Context, *CheckAuthorizationReq) (*emptypb.Empty, error) + func (UnimplementedAuthorizationServiceServer) CreateApi(context.Context, *CreateApiReq) (*Api, error) + func (UnimplementedAuthorizationServiceServer) CreateMenu(context.Context, *CreateMenuReq) (*Menu, error) + func (UnimplementedAuthorizationServiceServer) CreateRole(context.Context, *CreateRoleReq) (*Role, error) + func (UnimplementedAuthorizationServiceServer) DeleteApi(context.Context, *DeleteApiReq) (*emptypb.Empty, error) + func (UnimplementedAuthorizationServiceServer) DeleteMenu(context.Context, *IdReq) (*emptypb.Empty, error) + func (UnimplementedAuthorizationServiceServer) DeleteRole(context.Context, *DeleteRoleReq) (*emptypb.Empty, error) + func (UnimplementedAuthorizationServiceServer) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*emptypb.Empty, error) + func (UnimplementedAuthorizationServiceServer) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*emptypb.Empty, error) + func (UnimplementedAuthorizationServiceServer) GetApiList(context.Context, *GetApiListReq) (*GetApiListPageRes, error) + func (UnimplementedAuthorizationServiceServer) GetApiListAll(context.Context, *emptypb.Empty) (*GetApiListAllRes, error) + func (UnimplementedAuthorizationServiceServer) GetMenuAll(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error) + func (UnimplementedAuthorizationServiceServer) GetMenuTree(context.Context, *emptypb.Empty) (*GetMenuTreeRes, error) + func (UnimplementedAuthorizationServiceServer) GetPolicies(context.Context, *RoleNameReq) (*GetPoliciesRes, error) + func (UnimplementedAuthorizationServiceServer) GetRoleAll(context.Context, *emptypb.Empty) (*GetRoleAllRes, error) + func (UnimplementedAuthorizationServiceServer) GetRoleMenu(context.Context, *RoleNameReq) (*GetMenuTreeRes, error) + func (UnimplementedAuthorizationServiceServer) GetRoleMenuBtn(context.Context, *GetRoleMenuBtnReq) (*GetRoleMenuBtnRes, error) + func (UnimplementedAuthorizationServiceServer) GetRoleMenuTree(context.Context, *RoleNameReq) (*GetMenuTreeRes, error) + func (UnimplementedAuthorizationServiceServer) GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRes, error) + func (UnimplementedAuthorizationServiceServer) GetUsersForRole(context.Context, *RoleNameReq) (*GetUsersForRoleRes, error) + func (UnimplementedAuthorizationServiceServer) SaveRoleMenu(context.Context, *SaveRoleMenuReq) (*emptypb.Empty, error) + func (UnimplementedAuthorizationServiceServer) SaveRoleMenuBtn(context.Context, *SaveRoleMenuBtnReq) (*emptypb.Empty, error) + func (UnimplementedAuthorizationServiceServer) SetRolesForUser(context.Context, *SetRolesForUserReq) (*emptypb.Empty, error) + func (UnimplementedAuthorizationServiceServer) UpdateApi(context.Context, *UpdateApiReq) (*emptypb.Empty, error) + func (UnimplementedAuthorizationServiceServer) UpdateMenu(context.Context, *UpdateMenuReq) (*emptypb.Empty, error) + func (UnimplementedAuthorizationServiceServer) UpdatePolicies(context.Context, *UpdatePoliciesReq) (*emptypb.Empty, error) + func (UnimplementedAuthorizationServiceServer) UpdateRole(context.Context, *UpdateRoleReq) (*emptypb.Empty, error) + type UnsafeAuthorizationServiceServer interface + type UpdateApiReq struct + Group string + Id int64 + Method string + Name string + Path string + func (*UpdateApiReq) Descriptor() ([]byte, []int) + func (*UpdateApiReq) ProtoMessage() + func (x *UpdateApiReq) GetGroup() string + func (x *UpdateApiReq) GetId() int64 + func (x *UpdateApiReq) GetMethod() string + func (x *UpdateApiReq) GetName() string + func (x *UpdateApiReq) GetPath() string + func (x *UpdateApiReq) ProtoReflect() protoreflect.Message + func (x *UpdateApiReq) Reset() + func (x *UpdateApiReq) String() string + type UpdateMenuReq struct + Component string + Hidden bool + Icon string + Id int64 + MenuBtns []*MenuBtn + Name string + ParentId int64 + ParentIds string + Path string + Sort int64 + Title string + func (*UpdateMenuReq) Descriptor() ([]byte, []int) + func (*UpdateMenuReq) ProtoMessage() + func (x *UpdateMenuReq) GetComponent() string + func (x *UpdateMenuReq) GetHidden() bool + func (x *UpdateMenuReq) GetIcon() string + func (x *UpdateMenuReq) GetId() int64 + func (x *UpdateMenuReq) GetMenuBtns() []*MenuBtn + func (x *UpdateMenuReq) GetName() string + func (x *UpdateMenuReq) GetParentId() int64 + func (x *UpdateMenuReq) GetParentIds() string + func (x *UpdateMenuReq) GetPath() string + func (x *UpdateMenuReq) GetSort() int64 + func (x *UpdateMenuReq) GetTitle() string + func (x *UpdateMenuReq) ProtoReflect() protoreflect.Message + func (x *UpdateMenuReq) Reset() + func (x *UpdateMenuReq) String() string + type UpdatePoliciesReq struct + PolicyRules []*PolicyRules + Role string + func (*UpdatePoliciesReq) Descriptor() ([]byte, []int) + func (*UpdatePoliciesReq) ProtoMessage() + func (x *UpdatePoliciesReq) GetPolicyRules() []*PolicyRules + func (x *UpdatePoliciesReq) GetRole() string + func (x *UpdatePoliciesReq) ProtoReflect() protoreflect.Message + func (x *UpdatePoliciesReq) Reset() + func (x *UpdatePoliciesReq) String() string + type UpdateRoleReq struct + Id int64 + Name string + func (*UpdateRoleReq) Descriptor() ([]byte, []int) + func (*UpdateRoleReq) ProtoMessage() + func (x *UpdateRoleReq) GetId() int64 + func (x *UpdateRoleReq) GetName() string + func (x *UpdateRoleReq) ProtoReflect() protoreflect.Message + func (x *UpdateRoleReq) Reset() + func (x *UpdateRoleReq) String() string