Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer)
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type AddRoleRep
- func (*AddRoleRep) Descriptor() ([]byte, []int)deprecated
- func (x *AddRoleRep) GetRoleId() uint64
- func (x *AddRoleRep) GetRoleName() string
- func (*AddRoleRep) ProtoMessage()
- func (x *AddRoleRep) ProtoReflect() protoreflect.Message
- func (x *AddRoleRep) Reset()
- func (x *AddRoleRep) String() string
- func (m *AddRoleRep) Validate() error
- func (m *AddRoleRep) ValidateAll() error
- type AddRoleRepMultiError
- type AddRoleRepValidationError
- type AddRoleReq
- func (*AddRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddRoleReq) GetName() string
- func (*AddRoleReq) ProtoMessage()
- func (x *AddRoleReq) ProtoReflect() protoreflect.Message
- func (x *AddRoleReq) Reset()
- func (x *AddRoleReq) String() string
- func (m *AddRoleReq) Validate() error
- func (m *AddRoleReq) ValidateAll() error
- type AddRoleReqMultiError
- type AddRoleReqValidationError
- type AuthClient
- type AuthHTTPClient
- type AuthHTTPClientImpl
- func (c *AuthHTTPClientImpl) AddRole(ctx context.Context, in *AddRoleReq, opts ...http.CallOption) (*AddRoleRep, error)
- func (c *AuthHTTPClientImpl) AddRolesForUser(ctx context.Context, in *SetUserForRoleReq, opts ...http.CallOption) (*RoleStatus, error)
- func (c *AuthHTTPClientImpl) CheckAuth(ctx context.Context, in *CheckAuthReq, opts ...http.CallOption) (*RoleStatus, error)
- func (c *AuthHTTPClientImpl) DelRole(ctx context.Context, in *DelRoleReq, opts ...http.CallOption) (*RoleStatus, error)
- func (c *AuthHTTPClientImpl) DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...http.CallOption) (*RoleStatus, error)
- func (c *AuthHTTPClientImpl) DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...http.CallOption) (*RoleStatus, error)
- func (c *AuthHTTPClientImpl) EditRole(ctx context.Context, in *EditRoleReq, opts ...http.CallOption) (*RoleStatus, error)
- func (c *AuthHTTPClientImpl) FullRoleList(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*FullRoleListRep, error)
- func (c *AuthHTTPClientImpl) GetRolePolicies(ctx context.Context, in *GetRolePoliciesReq, opts ...http.CallOption) (*GetRolePoliciesRep, error)
- func (c *AuthHTTPClientImpl) GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...http.CallOption) (*GetRolesForUserRep, error)
- func (c *AuthHTTPClientImpl) GetUsersForRole(ctx context.Context, in *GetUsersForRoleReq, opts ...http.CallOption) (*GetUsersForRoleRep, error)
- func (c *AuthHTTPClientImpl) PageRoleList(ctx context.Context, in *PageRoleListReq, opts ...http.CallOption) (*PageRoleListRep, error)
- func (c *AuthHTTPClientImpl) SetRolePolicies(ctx context.Context, in *SetRolePoliciesReq, opts ...http.CallOption) (*RoleStatus, error)
- type AuthHTTPServer
- type AuthServer
- type CheckAuthReq
- func (*CheckAuthReq) Descriptor() ([]byte, []int)deprecated
- func (x *CheckAuthReq) GetMod() string
- func (x *CheckAuthReq) GetRole() string
- func (x *CheckAuthReq) GetUrl() string
- func (*CheckAuthReq) ProtoMessage()
- func (x *CheckAuthReq) ProtoReflect() protoreflect.Message
- func (x *CheckAuthReq) Reset()
- func (x *CheckAuthReq) String() string
- func (m *CheckAuthReq) Validate() error
- func (m *CheckAuthReq) ValidateAll() error
- type CheckAuthReqMultiError
- type CheckAuthReqValidationError
- func (e CheckAuthReqValidationError) Cause() error
- func (e CheckAuthReqValidationError) Error() string
- func (e CheckAuthReqValidationError) ErrorName() string
- func (e CheckAuthReqValidationError) Field() string
- func (e CheckAuthReqValidationError) Key() bool
- func (e CheckAuthReqValidationError) Reason() string
- type DelRoleReq
- func (*DelRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *DelRoleReq) GetRoleId() uint64
- func (*DelRoleReq) ProtoMessage()
- func (x *DelRoleReq) ProtoReflect() protoreflect.Message
- func (x *DelRoleReq) Reset()
- func (x *DelRoleReq) String() string
- func (m *DelRoleReq) Validate() error
- func (m *DelRoleReq) ValidateAll() error
- type DelRoleReqMultiError
- type DelRoleReqValidationError
- type DeleteRoleForUserReq
- func (*DeleteRoleForUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleForUserReq) GetRole() string
- func (x *DeleteRoleForUserReq) GetUsername() string
- func (*DeleteRoleForUserReq) ProtoMessage()
- func (x *DeleteRoleForUserReq) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleForUserReq) Reset()
- func (x *DeleteRoleForUserReq) String() string
- func (m *DeleteRoleForUserReq) Validate() error
- func (m *DeleteRoleForUserReq) ValidateAll() error
- type DeleteRoleForUserReqMultiError
- type DeleteRoleForUserReqValidationError
- func (e DeleteRoleForUserReqValidationError) Cause() error
- func (e DeleteRoleForUserReqValidationError) Error() string
- func (e DeleteRoleForUserReqValidationError) ErrorName() string
- func (e DeleteRoleForUserReqValidationError) Field() string
- func (e DeleteRoleForUserReqValidationError) Key() bool
- func (e DeleteRoleForUserReqValidationError) Reason() string
- type DeleteRolesForUserReq
- func (*DeleteRolesForUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRolesForUserReq) GetUsername() string
- func (*DeleteRolesForUserReq) ProtoMessage()
- func (x *DeleteRolesForUserReq) ProtoReflect() protoreflect.Message
- func (x *DeleteRolesForUserReq) Reset()
- func (x *DeleteRolesForUserReq) String() string
- func (m *DeleteRolesForUserReq) Validate() error
- func (m *DeleteRolesForUserReq) ValidateAll() error
- type DeleteRolesForUserReqMultiError
- type DeleteRolesForUserReqValidationError
- func (e DeleteRolesForUserReqValidationError) Cause() error
- func (e DeleteRolesForUserReqValidationError) Error() string
- func (e DeleteRolesForUserReqValidationError) ErrorName() string
- func (e DeleteRolesForUserReqValidationError) Field() string
- func (e DeleteRolesForUserReqValidationError) Key() bool
- func (e DeleteRolesForUserReqValidationError) Reason() string
- type EditRoleReq
- func (*EditRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *EditRoleReq) GetRoleId() uint64
- func (x *EditRoleReq) GetRoleName() string
- func (*EditRoleReq) ProtoMessage()
- func (x *EditRoleReq) ProtoReflect() protoreflect.Message
- func (x *EditRoleReq) Reset()
- func (x *EditRoleReq) String() string
- func (m *EditRoleReq) Validate() error
- func (m *EditRoleReq) ValidateAll() error
- type EditRoleReqMultiError
- type EditRoleReqValidationError
- func (e EditRoleReqValidationError) Cause() error
- func (e EditRoleReqValidationError) Error() string
- func (e EditRoleReqValidationError) ErrorName() string
- func (e EditRoleReqValidationError) Field() string
- func (e EditRoleReqValidationError) Key() bool
- func (e EditRoleReqValidationError) Reason() string
- type FullRoleListRep
- func (*FullRoleListRep) Descriptor() ([]byte, []int)deprecated
- func (x *FullRoleListRep) GetList() []*Role
- func (*FullRoleListRep) ProtoMessage()
- func (x *FullRoleListRep) ProtoReflect() protoreflect.Message
- func (x *FullRoleListRep) Reset()
- func (x *FullRoleListRep) String() string
- func (m *FullRoleListRep) Validate() error
- func (m *FullRoleListRep) ValidateAll() error
- type FullRoleListRepMultiError
- type FullRoleListRepValidationError
- func (e FullRoleListRepValidationError) Cause() error
- func (e FullRoleListRepValidationError) Error() string
- func (e FullRoleListRepValidationError) ErrorName() string
- func (e FullRoleListRepValidationError) Field() string
- func (e FullRoleListRepValidationError) Key() bool
- func (e FullRoleListRepValidationError) Reason() string
- type GetRolePoliciesRep
- func (*GetRolePoliciesRep) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolePoliciesRep) GetPolicyRules() []*PolicyRules
- func (*GetRolePoliciesRep) ProtoMessage()
- func (x *GetRolePoliciesRep) ProtoReflect() protoreflect.Message
- func (x *GetRolePoliciesRep) Reset()
- func (x *GetRolePoliciesRep) String() string
- func (m *GetRolePoliciesRep) Validate() error
- func (m *GetRolePoliciesRep) ValidateAll() error
- type GetRolePoliciesRepMultiError
- type GetRolePoliciesRepValidationError
- func (e GetRolePoliciesRepValidationError) Cause() error
- func (e GetRolePoliciesRepValidationError) Error() string
- func (e GetRolePoliciesRepValidationError) ErrorName() string
- func (e GetRolePoliciesRepValidationError) Field() string
- func (e GetRolePoliciesRepValidationError) Key() bool
- func (e GetRolePoliciesRepValidationError) Reason() string
- type GetRolePoliciesReq
- func (*GetRolePoliciesReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolePoliciesReq) GetRole() string
- func (*GetRolePoliciesReq) ProtoMessage()
- func (x *GetRolePoliciesReq) ProtoReflect() protoreflect.Message
- func (x *GetRolePoliciesReq) Reset()
- func (x *GetRolePoliciesReq) String() string
- func (m *GetRolePoliciesReq) Validate() error
- func (m *GetRolePoliciesReq) ValidateAll() error
- type GetRolePoliciesReqMultiError
- type GetRolePoliciesReqValidationError
- func (e GetRolePoliciesReqValidationError) Cause() error
- func (e GetRolePoliciesReqValidationError) Error() string
- func (e GetRolePoliciesReqValidationError) ErrorName() string
- func (e GetRolePoliciesReqValidationError) Field() string
- func (e GetRolePoliciesReqValidationError) Key() bool
- func (e GetRolePoliciesReqValidationError) Reason() string
- type GetRolesForUserRep
- func (*GetRolesForUserRep) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolesForUserRep) GetRoles() []string
- func (*GetRolesForUserRep) ProtoMessage()
- func (x *GetRolesForUserRep) ProtoReflect() protoreflect.Message
- func (x *GetRolesForUserRep) Reset()
- func (x *GetRolesForUserRep) String() string
- func (m *GetRolesForUserRep) Validate() error
- func (m *GetRolesForUserRep) ValidateAll() error
- type GetRolesForUserRepMultiError
- type GetRolesForUserRepValidationError
- func (e GetRolesForUserRepValidationError) Cause() error
- func (e GetRolesForUserRepValidationError) Error() string
- func (e GetRolesForUserRepValidationError) ErrorName() string
- func (e GetRolesForUserRepValidationError) Field() string
- func (e GetRolesForUserRepValidationError) Key() bool
- func (e GetRolesForUserRepValidationError) Reason() string
- type GetRolesForUserReq
- func (*GetRolesForUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolesForUserReq) GetUsername() string
- func (*GetRolesForUserReq) ProtoMessage()
- func (x *GetRolesForUserReq) ProtoReflect() protoreflect.Message
- func (x *GetRolesForUserReq) Reset()
- func (x *GetRolesForUserReq) String() string
- func (m *GetRolesForUserReq) Validate() error
- func (m *GetRolesForUserReq) ValidateAll() error
- type GetRolesForUserReqMultiError
- type GetRolesForUserReqValidationError
- func (e GetRolesForUserReqValidationError) Cause() error
- func (e GetRolesForUserReqValidationError) Error() string
- func (e GetRolesForUserReqValidationError) ErrorName() string
- func (e GetRolesForUserReqValidationError) Field() string
- func (e GetRolesForUserReqValidationError) Key() bool
- func (e GetRolesForUserReqValidationError) Reason() string
- type GetUsersForRoleRep
- func (*GetUsersForRoleRep) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersForRoleRep) GetUsers() []string
- func (*GetUsersForRoleRep) ProtoMessage()
- func (x *GetUsersForRoleRep) ProtoReflect() protoreflect.Message
- func (x *GetUsersForRoleRep) Reset()
- func (x *GetUsersForRoleRep) String() string
- func (m *GetUsersForRoleRep) Validate() error
- func (m *GetUsersForRoleRep) ValidateAll() error
- type GetUsersForRoleRepMultiError
- type GetUsersForRoleRepValidationError
- func (e GetUsersForRoleRepValidationError) Cause() error
- func (e GetUsersForRoleRepValidationError) Error() string
- func (e GetUsersForRoleRepValidationError) ErrorName() string
- func (e GetUsersForRoleRepValidationError) Field() string
- func (e GetUsersForRoleRepValidationError) Key() bool
- func (e GetUsersForRoleRepValidationError) Reason() string
- type GetUsersForRoleReq
- func (*GetUsersForRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersForRoleReq) GetRole() string
- func (*GetUsersForRoleReq) ProtoMessage()
- func (x *GetUsersForRoleReq) ProtoReflect() protoreflect.Message
- func (x *GetUsersForRoleReq) Reset()
- func (x *GetUsersForRoleReq) String() string
- func (m *GetUsersForRoleReq) Validate() error
- func (m *GetUsersForRoleReq) ValidateAll() error
- type GetUsersForRoleReqMultiError
- type GetUsersForRoleReqValidationError
- func (e GetUsersForRoleReqValidationError) Cause() error
- func (e GetUsersForRoleReqValidationError) Error() string
- func (e GetUsersForRoleReqValidationError) ErrorName() string
- func (e GetUsersForRoleReqValidationError) Field() string
- func (e GetUsersForRoleReqValidationError) Key() bool
- func (e GetUsersForRoleReqValidationError) Reason() string
- type PageRoleListRep
- func (*PageRoleListRep) Descriptor() ([]byte, []int)deprecated
- func (x *PageRoleListRep) GetList() []*Role
- func (x *PageRoleListRep) GetTotal() uint64
- func (*PageRoleListRep) ProtoMessage()
- func (x *PageRoleListRep) ProtoReflect() protoreflect.Message
- func (x *PageRoleListRep) Reset()
- func (x *PageRoleListRep) String() string
- func (m *PageRoleListRep) Validate() error
- func (m *PageRoleListRep) ValidateAll() error
- type PageRoleListRepMultiError
- type PageRoleListRepValidationError
- func (e PageRoleListRepValidationError) Cause() error
- func (e PageRoleListRepValidationError) Error() string
- func (e PageRoleListRepValidationError) ErrorName() string
- func (e PageRoleListRepValidationError) Field() string
- func (e PageRoleListRepValidationError) Key() bool
- func (e PageRoleListRepValidationError) Reason() string
- type PageRoleListReq
- func (*PageRoleListReq) Descriptor() ([]byte, []int)deprecated
- func (x *PageRoleListReq) GetPage() uint64
- func (x *PageRoleListReq) GetPageSize() uint64
- func (x *PageRoleListReq) GetRoleName() string
- func (*PageRoleListReq) ProtoMessage()
- func (x *PageRoleListReq) ProtoReflect() protoreflect.Message
- func (x *PageRoleListReq) Reset()
- func (x *PageRoleListReq) String() string
- func (m *PageRoleListReq) Validate() error
- func (m *PageRoleListReq) ValidateAll() error
- type PageRoleListReqMultiError
- type PageRoleListReqValidationError
- func (e PageRoleListReqValidationError) Cause() error
- func (e PageRoleListReqValidationError) Error() string
- func (e PageRoleListReqValidationError) ErrorName() string
- func (e PageRoleListReqValidationError) Field() string
- func (e PageRoleListReqValidationError) Key() bool
- func (e PageRoleListReqValidationError) Reason() string
- type PolicyRules
- func (*PolicyRules) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyRules) GetMethod() string
- func (x *PolicyRules) GetPath() string
- func (*PolicyRules) ProtoMessage()
- func (x *PolicyRules) ProtoReflect() protoreflect.Message
- func (x *PolicyRules) Reset()
- func (x *PolicyRules) String() string
- func (m *PolicyRules) Validate() error
- func (m *PolicyRules) ValidateAll() error
- type PolicyRulesMultiError
- type PolicyRulesValidationError
- func (e PolicyRulesValidationError) Cause() error
- func (e PolicyRulesValidationError) Error() string
- func (e PolicyRulesValidationError) ErrorName() string
- func (e PolicyRulesValidationError) Field() string
- func (e PolicyRulesValidationError) Key() bool
- func (e PolicyRulesValidationError) Reason() string
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetCreatedAt() string
- func (x *Role) GetName() string
- func (x *Role) GetRoleId() uint64
- func (x *Role) GetUpdatedAt() string
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- func (m *Role) Validate() error
- func (m *Role) ValidateAll() error
- type RoleMultiError
- type RoleStatus
- func (*RoleStatus) Descriptor() ([]byte, []int)deprecated
- func (x *RoleStatus) GetSuccess() bool
- func (*RoleStatus) ProtoMessage()
- func (x *RoleStatus) ProtoReflect() protoreflect.Message
- func (x *RoleStatus) Reset()
- func (x *RoleStatus) String() string
- func (m *RoleStatus) Validate() error
- func (m *RoleStatus) ValidateAll() error
- type RoleStatusMultiError
- type RoleStatusValidationError
- type RoleValidationError
- type SetRolePoliciesReq
- func (*SetRolePoliciesReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetRolePoliciesReq) GetPolicyRules() []*PolicyRules
- func (x *SetRolePoliciesReq) GetRole() string
- func (*SetRolePoliciesReq) ProtoMessage()
- func (x *SetRolePoliciesReq) ProtoReflect() protoreflect.Message
- func (x *SetRolePoliciesReq) Reset()
- func (x *SetRolePoliciesReq) String() string
- func (m *SetRolePoliciesReq) Validate() error
- func (m *SetRolePoliciesReq) ValidateAll() error
- type SetRolePoliciesReqMultiError
- type SetRolePoliciesReqValidationError
- func (e SetRolePoliciesReqValidationError) Cause() error
- func (e SetRolePoliciesReqValidationError) Error() string
- func (e SetRolePoliciesReqValidationError) ErrorName() string
- func (e SetRolePoliciesReqValidationError) Field() string
- func (e SetRolePoliciesReqValidationError) Key() bool
- func (e SetRolePoliciesReqValidationError) Reason() string
- type SetUserForRoleReq
- func (*SetUserForRoleReq) Descriptor() ([]byte, []int)deprecated
- func (x *SetUserForRoleReq) GetRoles() []string
- func (x *SetUserForRoleReq) GetUsername() string
- func (*SetUserForRoleReq) ProtoMessage()
- func (x *SetUserForRoleReq) ProtoReflect() protoreflect.Message
- func (x *SetUserForRoleReq) Reset()
- func (x *SetUserForRoleReq) String() string
- func (m *SetUserForRoleReq) Validate() error
- func (m *SetUserForRoleReq) ValidateAll() error
- type SetUserForRoleReqMultiError
- type SetUserForRoleReqValidationError
- func (e SetUserForRoleReqValidationError) Cause() error
- func (e SetUserForRoleReqValidationError) Error() string
- func (e SetUserForRoleReqValidationError) ErrorName() string
- func (e SetUserForRoleReqValidationError) Field() string
- func (e SetUserForRoleReqValidationError) Key() bool
- func (e SetUserForRoleReqValidationError) Reason() string
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) AddRole(context.Context, *AddRoleReq) (*AddRoleRep, error)
- func (UnimplementedAuthServer) AddRolesForUser(context.Context, *SetUserForRoleReq) (*RoleStatus, error)
- func (UnimplementedAuthServer) CheckAuth(context.Context, *CheckAuthReq) (*RoleStatus, error)
- func (UnimplementedAuthServer) DelRole(context.Context, *DelRoleReq) (*RoleStatus, error)
- func (UnimplementedAuthServer) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*RoleStatus, error)
- func (UnimplementedAuthServer) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*RoleStatus, error)
- func (UnimplementedAuthServer) EditRole(context.Context, *EditRoleReq) (*RoleStatus, error)
- func (UnimplementedAuthServer) FullRoleList(context.Context, *emptypb.Empty) (*FullRoleListRep, error)
- func (UnimplementedAuthServer) GetRolePolicies(context.Context, *GetRolePoliciesReq) (*GetRolePoliciesRep, error)
- func (UnimplementedAuthServer) GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRep, error)
- func (UnimplementedAuthServer) GetUsersForRole(context.Context, *GetUsersForRoleReq) (*GetUsersForRoleRep, error)
- func (UnimplementedAuthServer) PageRoleList(context.Context, *PageRoleListReq) (*PageRoleListRep, error)
- func (UnimplementedAuthServer) SetRolePolicies(context.Context, *SetRolePoliciesReq) (*RoleStatus, error)
- type UnsafeAuthServer
Constants ¶
const ( Auth_AddRole_FullMethodName = "/api.auth.v1.Auth/AddRole" Auth_EditRole_FullMethodName = "/api.auth.v1.Auth/EditRole" Auth_DelRole_FullMethodName = "/api.auth.v1.Auth/DelRole" Auth_FullRoleList_FullMethodName = "/api.auth.v1.Auth/FullRoleList" Auth_PageRoleList_FullMethodName = "/api.auth.v1.Auth/PageRoleList" Auth_AddRolesForUser_FullMethodName = "/api.auth.v1.Auth/AddRolesForUser" Auth_GetRolesForUser_FullMethodName = "/api.auth.v1.Auth/GetRolesForUser" Auth_GetUsersForRole_FullMethodName = "/api.auth.v1.Auth/GetUsersForRole" Auth_DeleteRoleForUser_FullMethodName = "/api.auth.v1.Auth/DeleteRoleForUser" Auth_DeleteRolesForUser_FullMethodName = "/api.auth.v1.Auth/DeleteRolesForUser" Auth_GetRolePolicies_FullMethodName = "/api.auth.v1.Auth/GetRolePolicies" Auth_SetRolePolicies_FullMethodName = "/api.auth.v1.Auth/SetRolePolicies" Auth_CheckAuth_FullMethodName = "/api.auth.v1.Auth/CheckAuth" )
const OperationAuthAddRole = "/api.auth.v1.Auth/AddRole"
const OperationAuthAddRolesForUser = "/api.auth.v1.Auth/AddRolesForUser"
const OperationAuthCheckAuth = "/api.auth.v1.Auth/CheckAuth"
const OperationAuthDelRole = "/api.auth.v1.Auth/DelRole"
const OperationAuthDeleteRoleForUser = "/api.auth.v1.Auth/DeleteRoleForUser"
const OperationAuthDeleteRolesForUser = "/api.auth.v1.Auth/DeleteRolesForUser"
const OperationAuthEditRole = "/api.auth.v1.Auth/EditRole"
const OperationAuthFullRoleList = "/api.auth.v1.Auth/FullRoleList"
const OperationAuthGetRolePolicies = "/api.auth.v1.Auth/GetRolePolicies"
const OperationAuthGetRolesForUser = "/api.auth.v1.Auth/GetRolesForUser"
const OperationAuthGetUsersForRole = "/api.auth.v1.Auth/GetUsersForRole"
const OperationAuthPageRoleList = "/api.auth.v1.Auth/PageRoleList"
const OperationAuthSetRolePolicies = "/api.auth.v1.Auth/SetRolePolicies"
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.auth.v1.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddRole", Handler: _Auth_AddRole_Handler, }, { MethodName: "EditRole", Handler: _Auth_EditRole_Handler, }, { MethodName: "DelRole", Handler: _Auth_DelRole_Handler, }, { MethodName: "FullRoleList", Handler: _Auth_FullRoleList_Handler, }, { MethodName: "PageRoleList", Handler: _Auth_PageRoleList_Handler, }, { MethodName: "AddRolesForUser", Handler: _Auth_AddRolesForUser_Handler, }, { MethodName: "GetRolesForUser", Handler: _Auth_GetRolesForUser_Handler, }, { MethodName: "GetUsersForRole", Handler: _Auth_GetUsersForRole_Handler, }, { MethodName: "DeleteRoleForUser", Handler: _Auth_DeleteRoleForUser_Handler, }, { MethodName: "DeleteRolesForUser", Handler: _Auth_DeleteRolesForUser_Handler, }, { MethodName: "GetRolePolicies", Handler: _Auth_GetRolePolicies_Handler, }, { MethodName: "SetRolePolicies", Handler: _Auth_SetRolePolicies_Handler, }, { MethodName: "CheckAuth", Handler: _Auth_CheckAuth_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth/v1/auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_auth_v1_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthHTTPServer ¶
func RegisterAuthHTTPServer(s *http.Server, srv AuthHTTPServer)
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
Types ¶
type AddRoleRep ¶
type AddRoleRep struct { // 角色Id RoleId uint64 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"` // 角色名称 RoleName string `protobuf:"bytes,2,opt,name=roleName,proto3" json:"roleName,omitempty"` // contains filtered or unexported fields }
添加角色回复
func (*AddRoleRep) Descriptor
deprecated
func (*AddRoleRep) Descriptor() ([]byte, []int)
Deprecated: Use AddRoleRep.ProtoReflect.Descriptor instead.
func (*AddRoleRep) GetRoleId ¶
func (x *AddRoleRep) GetRoleId() uint64
func (*AddRoleRep) GetRoleName ¶
func (x *AddRoleRep) GetRoleName() string
func (*AddRoleRep) ProtoMessage ¶
func (*AddRoleRep) ProtoMessage()
func (*AddRoleRep) ProtoReflect ¶
func (x *AddRoleRep) ProtoReflect() protoreflect.Message
func (*AddRoleRep) Reset ¶
func (x *AddRoleRep) Reset()
func (*AddRoleRep) String ¶
func (x *AddRoleRep) String() string
func (*AddRoleRep) Validate ¶
func (m *AddRoleRep) Validate() error
Validate checks the field values on AddRoleRep with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AddRoleRep) ValidateAll ¶
func (m *AddRoleRep) ValidateAll() error
ValidateAll checks the field values on AddRoleRep with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddRoleRepMultiError, or nil if none found.
type AddRoleRepMultiError ¶
type AddRoleRepMultiError []error
AddRoleRepMultiError is an error wrapping multiple validation errors returned by AddRoleRep.ValidateAll() if the designated constraints aren't met.
func (AddRoleRepMultiError) AllErrors ¶
func (m AddRoleRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddRoleRepMultiError) Error ¶
func (m AddRoleRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddRoleRepValidationError ¶
type AddRoleRepValidationError struct {
// contains filtered or unexported fields
}
AddRoleRepValidationError is the validation error returned by AddRoleRep.Validate if the designated constraints aren't met.
func (AddRoleRepValidationError) Cause ¶
func (e AddRoleRepValidationError) Cause() error
Cause function returns cause value.
func (AddRoleRepValidationError) Error ¶
func (e AddRoleRepValidationError) Error() string
Error satisfies the builtin error interface
func (AddRoleRepValidationError) ErrorName ¶
func (e AddRoleRepValidationError) ErrorName() string
ErrorName returns error name.
func (AddRoleRepValidationError) Field ¶
func (e AddRoleRepValidationError) Field() string
Field function returns field value.
func (AddRoleRepValidationError) Key ¶
func (e AddRoleRepValidationError) Key() bool
Key function returns key value.
func (AddRoleRepValidationError) Reason ¶
func (e AddRoleRepValidationError) Reason() string
Reason function returns reason value.
type AddRoleReq ¶
type AddRoleReq struct { // 名称 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
添加角色
func (*AddRoleReq) Descriptor
deprecated
func (*AddRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use AddRoleReq.ProtoReflect.Descriptor instead.
func (*AddRoleReq) GetName ¶
func (x *AddRoleReq) GetName() string
func (*AddRoleReq) ProtoMessage ¶
func (*AddRoleReq) ProtoMessage()
func (*AddRoleReq) ProtoReflect ¶
func (x *AddRoleReq) ProtoReflect() protoreflect.Message
func (*AddRoleReq) Reset ¶
func (x *AddRoleReq) Reset()
func (*AddRoleReq) String ¶
func (x *AddRoleReq) String() string
func (*AddRoleReq) Validate ¶
func (m *AddRoleReq) Validate() error
Validate checks the field values on AddRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AddRoleReq) ValidateAll ¶
func (m *AddRoleReq) ValidateAll() error
ValidateAll checks the field values on AddRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddRoleReqMultiError, or nil if none found.
type AddRoleReqMultiError ¶
type AddRoleReqMultiError []error
AddRoleReqMultiError is an error wrapping multiple validation errors returned by AddRoleReq.ValidateAll() if the designated constraints aren't met.
func (AddRoleReqMultiError) AllErrors ¶
func (m AddRoleReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddRoleReqMultiError) Error ¶
func (m AddRoleReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddRoleReqValidationError ¶
type AddRoleReqValidationError struct {
// contains filtered or unexported fields
}
AddRoleReqValidationError is the validation error returned by AddRoleReq.Validate if the designated constraints aren't met.
func (AddRoleReqValidationError) Cause ¶
func (e AddRoleReqValidationError) Cause() error
Cause function returns cause value.
func (AddRoleReqValidationError) Error ¶
func (e AddRoleReqValidationError) Error() string
Error satisfies the builtin error interface
func (AddRoleReqValidationError) ErrorName ¶
func (e AddRoleReqValidationError) ErrorName() string
ErrorName returns error name.
func (AddRoleReqValidationError) Field ¶
func (e AddRoleReqValidationError) Field() string
Field function returns field value.
func (AddRoleReqValidationError) Key ¶
func (e AddRoleReqValidationError) Key() bool
Key function returns key value.
func (AddRoleReqValidationError) Reason ¶
func (e AddRoleReqValidationError) Reason() string
Reason function returns reason value.
type AuthClient ¶
type AuthClient interface { // 添加角色 AddRole(ctx context.Context, in *AddRoleReq, opts ...grpc.CallOption) (*AddRoleRep, error) // 编辑角色 EditRole(ctx context.Context, in *EditRoleReq, opts ...grpc.CallOption) (*RoleStatus, error) // 删除角色 DelRole(ctx context.Context, in *DelRoleReq, opts ...grpc.CallOption) (*RoleStatus, error) // 获取角色列表(完整) FullRoleList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FullRoleListRep, error) // 获取角色列表(分页) PageRoleList(ctx context.Context, in *PageRoleListReq, opts ...grpc.CallOption) (*PageRoleListRep, error) // 给用户设置角色 AddRolesForUser(ctx context.Context, in *SetUserForRoleReq, opts ...grpc.CallOption) (*RoleStatus, error) // 获取用户角色 GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...grpc.CallOption) (*GetRolesForUserRep, error) // 获取角色有那些用户 GetUsersForRole(ctx context.Context, in *GetUsersForRoleReq, opts ...grpc.CallOption) (*GetUsersForRoleRep, error) // 删除单个用户角色(如果需要删除单个用户的某个角色用这个) DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...grpc.CallOption) (*RoleStatus, error) // 删除多个用户角色(删除传递用户的所有角色) DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...grpc.CallOption) (*RoleStatus, error) // 获取角色有那些权限 GetRolePolicies(ctx context.Context, in *GetRolePoliciesReq, opts ...grpc.CallOption) (*GetRolePoliciesRep, error) // 设置角色权限 SetRolePolicies(ctx context.Context, in *SetRolePoliciesReq, opts ...grpc.CallOption) (*RoleStatus, error) // 检查权限 CheckAuth(ctx context.Context, in *CheckAuthReq, opts ...grpc.CallOption) (*RoleStatus, error) }
AuthClient is the client API for Auth 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 NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthHTTPClient ¶
type AuthHTTPClient interface { AddRole(ctx context.Context, req *AddRoleReq, opts ...http.CallOption) (rsp *AddRoleRep, err error) AddRolesForUser(ctx context.Context, req *SetUserForRoleReq, opts ...http.CallOption) (rsp *RoleStatus, err error) CheckAuth(ctx context.Context, req *CheckAuthReq, opts ...http.CallOption) (rsp *RoleStatus, err error) DelRole(ctx context.Context, req *DelRoleReq, opts ...http.CallOption) (rsp *RoleStatus, err error) DeleteRoleForUser(ctx context.Context, req *DeleteRoleForUserReq, opts ...http.CallOption) (rsp *RoleStatus, err error) DeleteRolesForUser(ctx context.Context, req *DeleteRolesForUserReq, opts ...http.CallOption) (rsp *RoleStatus, err error) EditRole(ctx context.Context, req *EditRoleReq, opts ...http.CallOption) (rsp *RoleStatus, err error) FullRoleList(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *FullRoleListRep, err error) GetRolePolicies(ctx context.Context, req *GetRolePoliciesReq, opts ...http.CallOption) (rsp *GetRolePoliciesRep, err error) GetRolesForUser(ctx context.Context, req *GetRolesForUserReq, opts ...http.CallOption) (rsp *GetRolesForUserRep, err error) GetUsersForRole(ctx context.Context, req *GetUsersForRoleReq, opts ...http.CallOption) (rsp *GetUsersForRoleRep, err error) PageRoleList(ctx context.Context, req *PageRoleListReq, opts ...http.CallOption) (rsp *PageRoleListRep, err error) SetRolePolicies(ctx context.Context, req *SetRolePoliciesReq, opts ...http.CallOption) (rsp *RoleStatus, err error) }
func NewAuthHTTPClient ¶
func NewAuthHTTPClient(client *http.Client) AuthHTTPClient
type AuthHTTPClientImpl ¶
type AuthHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AuthHTTPClientImpl) AddRole ¶
func (c *AuthHTTPClientImpl) AddRole(ctx context.Context, in *AddRoleReq, opts ...http.CallOption) (*AddRoleRep, error)
func (*AuthHTTPClientImpl) AddRolesForUser ¶
func (c *AuthHTTPClientImpl) AddRolesForUser(ctx context.Context, in *SetUserForRoleReq, opts ...http.CallOption) (*RoleStatus, error)
func (*AuthHTTPClientImpl) CheckAuth ¶
func (c *AuthHTTPClientImpl) CheckAuth(ctx context.Context, in *CheckAuthReq, opts ...http.CallOption) (*RoleStatus, error)
func (*AuthHTTPClientImpl) DelRole ¶
func (c *AuthHTTPClientImpl) DelRole(ctx context.Context, in *DelRoleReq, opts ...http.CallOption) (*RoleStatus, error)
func (*AuthHTTPClientImpl) DeleteRoleForUser ¶
func (c *AuthHTTPClientImpl) DeleteRoleForUser(ctx context.Context, in *DeleteRoleForUserReq, opts ...http.CallOption) (*RoleStatus, error)
func (*AuthHTTPClientImpl) DeleteRolesForUser ¶
func (c *AuthHTTPClientImpl) DeleteRolesForUser(ctx context.Context, in *DeleteRolesForUserReq, opts ...http.CallOption) (*RoleStatus, error)
func (*AuthHTTPClientImpl) EditRole ¶
func (c *AuthHTTPClientImpl) EditRole(ctx context.Context, in *EditRoleReq, opts ...http.CallOption) (*RoleStatus, error)
func (*AuthHTTPClientImpl) FullRoleList ¶
func (c *AuthHTTPClientImpl) FullRoleList(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*FullRoleListRep, error)
func (*AuthHTTPClientImpl) GetRolePolicies ¶
func (c *AuthHTTPClientImpl) GetRolePolicies(ctx context.Context, in *GetRolePoliciesReq, opts ...http.CallOption) (*GetRolePoliciesRep, error)
func (*AuthHTTPClientImpl) GetRolesForUser ¶
func (c *AuthHTTPClientImpl) GetRolesForUser(ctx context.Context, in *GetRolesForUserReq, opts ...http.CallOption) (*GetRolesForUserRep, error)
func (*AuthHTTPClientImpl) GetUsersForRole ¶
func (c *AuthHTTPClientImpl) GetUsersForRole(ctx context.Context, in *GetUsersForRoleReq, opts ...http.CallOption) (*GetUsersForRoleRep, error)
func (*AuthHTTPClientImpl) PageRoleList ¶
func (c *AuthHTTPClientImpl) PageRoleList(ctx context.Context, in *PageRoleListReq, opts ...http.CallOption) (*PageRoleListRep, error)
func (*AuthHTTPClientImpl) SetRolePolicies ¶
func (c *AuthHTTPClientImpl) SetRolePolicies(ctx context.Context, in *SetRolePoliciesReq, opts ...http.CallOption) (*RoleStatus, error)
type AuthHTTPServer ¶
type AuthHTTPServer interface { // AddRole 添加角色 AddRole(context.Context, *AddRoleReq) (*AddRoleRep, error) // AddRolesForUser 给用户设置角色 AddRolesForUser(context.Context, *SetUserForRoleReq) (*RoleStatus, error) // CheckAuth 检查权限 CheckAuth(context.Context, *CheckAuthReq) (*RoleStatus, error) // DelRole 删除角色 DelRole(context.Context, *DelRoleReq) (*RoleStatus, error) // DeleteRoleForUser 删除单个用户角色(如果需要删除单个用户的某个角色用这个) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*RoleStatus, error) // DeleteRolesForUser 删除多个用户角色(删除传递用户的所有角色) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*RoleStatus, error) // EditRole 编辑角色 EditRole(context.Context, *EditRoleReq) (*RoleStatus, error) // FullRoleList 获取角色列表(完整) FullRoleList(context.Context, *emptypb.Empty) (*FullRoleListRep, error) // GetRolePolicies 获取角色有那些权限 GetRolePolicies(context.Context, *GetRolePoliciesReq) (*GetRolePoliciesRep, error) // GetRolesForUser 获取用户角色 GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRep, error) // GetUsersForRole 获取角色有那些用户 GetUsersForRole(context.Context, *GetUsersForRoleReq) (*GetUsersForRoleRep, error) // PageRoleList 获取角色列表(分页) PageRoleList(context.Context, *PageRoleListReq) (*PageRoleListRep, error) // SetRolePolicies 设置角色权限 SetRolePolicies(context.Context, *SetRolePoliciesReq) (*RoleStatus, error) }
type AuthServer ¶
type AuthServer interface { // 添加角色 AddRole(context.Context, *AddRoleReq) (*AddRoleRep, error) // 编辑角色 EditRole(context.Context, *EditRoleReq) (*RoleStatus, error) // 删除角色 DelRole(context.Context, *DelRoleReq) (*RoleStatus, error) // 获取角色列表(完整) FullRoleList(context.Context, *emptypb.Empty) (*FullRoleListRep, error) // 获取角色列表(分页) PageRoleList(context.Context, *PageRoleListReq) (*PageRoleListRep, error) // 给用户设置角色 AddRolesForUser(context.Context, *SetUserForRoleReq) (*RoleStatus, error) // 获取用户角色 GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRep, error) // 获取角色有那些用户 GetUsersForRole(context.Context, *GetUsersForRoleReq) (*GetUsersForRoleRep, error) // 删除单个用户角色(如果需要删除单个用户的某个角色用这个) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*RoleStatus, error) // 删除多个用户角色(删除传递用户的所有角色) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*RoleStatus, error) // 获取角色有那些权限 GetRolePolicies(context.Context, *GetRolePoliciesReq) (*GetRolePoliciesRep, error) // 设置角色权限 SetRolePolicies(context.Context, *SetRolePoliciesReq) (*RoleStatus, error) // 检查权限 CheckAuth(context.Context, *CheckAuthReq) (*RoleStatus, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type CheckAuthReq ¶
type CheckAuthReq struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` Mod string `protobuf:"bytes,3,opt,name=mod,proto3" json:"mod,omitempty"` // contains filtered or unexported fields }
权限检查
func (*CheckAuthReq) Descriptor
deprecated
func (*CheckAuthReq) Descriptor() ([]byte, []int)
Deprecated: Use CheckAuthReq.ProtoReflect.Descriptor instead.
func (*CheckAuthReq) GetMod ¶
func (x *CheckAuthReq) GetMod() string
func (*CheckAuthReq) GetRole ¶
func (x *CheckAuthReq) GetRole() string
func (*CheckAuthReq) GetUrl ¶
func (x *CheckAuthReq) GetUrl() string
func (*CheckAuthReq) ProtoMessage ¶
func (*CheckAuthReq) ProtoMessage()
func (*CheckAuthReq) ProtoReflect ¶
func (x *CheckAuthReq) ProtoReflect() protoreflect.Message
func (*CheckAuthReq) Reset ¶
func (x *CheckAuthReq) Reset()
func (*CheckAuthReq) String ¶
func (x *CheckAuthReq) String() string
func (*CheckAuthReq) Validate ¶
func (m *CheckAuthReq) Validate() error
Validate checks the field values on CheckAuthReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CheckAuthReq) ValidateAll ¶
func (m *CheckAuthReq) ValidateAll() error
ValidateAll checks the field values on CheckAuthReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckAuthReqMultiError, or nil if none found.
type CheckAuthReqMultiError ¶
type CheckAuthReqMultiError []error
CheckAuthReqMultiError is an error wrapping multiple validation errors returned by CheckAuthReq.ValidateAll() if the designated constraints aren't met.
func (CheckAuthReqMultiError) AllErrors ¶
func (m CheckAuthReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckAuthReqMultiError) Error ¶
func (m CheckAuthReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckAuthReqValidationError ¶
type CheckAuthReqValidationError struct {
// contains filtered or unexported fields
}
CheckAuthReqValidationError is the validation error returned by CheckAuthReq.Validate if the designated constraints aren't met.
func (CheckAuthReqValidationError) Cause ¶
func (e CheckAuthReqValidationError) Cause() error
Cause function returns cause value.
func (CheckAuthReqValidationError) Error ¶
func (e CheckAuthReqValidationError) Error() string
Error satisfies the builtin error interface
func (CheckAuthReqValidationError) ErrorName ¶
func (e CheckAuthReqValidationError) ErrorName() string
ErrorName returns error name.
func (CheckAuthReqValidationError) Field ¶
func (e CheckAuthReqValidationError) Field() string
Field function returns field value.
func (CheckAuthReqValidationError) Key ¶
func (e CheckAuthReqValidationError) Key() bool
Key function returns key value.
func (CheckAuthReqValidationError) Reason ¶
func (e CheckAuthReqValidationError) Reason() string
Reason function returns reason value.
type DelRoleReq ¶
type DelRoleReq struct { RoleId uint64 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"` // contains filtered or unexported fields }
删除角色
func (*DelRoleReq) Descriptor
deprecated
func (*DelRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use DelRoleReq.ProtoReflect.Descriptor instead.
func (*DelRoleReq) GetRoleId ¶
func (x *DelRoleReq) GetRoleId() uint64
func (*DelRoleReq) ProtoMessage ¶
func (*DelRoleReq) ProtoMessage()
func (*DelRoleReq) ProtoReflect ¶
func (x *DelRoleReq) ProtoReflect() protoreflect.Message
func (*DelRoleReq) Reset ¶
func (x *DelRoleReq) Reset()
func (*DelRoleReq) String ¶
func (x *DelRoleReq) String() string
func (*DelRoleReq) Validate ¶
func (m *DelRoleReq) Validate() error
Validate checks the field values on DelRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DelRoleReq) ValidateAll ¶
func (m *DelRoleReq) ValidateAll() error
ValidateAll checks the field values on DelRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DelRoleReqMultiError, or nil if none found.
type DelRoleReqMultiError ¶
type DelRoleReqMultiError []error
DelRoleReqMultiError is an error wrapping multiple validation errors returned by DelRoleReq.ValidateAll() if the designated constraints aren't met.
func (DelRoleReqMultiError) AllErrors ¶
func (m DelRoleReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DelRoleReqMultiError) Error ¶
func (m DelRoleReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DelRoleReqValidationError ¶
type DelRoleReqValidationError struct {
// contains filtered or unexported fields
}
DelRoleReqValidationError is the validation error returned by DelRoleReq.Validate if the designated constraints aren't met.
func (DelRoleReqValidationError) Cause ¶
func (e DelRoleReqValidationError) Cause() error
Cause function returns cause value.
func (DelRoleReqValidationError) Error ¶
func (e DelRoleReqValidationError) Error() string
Error satisfies the builtin error interface
func (DelRoleReqValidationError) ErrorName ¶
func (e DelRoleReqValidationError) ErrorName() string
ErrorName returns error name.
func (DelRoleReqValidationError) Field ¶
func (e DelRoleReqValidationError) Field() string
Field function returns field value.
func (DelRoleReqValidationError) Key ¶
func (e DelRoleReqValidationError) Key() bool
Key function returns key value.
func (DelRoleReqValidationError) Reason ¶
func (e DelRoleReqValidationError) Reason() string
Reason function returns reason value.
type DeleteRoleForUserReq ¶
type DeleteRoleForUserReq struct { // 用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 角色名 Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
删除单个用户角色
func (*DeleteRoleForUserReq) Descriptor
deprecated
func (*DeleteRoleForUserReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleForUserReq.ProtoReflect.Descriptor instead.
func (*DeleteRoleForUserReq) GetRole ¶
func (x *DeleteRoleForUserReq) GetRole() string
func (*DeleteRoleForUserReq) GetUsername ¶
func (x *DeleteRoleForUserReq) GetUsername() string
func (*DeleteRoleForUserReq) ProtoMessage ¶
func (*DeleteRoleForUserReq) ProtoMessage()
func (*DeleteRoleForUserReq) ProtoReflect ¶
func (x *DeleteRoleForUserReq) ProtoReflect() protoreflect.Message
func (*DeleteRoleForUserReq) Reset ¶
func (x *DeleteRoleForUserReq) Reset()
func (*DeleteRoleForUserReq) String ¶
func (x *DeleteRoleForUserReq) String() string
func (*DeleteRoleForUserReq) Validate ¶
func (m *DeleteRoleForUserReq) Validate() error
Validate checks the field values on DeleteRoleForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteRoleForUserReq) ValidateAll ¶
func (m *DeleteRoleForUserReq) ValidateAll() error
ValidateAll checks the field values on DeleteRoleForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRoleForUserReqMultiError, or nil if none found.
type DeleteRoleForUserReqMultiError ¶
type DeleteRoleForUserReqMultiError []error
DeleteRoleForUserReqMultiError is an error wrapping multiple validation errors returned by DeleteRoleForUserReq.ValidateAll() if the designated constraints aren't met.
func (DeleteRoleForUserReqMultiError) AllErrors ¶
func (m DeleteRoleForUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRoleForUserReqMultiError) Error ¶
func (m DeleteRoleForUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRoleForUserReqValidationError ¶
type DeleteRoleForUserReqValidationError struct {
// contains filtered or unexported fields
}
DeleteRoleForUserReqValidationError is the validation error returned by DeleteRoleForUserReq.Validate if the designated constraints aren't met.
func (DeleteRoleForUserReqValidationError) Cause ¶
func (e DeleteRoleForUserReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteRoleForUserReqValidationError) Error ¶
func (e DeleteRoleForUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRoleForUserReqValidationError) ErrorName ¶
func (e DeleteRoleForUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRoleForUserReqValidationError) Field ¶
func (e DeleteRoleForUserReqValidationError) Field() string
Field function returns field value.
func (DeleteRoleForUserReqValidationError) Key ¶
func (e DeleteRoleForUserReqValidationError) Key() bool
Key function returns key value.
func (DeleteRoleForUserReqValidationError) Reason ¶
func (e DeleteRoleForUserReqValidationError) Reason() string
Reason function returns reason value.
type DeleteRolesForUserReq ¶
type DeleteRolesForUserReq struct { // 用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
删除多个用户角色
func (*DeleteRolesForUserReq) Descriptor
deprecated
func (*DeleteRolesForUserReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRolesForUserReq.ProtoReflect.Descriptor instead.
func (*DeleteRolesForUserReq) GetUsername ¶
func (x *DeleteRolesForUserReq) GetUsername() string
func (*DeleteRolesForUserReq) ProtoMessage ¶
func (*DeleteRolesForUserReq) ProtoMessage()
func (*DeleteRolesForUserReq) ProtoReflect ¶
func (x *DeleteRolesForUserReq) ProtoReflect() protoreflect.Message
func (*DeleteRolesForUserReq) Reset ¶
func (x *DeleteRolesForUserReq) Reset()
func (*DeleteRolesForUserReq) String ¶
func (x *DeleteRolesForUserReq) String() string
func (*DeleteRolesForUserReq) Validate ¶
func (m *DeleteRolesForUserReq) Validate() error
Validate checks the field values on DeleteRolesForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteRolesForUserReq) ValidateAll ¶
func (m *DeleteRolesForUserReq) ValidateAll() error
ValidateAll checks the field values on DeleteRolesForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRolesForUserReqMultiError, or nil if none found.
type DeleteRolesForUserReqMultiError ¶
type DeleteRolesForUserReqMultiError []error
DeleteRolesForUserReqMultiError is an error wrapping multiple validation errors returned by DeleteRolesForUserReq.ValidateAll() if the designated constraints aren't met.
func (DeleteRolesForUserReqMultiError) AllErrors ¶
func (m DeleteRolesForUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRolesForUserReqMultiError) Error ¶
func (m DeleteRolesForUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRolesForUserReqValidationError ¶
type DeleteRolesForUserReqValidationError struct {
// contains filtered or unexported fields
}
DeleteRolesForUserReqValidationError is the validation error returned by DeleteRolesForUserReq.Validate if the designated constraints aren't met.
func (DeleteRolesForUserReqValidationError) Cause ¶
func (e DeleteRolesForUserReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteRolesForUserReqValidationError) Error ¶
func (e DeleteRolesForUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRolesForUserReqValidationError) ErrorName ¶
func (e DeleteRolesForUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRolesForUserReqValidationError) Field ¶
func (e DeleteRolesForUserReqValidationError) Field() string
Field function returns field value.
func (DeleteRolesForUserReqValidationError) Key ¶
func (e DeleteRolesForUserReqValidationError) Key() bool
Key function returns key value.
func (DeleteRolesForUserReqValidationError) Reason ¶
func (e DeleteRolesForUserReqValidationError) Reason() string
Reason function returns reason value.
type EditRoleReq ¶
type EditRoleReq struct { // 角色Id RoleId uint64 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"` // 角色名称 RoleName string `protobuf:"bytes,2,opt,name=roleName,proto3" json:"roleName,omitempty"` // contains filtered or unexported fields }
编辑角色
func (*EditRoleReq) Descriptor
deprecated
func (*EditRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use EditRoleReq.ProtoReflect.Descriptor instead.
func (*EditRoleReq) GetRoleId ¶
func (x *EditRoleReq) GetRoleId() uint64
func (*EditRoleReq) GetRoleName ¶
func (x *EditRoleReq) GetRoleName() string
func (*EditRoleReq) ProtoMessage ¶
func (*EditRoleReq) ProtoMessage()
func (*EditRoleReq) ProtoReflect ¶
func (x *EditRoleReq) ProtoReflect() protoreflect.Message
func (*EditRoleReq) Reset ¶
func (x *EditRoleReq) Reset()
func (*EditRoleReq) String ¶
func (x *EditRoleReq) String() string
func (*EditRoleReq) Validate ¶
func (m *EditRoleReq) Validate() error
Validate checks the field values on EditRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EditRoleReq) ValidateAll ¶
func (m *EditRoleReq) ValidateAll() error
ValidateAll checks the field values on EditRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EditRoleReqMultiError, or nil if none found.
type EditRoleReqMultiError ¶
type EditRoleReqMultiError []error
EditRoleReqMultiError is an error wrapping multiple validation errors returned by EditRoleReq.ValidateAll() if the designated constraints aren't met.
func (EditRoleReqMultiError) AllErrors ¶
func (m EditRoleReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EditRoleReqMultiError) Error ¶
func (m EditRoleReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EditRoleReqValidationError ¶
type EditRoleReqValidationError struct {
// contains filtered or unexported fields
}
EditRoleReqValidationError is the validation error returned by EditRoleReq.Validate if the designated constraints aren't met.
func (EditRoleReqValidationError) Cause ¶
func (e EditRoleReqValidationError) Cause() error
Cause function returns cause value.
func (EditRoleReqValidationError) Error ¶
func (e EditRoleReqValidationError) Error() string
Error satisfies the builtin error interface
func (EditRoleReqValidationError) ErrorName ¶
func (e EditRoleReqValidationError) ErrorName() string
ErrorName returns error name.
func (EditRoleReqValidationError) Field ¶
func (e EditRoleReqValidationError) Field() string
Field function returns field value.
func (EditRoleReqValidationError) Key ¶
func (e EditRoleReqValidationError) Key() bool
Key function returns key value.
func (EditRoleReqValidationError) Reason ¶
func (e EditRoleReqValidationError) Reason() string
Reason function returns reason value.
type FullRoleListRep ¶
type FullRoleListRep struct { List []*Role `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
完整角色列表回复
func (*FullRoleListRep) Descriptor
deprecated
func (*FullRoleListRep) Descriptor() ([]byte, []int)
Deprecated: Use FullRoleListRep.ProtoReflect.Descriptor instead.
func (*FullRoleListRep) GetList ¶
func (x *FullRoleListRep) GetList() []*Role
func (*FullRoleListRep) ProtoMessage ¶
func (*FullRoleListRep) ProtoMessage()
func (*FullRoleListRep) ProtoReflect ¶
func (x *FullRoleListRep) ProtoReflect() protoreflect.Message
func (*FullRoleListRep) Reset ¶
func (x *FullRoleListRep) Reset()
func (*FullRoleListRep) String ¶
func (x *FullRoleListRep) String() string
func (*FullRoleListRep) Validate ¶
func (m *FullRoleListRep) Validate() error
Validate checks the field values on FullRoleListRep with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FullRoleListRep) ValidateAll ¶
func (m *FullRoleListRep) ValidateAll() error
ValidateAll checks the field values on FullRoleListRep with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FullRoleListRepMultiError, or nil if none found.
type FullRoleListRepMultiError ¶
type FullRoleListRepMultiError []error
FullRoleListRepMultiError is an error wrapping multiple validation errors returned by FullRoleListRep.ValidateAll() if the designated constraints aren't met.
func (FullRoleListRepMultiError) AllErrors ¶
func (m FullRoleListRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FullRoleListRepMultiError) Error ¶
func (m FullRoleListRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FullRoleListRepValidationError ¶
type FullRoleListRepValidationError struct {
// contains filtered or unexported fields
}
FullRoleListRepValidationError is the validation error returned by FullRoleListRep.Validate if the designated constraints aren't met.
func (FullRoleListRepValidationError) Cause ¶
func (e FullRoleListRepValidationError) Cause() error
Cause function returns cause value.
func (FullRoleListRepValidationError) Error ¶
func (e FullRoleListRepValidationError) Error() string
Error satisfies the builtin error interface
func (FullRoleListRepValidationError) ErrorName ¶
func (e FullRoleListRepValidationError) ErrorName() string
ErrorName returns error name.
func (FullRoleListRepValidationError) Field ¶
func (e FullRoleListRepValidationError) Field() string
Field function returns field value.
func (FullRoleListRepValidationError) Key ¶
func (e FullRoleListRepValidationError) Key() bool
Key function returns key value.
func (FullRoleListRepValidationError) Reason ¶
func (e FullRoleListRepValidationError) Reason() string
Reason function returns reason value.
type GetRolePoliciesRep ¶
type GetRolePoliciesRep struct { PolicyRules []*PolicyRules `protobuf:"bytes,1,rep,name=policyRules,proto3" json:"policyRules,omitempty"` // contains filtered or unexported fields }
获取角色有那些权限 回复
func (*GetRolePoliciesRep) Descriptor
deprecated
func (*GetRolePoliciesRep) Descriptor() ([]byte, []int)
Deprecated: Use GetRolePoliciesRep.ProtoReflect.Descriptor instead.
func (*GetRolePoliciesRep) GetPolicyRules ¶
func (x *GetRolePoliciesRep) GetPolicyRules() []*PolicyRules
func (*GetRolePoliciesRep) ProtoMessage ¶
func (*GetRolePoliciesRep) ProtoMessage()
func (*GetRolePoliciesRep) ProtoReflect ¶
func (x *GetRolePoliciesRep) ProtoReflect() protoreflect.Message
func (*GetRolePoliciesRep) Reset ¶
func (x *GetRolePoliciesRep) Reset()
func (*GetRolePoliciesRep) String ¶
func (x *GetRolePoliciesRep) String() string
func (*GetRolePoliciesRep) Validate ¶
func (m *GetRolePoliciesRep) Validate() error
Validate checks the field values on GetRolePoliciesRep with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRolePoliciesRep) ValidateAll ¶
func (m *GetRolePoliciesRep) ValidateAll() error
ValidateAll checks the field values on GetRolePoliciesRep with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRolePoliciesRepMultiError, or nil if none found.
type GetRolePoliciesRepMultiError ¶
type GetRolePoliciesRepMultiError []error
GetRolePoliciesRepMultiError is an error wrapping multiple validation errors returned by GetRolePoliciesRep.ValidateAll() if the designated constraints aren't met.
func (GetRolePoliciesRepMultiError) AllErrors ¶
func (m GetRolePoliciesRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRolePoliciesRepMultiError) Error ¶
func (m GetRolePoliciesRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRolePoliciesRepValidationError ¶
type GetRolePoliciesRepValidationError struct {
// contains filtered or unexported fields
}
GetRolePoliciesRepValidationError is the validation error returned by GetRolePoliciesRep.Validate if the designated constraints aren't met.
func (GetRolePoliciesRepValidationError) Cause ¶
func (e GetRolePoliciesRepValidationError) Cause() error
Cause function returns cause value.
func (GetRolePoliciesRepValidationError) Error ¶
func (e GetRolePoliciesRepValidationError) Error() string
Error satisfies the builtin error interface
func (GetRolePoliciesRepValidationError) ErrorName ¶
func (e GetRolePoliciesRepValidationError) ErrorName() string
ErrorName returns error name.
func (GetRolePoliciesRepValidationError) Field ¶
func (e GetRolePoliciesRepValidationError) Field() string
Field function returns field value.
func (GetRolePoliciesRepValidationError) Key ¶
func (e GetRolePoliciesRepValidationError) Key() bool
Key function returns key value.
func (GetRolePoliciesRepValidationError) Reason ¶
func (e GetRolePoliciesRepValidationError) Reason() string
Reason function returns reason value.
type GetRolePoliciesReq ¶
type GetRolePoliciesReq struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
获取角色有那些权限
func (*GetRolePoliciesReq) Descriptor
deprecated
func (*GetRolePoliciesReq) Descriptor() ([]byte, []int)
Deprecated: Use GetRolePoliciesReq.ProtoReflect.Descriptor instead.
func (*GetRolePoliciesReq) GetRole ¶
func (x *GetRolePoliciesReq) GetRole() string
func (*GetRolePoliciesReq) ProtoMessage ¶
func (*GetRolePoliciesReq) ProtoMessage()
func (*GetRolePoliciesReq) ProtoReflect ¶
func (x *GetRolePoliciesReq) ProtoReflect() protoreflect.Message
func (*GetRolePoliciesReq) Reset ¶
func (x *GetRolePoliciesReq) Reset()
func (*GetRolePoliciesReq) String ¶
func (x *GetRolePoliciesReq) String() string
func (*GetRolePoliciesReq) Validate ¶
func (m *GetRolePoliciesReq) Validate() error
Validate checks the field values on GetRolePoliciesReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRolePoliciesReq) ValidateAll ¶
func (m *GetRolePoliciesReq) ValidateAll() error
ValidateAll checks the field values on GetRolePoliciesReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRolePoliciesReqMultiError, or nil if none found.
type GetRolePoliciesReqMultiError ¶
type GetRolePoliciesReqMultiError []error
GetRolePoliciesReqMultiError is an error wrapping multiple validation errors returned by GetRolePoliciesReq.ValidateAll() if the designated constraints aren't met.
func (GetRolePoliciesReqMultiError) AllErrors ¶
func (m GetRolePoliciesReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRolePoliciesReqMultiError) Error ¶
func (m GetRolePoliciesReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRolePoliciesReqValidationError ¶
type GetRolePoliciesReqValidationError struct {
// contains filtered or unexported fields
}
GetRolePoliciesReqValidationError is the validation error returned by GetRolePoliciesReq.Validate if the designated constraints aren't met.
func (GetRolePoliciesReqValidationError) Cause ¶
func (e GetRolePoliciesReqValidationError) Cause() error
Cause function returns cause value.
func (GetRolePoliciesReqValidationError) Error ¶
func (e GetRolePoliciesReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetRolePoliciesReqValidationError) ErrorName ¶
func (e GetRolePoliciesReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetRolePoliciesReqValidationError) Field ¶
func (e GetRolePoliciesReqValidationError) Field() string
Field function returns field value.
func (GetRolePoliciesReqValidationError) Key ¶
func (e GetRolePoliciesReqValidationError) Key() bool
Key function returns key value.
func (GetRolePoliciesReqValidationError) Reason ¶
func (e GetRolePoliciesReqValidationError) Reason() string
Reason function returns reason value.
type GetRolesForUserRep ¶
type GetRolesForUserRep struct { // 角色列表 Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
获取用户角色回复
func (*GetRolesForUserRep) Descriptor
deprecated
func (*GetRolesForUserRep) Descriptor() ([]byte, []int)
Deprecated: Use GetRolesForUserRep.ProtoReflect.Descriptor instead.
func (*GetRolesForUserRep) GetRoles ¶
func (x *GetRolesForUserRep) GetRoles() []string
func (*GetRolesForUserRep) ProtoMessage ¶
func (*GetRolesForUserRep) ProtoMessage()
func (*GetRolesForUserRep) ProtoReflect ¶
func (x *GetRolesForUserRep) ProtoReflect() protoreflect.Message
func (*GetRolesForUserRep) Reset ¶
func (x *GetRolesForUserRep) Reset()
func (*GetRolesForUserRep) String ¶
func (x *GetRolesForUserRep) String() string
func (*GetRolesForUserRep) Validate ¶
func (m *GetRolesForUserRep) Validate() error
Validate checks the field values on GetRolesForUserRep with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRolesForUserRep) ValidateAll ¶
func (m *GetRolesForUserRep) ValidateAll() error
ValidateAll checks the field values on GetRolesForUserRep with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRolesForUserRepMultiError, or nil if none found.
type GetRolesForUserRepMultiError ¶
type GetRolesForUserRepMultiError []error
GetRolesForUserRepMultiError is an error wrapping multiple validation errors returned by GetRolesForUserRep.ValidateAll() if the designated constraints aren't met.
func (GetRolesForUserRepMultiError) AllErrors ¶
func (m GetRolesForUserRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRolesForUserRepMultiError) Error ¶
func (m GetRolesForUserRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRolesForUserRepValidationError ¶
type GetRolesForUserRepValidationError struct {
// contains filtered or unexported fields
}
GetRolesForUserRepValidationError is the validation error returned by GetRolesForUserRep.Validate if the designated constraints aren't met.
func (GetRolesForUserRepValidationError) Cause ¶
func (e GetRolesForUserRepValidationError) Cause() error
Cause function returns cause value.
func (GetRolesForUserRepValidationError) Error ¶
func (e GetRolesForUserRepValidationError) Error() string
Error satisfies the builtin error interface
func (GetRolesForUserRepValidationError) ErrorName ¶
func (e GetRolesForUserRepValidationError) ErrorName() string
ErrorName returns error name.
func (GetRolesForUserRepValidationError) Field ¶
func (e GetRolesForUserRepValidationError) Field() string
Field function returns field value.
func (GetRolesForUserRepValidationError) Key ¶
func (e GetRolesForUserRepValidationError) Key() bool
Key function returns key value.
func (GetRolesForUserRepValidationError) Reason ¶
func (e GetRolesForUserRepValidationError) Reason() string
Reason function returns reason value.
type GetRolesForUserReq ¶
type GetRolesForUserReq struct { // 用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
获取用户角色
func (*GetRolesForUserReq) Descriptor
deprecated
func (*GetRolesForUserReq) Descriptor() ([]byte, []int)
Deprecated: Use GetRolesForUserReq.ProtoReflect.Descriptor instead.
func (*GetRolesForUserReq) GetUsername ¶
func (x *GetRolesForUserReq) GetUsername() string
func (*GetRolesForUserReq) ProtoMessage ¶
func (*GetRolesForUserReq) ProtoMessage()
func (*GetRolesForUserReq) ProtoReflect ¶
func (x *GetRolesForUserReq) ProtoReflect() protoreflect.Message
func (*GetRolesForUserReq) Reset ¶
func (x *GetRolesForUserReq) Reset()
func (*GetRolesForUserReq) String ¶
func (x *GetRolesForUserReq) String() string
func (*GetRolesForUserReq) Validate ¶
func (m *GetRolesForUserReq) Validate() error
Validate checks the field values on GetRolesForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetRolesForUserReq) ValidateAll ¶
func (m *GetRolesForUserReq) ValidateAll() error
ValidateAll checks the field values on GetRolesForUserReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetRolesForUserReqMultiError, or nil if none found.
type GetRolesForUserReqMultiError ¶
type GetRolesForUserReqMultiError []error
GetRolesForUserReqMultiError is an error wrapping multiple validation errors returned by GetRolesForUserReq.ValidateAll() if the designated constraints aren't met.
func (GetRolesForUserReqMultiError) AllErrors ¶
func (m GetRolesForUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRolesForUserReqMultiError) Error ¶
func (m GetRolesForUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRolesForUserReqValidationError ¶
type GetRolesForUserReqValidationError struct {
// contains filtered or unexported fields
}
GetRolesForUserReqValidationError is the validation error returned by GetRolesForUserReq.Validate if the designated constraints aren't met.
func (GetRolesForUserReqValidationError) Cause ¶
func (e GetRolesForUserReqValidationError) Cause() error
Cause function returns cause value.
func (GetRolesForUserReqValidationError) Error ¶
func (e GetRolesForUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetRolesForUserReqValidationError) ErrorName ¶
func (e GetRolesForUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetRolesForUserReqValidationError) Field ¶
func (e GetRolesForUserReqValidationError) Field() string
Field function returns field value.
func (GetRolesForUserReqValidationError) Key ¶
func (e GetRolesForUserReqValidationError) Key() bool
Key function returns key value.
func (GetRolesForUserReqValidationError) Reason ¶
func (e GetRolesForUserReqValidationError) Reason() string
Reason function returns reason value.
type GetUsersForRoleRep ¶
type GetUsersForRoleRep struct { // 用户列表 Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
获取角色有那些用户 回复
func (*GetUsersForRoleRep) Descriptor
deprecated
func (*GetUsersForRoleRep) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersForRoleRep.ProtoReflect.Descriptor instead.
func (*GetUsersForRoleRep) GetUsers ¶
func (x *GetUsersForRoleRep) GetUsers() []string
func (*GetUsersForRoleRep) ProtoMessage ¶
func (*GetUsersForRoleRep) ProtoMessage()
func (*GetUsersForRoleRep) ProtoReflect ¶
func (x *GetUsersForRoleRep) ProtoReflect() protoreflect.Message
func (*GetUsersForRoleRep) Reset ¶
func (x *GetUsersForRoleRep) Reset()
func (*GetUsersForRoleRep) String ¶
func (x *GetUsersForRoleRep) String() string
func (*GetUsersForRoleRep) Validate ¶
func (m *GetUsersForRoleRep) Validate() error
Validate checks the field values on GetUsersForRoleRep with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUsersForRoleRep) ValidateAll ¶
func (m *GetUsersForRoleRep) ValidateAll() error
ValidateAll checks the field values on GetUsersForRoleRep with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUsersForRoleRepMultiError, or nil if none found.
type GetUsersForRoleRepMultiError ¶
type GetUsersForRoleRepMultiError []error
GetUsersForRoleRepMultiError is an error wrapping multiple validation errors returned by GetUsersForRoleRep.ValidateAll() if the designated constraints aren't met.
func (GetUsersForRoleRepMultiError) AllErrors ¶
func (m GetUsersForRoleRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUsersForRoleRepMultiError) Error ¶
func (m GetUsersForRoleRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUsersForRoleRepValidationError ¶
type GetUsersForRoleRepValidationError struct {
// contains filtered or unexported fields
}
GetUsersForRoleRepValidationError is the validation error returned by GetUsersForRoleRep.Validate if the designated constraints aren't met.
func (GetUsersForRoleRepValidationError) Cause ¶
func (e GetUsersForRoleRepValidationError) Cause() error
Cause function returns cause value.
func (GetUsersForRoleRepValidationError) Error ¶
func (e GetUsersForRoleRepValidationError) Error() string
Error satisfies the builtin error interface
func (GetUsersForRoleRepValidationError) ErrorName ¶
func (e GetUsersForRoleRepValidationError) ErrorName() string
ErrorName returns error name.
func (GetUsersForRoleRepValidationError) Field ¶
func (e GetUsersForRoleRepValidationError) Field() string
Field function returns field value.
func (GetUsersForRoleRepValidationError) Key ¶
func (e GetUsersForRoleRepValidationError) Key() bool
Key function returns key value.
func (GetUsersForRoleRepValidationError) Reason ¶
func (e GetUsersForRoleRepValidationError) Reason() string
Reason function returns reason value.
type GetUsersForRoleReq ¶
type GetUsersForRoleReq struct { Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
获取角色有那些用户
func (*GetUsersForRoleReq) Descriptor
deprecated
func (*GetUsersForRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersForRoleReq.ProtoReflect.Descriptor instead.
func (*GetUsersForRoleReq) GetRole ¶
func (x *GetUsersForRoleReq) GetRole() string
func (*GetUsersForRoleReq) ProtoMessage ¶
func (*GetUsersForRoleReq) ProtoMessage()
func (*GetUsersForRoleReq) ProtoReflect ¶
func (x *GetUsersForRoleReq) ProtoReflect() protoreflect.Message
func (*GetUsersForRoleReq) Reset ¶
func (x *GetUsersForRoleReq) Reset()
func (*GetUsersForRoleReq) String ¶
func (x *GetUsersForRoleReq) String() string
func (*GetUsersForRoleReq) Validate ¶
func (m *GetUsersForRoleReq) Validate() error
Validate checks the field values on GetUsersForRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUsersForRoleReq) ValidateAll ¶
func (m *GetUsersForRoleReq) ValidateAll() error
ValidateAll checks the field values on GetUsersForRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUsersForRoleReqMultiError, or nil if none found.
type GetUsersForRoleReqMultiError ¶
type GetUsersForRoleReqMultiError []error
GetUsersForRoleReqMultiError is an error wrapping multiple validation errors returned by GetUsersForRoleReq.ValidateAll() if the designated constraints aren't met.
func (GetUsersForRoleReqMultiError) AllErrors ¶
func (m GetUsersForRoleReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUsersForRoleReqMultiError) Error ¶
func (m GetUsersForRoleReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUsersForRoleReqValidationError ¶
type GetUsersForRoleReqValidationError struct {
// contains filtered or unexported fields
}
GetUsersForRoleReqValidationError is the validation error returned by GetUsersForRoleReq.Validate if the designated constraints aren't met.
func (GetUsersForRoleReqValidationError) Cause ¶
func (e GetUsersForRoleReqValidationError) Cause() error
Cause function returns cause value.
func (GetUsersForRoleReqValidationError) Error ¶
func (e GetUsersForRoleReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetUsersForRoleReqValidationError) ErrorName ¶
func (e GetUsersForRoleReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetUsersForRoleReqValidationError) Field ¶
func (e GetUsersForRoleReqValidationError) Field() string
Field function returns field value.
func (GetUsersForRoleReqValidationError) Key ¶
func (e GetUsersForRoleReqValidationError) Key() bool
Key function returns key value.
func (GetUsersForRoleReqValidationError) Reason ¶
func (e GetUsersForRoleReqValidationError) Reason() string
Reason function returns reason value.
type PageRoleListRep ¶
type PageRoleListRep struct { Total uint64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Role `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
分页角色列表
func (*PageRoleListRep) Descriptor
deprecated
func (*PageRoleListRep) Descriptor() ([]byte, []int)
Deprecated: Use PageRoleListRep.ProtoReflect.Descriptor instead.
func (*PageRoleListRep) GetList ¶
func (x *PageRoleListRep) GetList() []*Role
func (*PageRoleListRep) GetTotal ¶
func (x *PageRoleListRep) GetTotal() uint64
func (*PageRoleListRep) ProtoMessage ¶
func (*PageRoleListRep) ProtoMessage()
func (*PageRoleListRep) ProtoReflect ¶
func (x *PageRoleListRep) ProtoReflect() protoreflect.Message
func (*PageRoleListRep) Reset ¶
func (x *PageRoleListRep) Reset()
func (*PageRoleListRep) String ¶
func (x *PageRoleListRep) String() string
func (*PageRoleListRep) Validate ¶
func (m *PageRoleListRep) Validate() error
Validate checks the field values on PageRoleListRep with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PageRoleListRep) ValidateAll ¶
func (m *PageRoleListRep) ValidateAll() error
ValidateAll checks the field values on PageRoleListRep with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PageRoleListRepMultiError, or nil if none found.
type PageRoleListRepMultiError ¶
type PageRoleListRepMultiError []error
PageRoleListRepMultiError is an error wrapping multiple validation errors returned by PageRoleListRep.ValidateAll() if the designated constraints aren't met.
func (PageRoleListRepMultiError) AllErrors ¶
func (m PageRoleListRepMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageRoleListRepMultiError) Error ¶
func (m PageRoleListRepMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageRoleListRepValidationError ¶
type PageRoleListRepValidationError struct {
// contains filtered or unexported fields
}
PageRoleListRepValidationError is the validation error returned by PageRoleListRep.Validate if the designated constraints aren't met.
func (PageRoleListRepValidationError) Cause ¶
func (e PageRoleListRepValidationError) Cause() error
Cause function returns cause value.
func (PageRoleListRepValidationError) Error ¶
func (e PageRoleListRepValidationError) Error() string
Error satisfies the builtin error interface
func (PageRoleListRepValidationError) ErrorName ¶
func (e PageRoleListRepValidationError) ErrorName() string
ErrorName returns error name.
func (PageRoleListRepValidationError) Field ¶
func (e PageRoleListRepValidationError) Field() string
Field function returns field value.
func (PageRoleListRepValidationError) Key ¶
func (e PageRoleListRepValidationError) Key() bool
Key function returns key value.
func (PageRoleListRepValidationError) Reason ¶
func (e PageRoleListRepValidationError) Reason() string
Reason function returns reason value.
type PageRoleListReq ¶
type PageRoleListReq struct { Page uint64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize uint64 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` RoleName string `protobuf:"bytes,3,opt,name=roleName,proto3" json:"roleName,omitempty"` // contains filtered or unexported fields }
请求 分页角色列表
func (*PageRoleListReq) Descriptor
deprecated
func (*PageRoleListReq) Descriptor() ([]byte, []int)
Deprecated: Use PageRoleListReq.ProtoReflect.Descriptor instead.
func (*PageRoleListReq) GetPage ¶
func (x *PageRoleListReq) GetPage() uint64
func (*PageRoleListReq) GetPageSize ¶
func (x *PageRoleListReq) GetPageSize() uint64
func (*PageRoleListReq) GetRoleName ¶
func (x *PageRoleListReq) GetRoleName() string
func (*PageRoleListReq) ProtoMessage ¶
func (*PageRoleListReq) ProtoMessage()
func (*PageRoleListReq) ProtoReflect ¶
func (x *PageRoleListReq) ProtoReflect() protoreflect.Message
func (*PageRoleListReq) Reset ¶
func (x *PageRoleListReq) Reset()
func (*PageRoleListReq) String ¶
func (x *PageRoleListReq) String() string
func (*PageRoleListReq) Validate ¶
func (m *PageRoleListReq) Validate() error
Validate checks the field values on PageRoleListReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PageRoleListReq) ValidateAll ¶
func (m *PageRoleListReq) ValidateAll() error
ValidateAll checks the field values on PageRoleListReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PageRoleListReqMultiError, or nil if none found.
type PageRoleListReqMultiError ¶
type PageRoleListReqMultiError []error
PageRoleListReqMultiError is an error wrapping multiple validation errors returned by PageRoleListReq.ValidateAll() if the designated constraints aren't met.
func (PageRoleListReqMultiError) AllErrors ¶
func (m PageRoleListReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageRoleListReqMultiError) Error ¶
func (m PageRoleListReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageRoleListReqValidationError ¶
type PageRoleListReqValidationError struct {
// contains filtered or unexported fields
}
PageRoleListReqValidationError is the validation error returned by PageRoleListReq.Validate if the designated constraints aren't met.
func (PageRoleListReqValidationError) Cause ¶
func (e PageRoleListReqValidationError) Cause() error
Cause function returns cause value.
func (PageRoleListReqValidationError) Error ¶
func (e PageRoleListReqValidationError) Error() string
Error satisfies the builtin error interface
func (PageRoleListReqValidationError) ErrorName ¶
func (e PageRoleListReqValidationError) ErrorName() string
ErrorName returns error name.
func (PageRoleListReqValidationError) Field ¶
func (e PageRoleListReqValidationError) Field() string
Field function returns field value.
func (PageRoleListReqValidationError) Key ¶
func (e PageRoleListReqValidationError) Key() bool
Key function returns key value.
func (PageRoleListReqValidationError) Reason ¶
func (e PageRoleListReqValidationError) Reason() string
Reason function returns reason value.
type PolicyRules ¶
type PolicyRules struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` // contains filtered or unexported fields }
func (*PolicyRules) Descriptor
deprecated
func (*PolicyRules) Descriptor() ([]byte, []int)
Deprecated: Use PolicyRules.ProtoReflect.Descriptor instead.
func (*PolicyRules) GetMethod ¶
func (x *PolicyRules) GetMethod() string
func (*PolicyRules) GetPath ¶
func (x *PolicyRules) GetPath() string
func (*PolicyRules) ProtoMessage ¶
func (*PolicyRules) ProtoMessage()
func (*PolicyRules) ProtoReflect ¶
func (x *PolicyRules) ProtoReflect() protoreflect.Message
func (*PolicyRules) Reset ¶
func (x *PolicyRules) Reset()
func (*PolicyRules) String ¶
func (x *PolicyRules) String() string
func (*PolicyRules) Validate ¶
func (m *PolicyRules) Validate() error
Validate checks the field values on PolicyRules with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*PolicyRules) ValidateAll ¶
func (m *PolicyRules) ValidateAll() error
ValidateAll checks the field values on PolicyRules with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PolicyRulesMultiError, or nil if none found.
type PolicyRulesMultiError ¶
type PolicyRulesMultiError []error
PolicyRulesMultiError is an error wrapping multiple validation errors returned by PolicyRules.ValidateAll() if the designated constraints aren't met.
func (PolicyRulesMultiError) AllErrors ¶
func (m PolicyRulesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PolicyRulesMultiError) Error ¶
func (m PolicyRulesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PolicyRulesValidationError ¶
type PolicyRulesValidationError struct {
// contains filtered or unexported fields
}
PolicyRulesValidationError is the validation error returned by PolicyRules.Validate if the designated constraints aren't met.
func (PolicyRulesValidationError) Cause ¶
func (e PolicyRulesValidationError) Cause() error
Cause function returns cause value.
func (PolicyRulesValidationError) Error ¶
func (e PolicyRulesValidationError) Error() string
Error satisfies the builtin error interface
func (PolicyRulesValidationError) ErrorName ¶
func (e PolicyRulesValidationError) ErrorName() string
ErrorName returns error name.
func (PolicyRulesValidationError) Field ¶
func (e PolicyRulesValidationError) Field() string
Field function returns field value.
func (PolicyRulesValidationError) Key ¶
func (e PolicyRulesValidationError) Key() bool
Key function returns key value.
func (PolicyRulesValidationError) Reason ¶
func (e PolicyRulesValidationError) Reason() string
Reason function returns reason value.
type Role ¶
type Role struct { // 角色Id RoleId uint64 `protobuf:"varint,1,opt,name=roleId,proto3" json:"roleId,omitempty"` // 角色名称 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 创建时间 CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // 更新时间 UpdatedAt string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
角色
func (*Role) Descriptor
deprecated
func (*Role) GetCreatedAt ¶
func (*Role) GetUpdatedAt ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
func (*Role) Validate ¶
Validate checks the field values on Role with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Role) ValidateAll ¶
ValidateAll checks the field values on Role with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleMultiError, or nil if none found.
type RoleMultiError ¶
type RoleMultiError []error
RoleMultiError is an error wrapping multiple validation errors returned by Role.ValidateAll() if the designated constraints aren't met.
func (RoleMultiError) AllErrors ¶
func (m RoleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleMultiError) Error ¶
func (m RoleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleStatus ¶
type RoleStatus struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
角色状态回复
func (*RoleStatus) Descriptor
deprecated
func (*RoleStatus) Descriptor() ([]byte, []int)
Deprecated: Use RoleStatus.ProtoReflect.Descriptor instead.
func (*RoleStatus) GetSuccess ¶
func (x *RoleStatus) GetSuccess() bool
func (*RoleStatus) ProtoMessage ¶
func (*RoleStatus) ProtoMessage()
func (*RoleStatus) ProtoReflect ¶
func (x *RoleStatus) ProtoReflect() protoreflect.Message
func (*RoleStatus) Reset ¶
func (x *RoleStatus) Reset()
func (*RoleStatus) String ¶
func (x *RoleStatus) String() string
func (*RoleStatus) Validate ¶
func (m *RoleStatus) Validate() error
Validate checks the field values on RoleStatus with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RoleStatus) ValidateAll ¶
func (m *RoleStatus) ValidateAll() error
ValidateAll checks the field values on RoleStatus with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleStatusMultiError, or nil if none found.
type RoleStatusMultiError ¶
type RoleStatusMultiError []error
RoleStatusMultiError is an error wrapping multiple validation errors returned by RoleStatus.ValidateAll() if the designated constraints aren't met.
func (RoleStatusMultiError) AllErrors ¶
func (m RoleStatusMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleStatusMultiError) Error ¶
func (m RoleStatusMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleStatusValidationError ¶
type RoleStatusValidationError struct {
// contains filtered or unexported fields
}
RoleStatusValidationError is the validation error returned by RoleStatus.Validate if the designated constraints aren't met.
func (RoleStatusValidationError) Cause ¶
func (e RoleStatusValidationError) Cause() error
Cause function returns cause value.
func (RoleStatusValidationError) Error ¶
func (e RoleStatusValidationError) Error() string
Error satisfies the builtin error interface
func (RoleStatusValidationError) ErrorName ¶
func (e RoleStatusValidationError) ErrorName() string
ErrorName returns error name.
func (RoleStatusValidationError) Field ¶
func (e RoleStatusValidationError) Field() string
Field function returns field value.
func (RoleStatusValidationError) Key ¶
func (e RoleStatusValidationError) Key() bool
Key function returns key value.
func (RoleStatusValidationError) Reason ¶
func (e RoleStatusValidationError) Reason() string
Reason function returns reason value.
type RoleValidationError ¶
type RoleValidationError struct {
// contains filtered or unexported fields
}
RoleValidationError is the validation error returned by Role.Validate if the designated constraints aren't met.
func (RoleValidationError) Cause ¶
func (e RoleValidationError) Cause() error
Cause function returns cause value.
func (RoleValidationError) Error ¶
func (e RoleValidationError) Error() string
Error satisfies the builtin error interface
func (RoleValidationError) ErrorName ¶
func (e RoleValidationError) ErrorName() string
ErrorName returns error name.
func (RoleValidationError) Field ¶
func (e RoleValidationError) Field() string
Field function returns field value.
func (RoleValidationError) Key ¶
func (e RoleValidationError) Key() bool
Key function returns key value.
func (RoleValidationError) Reason ¶
func (e RoleValidationError) Reason() string
Reason function returns reason value.
type SetRolePoliciesReq ¶
type SetRolePoliciesReq struct { // 角色名 Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // 权限 PolicyRules []*PolicyRules `protobuf:"bytes,2,rep,name=policyRules,proto3" json:"policyRules,omitempty"` // contains filtered or unexported fields }
设置角色权限
func (*SetRolePoliciesReq) Descriptor
deprecated
func (*SetRolePoliciesReq) Descriptor() ([]byte, []int)
Deprecated: Use SetRolePoliciesReq.ProtoReflect.Descriptor instead.
func (*SetRolePoliciesReq) GetPolicyRules ¶
func (x *SetRolePoliciesReq) GetPolicyRules() []*PolicyRules
func (*SetRolePoliciesReq) GetRole ¶
func (x *SetRolePoliciesReq) GetRole() string
func (*SetRolePoliciesReq) ProtoMessage ¶
func (*SetRolePoliciesReq) ProtoMessage()
func (*SetRolePoliciesReq) ProtoReflect ¶
func (x *SetRolePoliciesReq) ProtoReflect() protoreflect.Message
func (*SetRolePoliciesReq) Reset ¶
func (x *SetRolePoliciesReq) Reset()
func (*SetRolePoliciesReq) String ¶
func (x *SetRolePoliciesReq) String() string
func (*SetRolePoliciesReq) Validate ¶
func (m *SetRolePoliciesReq) Validate() error
Validate checks the field values on SetRolePoliciesReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SetRolePoliciesReq) ValidateAll ¶
func (m *SetRolePoliciesReq) ValidateAll() error
ValidateAll checks the field values on SetRolePoliciesReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SetRolePoliciesReqMultiError, or nil if none found.
type SetRolePoliciesReqMultiError ¶
type SetRolePoliciesReqMultiError []error
SetRolePoliciesReqMultiError is an error wrapping multiple validation errors returned by SetRolePoliciesReq.ValidateAll() if the designated constraints aren't met.
func (SetRolePoliciesReqMultiError) AllErrors ¶
func (m SetRolePoliciesReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetRolePoliciesReqMultiError) Error ¶
func (m SetRolePoliciesReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetRolePoliciesReqValidationError ¶
type SetRolePoliciesReqValidationError struct {
// contains filtered or unexported fields
}
SetRolePoliciesReqValidationError is the validation error returned by SetRolePoliciesReq.Validate if the designated constraints aren't met.
func (SetRolePoliciesReqValidationError) Cause ¶
func (e SetRolePoliciesReqValidationError) Cause() error
Cause function returns cause value.
func (SetRolePoliciesReqValidationError) Error ¶
func (e SetRolePoliciesReqValidationError) Error() string
Error satisfies the builtin error interface
func (SetRolePoliciesReqValidationError) ErrorName ¶
func (e SetRolePoliciesReqValidationError) ErrorName() string
ErrorName returns error name.
func (SetRolePoliciesReqValidationError) Field ¶
func (e SetRolePoliciesReqValidationError) Field() string
Field function returns field value.
func (SetRolePoliciesReqValidationError) Key ¶
func (e SetRolePoliciesReqValidationError) Key() bool
Key function returns key value.
func (SetRolePoliciesReqValidationError) Reason ¶
func (e SetRolePoliciesReqValidationError) Reason() string
Reason function returns reason value.
type SetUserForRoleReq ¶
type SetUserForRoleReq struct { // 用户名 Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 角色数组 Roles []string `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
给用户设置角色
func (*SetUserForRoleReq) Descriptor
deprecated
func (*SetUserForRoleReq) Descriptor() ([]byte, []int)
Deprecated: Use SetUserForRoleReq.ProtoReflect.Descriptor instead.
func (*SetUserForRoleReq) GetRoles ¶
func (x *SetUserForRoleReq) GetRoles() []string
func (*SetUserForRoleReq) GetUsername ¶
func (x *SetUserForRoleReq) GetUsername() string
func (*SetUserForRoleReq) ProtoMessage ¶
func (*SetUserForRoleReq) ProtoMessage()
func (*SetUserForRoleReq) ProtoReflect ¶
func (x *SetUserForRoleReq) ProtoReflect() protoreflect.Message
func (*SetUserForRoleReq) Reset ¶
func (x *SetUserForRoleReq) Reset()
func (*SetUserForRoleReq) String ¶
func (x *SetUserForRoleReq) String() string
func (*SetUserForRoleReq) Validate ¶
func (m *SetUserForRoleReq) Validate() error
Validate checks the field values on SetUserForRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SetUserForRoleReq) ValidateAll ¶
func (m *SetUserForRoleReq) ValidateAll() error
ValidateAll checks the field values on SetUserForRoleReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SetUserForRoleReqMultiError, or nil if none found.
type SetUserForRoleReqMultiError ¶
type SetUserForRoleReqMultiError []error
SetUserForRoleReqMultiError is an error wrapping multiple validation errors returned by SetUserForRoleReq.ValidateAll() if the designated constraints aren't met.
func (SetUserForRoleReqMultiError) AllErrors ¶
func (m SetUserForRoleReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SetUserForRoleReqMultiError) Error ¶
func (m SetUserForRoleReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SetUserForRoleReqValidationError ¶
type SetUserForRoleReqValidationError struct {
// contains filtered or unexported fields
}
SetUserForRoleReqValidationError is the validation error returned by SetUserForRoleReq.Validate if the designated constraints aren't met.
func (SetUserForRoleReqValidationError) Cause ¶
func (e SetUserForRoleReqValidationError) Cause() error
Cause function returns cause value.
func (SetUserForRoleReqValidationError) Error ¶
func (e SetUserForRoleReqValidationError) Error() string
Error satisfies the builtin error interface
func (SetUserForRoleReqValidationError) ErrorName ¶
func (e SetUserForRoleReqValidationError) ErrorName() string
ErrorName returns error name.
func (SetUserForRoleReqValidationError) Field ¶
func (e SetUserForRoleReqValidationError) Field() string
Field function returns field value.
func (SetUserForRoleReqValidationError) Key ¶
func (e SetUserForRoleReqValidationError) Key() bool
Key function returns key value.
func (SetUserForRoleReqValidationError) Reason ¶
func (e SetUserForRoleReqValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) AddRole ¶
func (UnimplementedAuthServer) AddRole(context.Context, *AddRoleReq) (*AddRoleRep, error)
func (UnimplementedAuthServer) AddRolesForUser ¶
func (UnimplementedAuthServer) AddRolesForUser(context.Context, *SetUserForRoleReq) (*RoleStatus, error)
func (UnimplementedAuthServer) CheckAuth ¶
func (UnimplementedAuthServer) CheckAuth(context.Context, *CheckAuthReq) (*RoleStatus, error)
func (UnimplementedAuthServer) DelRole ¶
func (UnimplementedAuthServer) DelRole(context.Context, *DelRoleReq) (*RoleStatus, error)
func (UnimplementedAuthServer) DeleteRoleForUser ¶
func (UnimplementedAuthServer) DeleteRoleForUser(context.Context, *DeleteRoleForUserReq) (*RoleStatus, error)
func (UnimplementedAuthServer) DeleteRolesForUser ¶
func (UnimplementedAuthServer) DeleteRolesForUser(context.Context, *DeleteRolesForUserReq) (*RoleStatus, error)
func (UnimplementedAuthServer) EditRole ¶
func (UnimplementedAuthServer) EditRole(context.Context, *EditRoleReq) (*RoleStatus, error)
func (UnimplementedAuthServer) FullRoleList ¶
func (UnimplementedAuthServer) FullRoleList(context.Context, *emptypb.Empty) (*FullRoleListRep, error)
func (UnimplementedAuthServer) GetRolePolicies ¶
func (UnimplementedAuthServer) GetRolePolicies(context.Context, *GetRolePoliciesReq) (*GetRolePoliciesRep, error)
func (UnimplementedAuthServer) GetRolesForUser ¶
func (UnimplementedAuthServer) GetRolesForUser(context.Context, *GetRolesForUserReq) (*GetRolesForUserRep, error)
func (UnimplementedAuthServer) GetUsersForRole ¶
func (UnimplementedAuthServer) GetUsersForRole(context.Context, *GetUsersForRoleReq) (*GetUsersForRoleRep, error)
func (UnimplementedAuthServer) PageRoleList ¶
func (UnimplementedAuthServer) PageRoleList(context.Context, *PageRoleListReq) (*PageRoleListRep, error)
func (UnimplementedAuthServer) SetRolePolicies ¶
func (UnimplementedAuthServer) SetRolePolicies(context.Context, *SetRolePoliciesReq) (*RoleStatus, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.