v1

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationAuthAddRole = "/api.auth.v1.Auth/AddRole"
View Source
const OperationAuthAddRolesForUser = "/api.auth.v1.Auth/AddRolesForUser"
View Source
const OperationAuthCheckAuth = "/api.auth.v1.Auth/CheckAuth"
View Source
const OperationAuthDelRole = "/api.auth.v1.Auth/DelRole"
View Source
const OperationAuthDeleteRoleForUser = "/api.auth.v1.Auth/DeleteRoleForUser"
View Source
const OperationAuthDeleteRolesForUser = "/api.auth.v1.Auth/DeleteRolesForUser"
View Source
const OperationAuthEditRole = "/api.auth.v1.Auth/EditRole"
View Source
const OperationAuthFullRoleList = "/api.auth.v1.Auth/FullRoleList"
View Source
const OperationAuthGetRolePolicies = "/api.auth.v1.Auth/GetRolePolicies"
View Source
const OperationAuthGetRolesForUser = "/api.auth.v1.Auth/GetRolesForUser"
View Source
const OperationAuthGetUsersForRole = "/api.auth.v1.Auth/GetUsersForRole"
View Source
const OperationAuthPageRoleList = "/api.auth.v1.Auth/PageRoleList"
View Source
const OperationAuthSetRolePolicies = "/api.auth.v1.Auth/SetRolePolicies"

Variables

View Source
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)

View Source
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

Error satisfies the builtin error interface

func (AddRoleRepValidationError) ErrorName

func (e AddRoleRepValidationError) ErrorName() string

ErrorName returns error name.

func (AddRoleRepValidationError) Field

Field function returns field value.

func (AddRoleRepValidationError) Key

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

Error satisfies the builtin error interface

func (AddRoleReqValidationError) ErrorName

func (e AddRoleReqValidationError) ErrorName() string

ErrorName returns error name.

func (AddRoleReqValidationError) Field

Field function returns field value.

func (AddRoleReqValidationError) Key

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

Cause function returns cause value.

func (CheckAuthReqValidationError) Error

Error satisfies the builtin error interface

func (CheckAuthReqValidationError) ErrorName

func (e CheckAuthReqValidationError) ErrorName() string

ErrorName returns error name.

func (CheckAuthReqValidationError) Field

Field function returns field value.

func (CheckAuthReqValidationError) Key

Key function returns key value.

func (CheckAuthReqValidationError) Reason

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

Error satisfies the builtin error interface

func (DelRoleReqValidationError) ErrorName

func (e DelRoleReqValidationError) ErrorName() string

ErrorName returns error name.

func (DelRoleReqValidationError) Field

Field function returns field value.

func (DelRoleReqValidationError) Key

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

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

Cause function returns cause value.

func (DeleteRoleForUserReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleForUserReqValidationError) ErrorName

ErrorName returns error name.

func (DeleteRoleForUserReqValidationError) Field

Field function returns field value.

func (DeleteRoleForUserReqValidationError) Key

Key function returns key value.

func (DeleteRoleForUserReqValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteRolesForUserReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteRolesForUserReqValidationError) ErrorName

ErrorName returns error name.

func (DeleteRolesForUserReqValidationError) Field

Field function returns field value.

func (DeleteRolesForUserReqValidationError) Key

Key function returns key value.

func (DeleteRolesForUserReqValidationError) Reason

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

Cause function returns cause value.

func (EditRoleReqValidationError) Error

Error satisfies the builtin error interface

func (EditRoleReqValidationError) ErrorName

func (e EditRoleReqValidationError) ErrorName() string

ErrorName returns error name.

func (EditRoleReqValidationError) Field

Field function returns field value.

func (EditRoleReqValidationError) Key

Key function returns key value.

func (EditRoleReqValidationError) Reason

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

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

Cause function returns cause value.

func (FullRoleListRepValidationError) Error

Error satisfies the builtin error interface

func (FullRoleListRepValidationError) ErrorName

func (e FullRoleListRepValidationError) ErrorName() string

ErrorName returns error name.

func (FullRoleListRepValidationError) Field

Field function returns field value.

func (FullRoleListRepValidationError) Key

Key function returns key value.

func (FullRoleListRepValidationError) Reason

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

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

Cause function returns cause value.

func (GetRolePoliciesRepValidationError) Error

Error satisfies the builtin error interface

func (GetRolePoliciesRepValidationError) ErrorName

ErrorName returns error name.

func (GetRolePoliciesRepValidationError) Field

Field function returns field value.

func (GetRolePoliciesRepValidationError) Key

Key function returns key value.

func (GetRolePoliciesRepValidationError) Reason

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

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

Cause function returns cause value.

func (GetRolePoliciesReqValidationError) Error

Error satisfies the builtin error interface

func (GetRolePoliciesReqValidationError) ErrorName

ErrorName returns error name.

func (GetRolePoliciesReqValidationError) Field

Field function returns field value.

func (GetRolePoliciesReqValidationError) Key

Key function returns key value.

func (GetRolePoliciesReqValidationError) Reason

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

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

Cause function returns cause value.

func (GetRolesForUserRepValidationError) Error

Error satisfies the builtin error interface

func (GetRolesForUserRepValidationError) ErrorName

ErrorName returns error name.

func (GetRolesForUserRepValidationError) Field

Field function returns field value.

func (GetRolesForUserRepValidationError) Key

Key function returns key value.

func (GetRolesForUserRepValidationError) Reason

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

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

Cause function returns cause value.

func (GetRolesForUserReqValidationError) Error

Error satisfies the builtin error interface

func (GetRolesForUserReqValidationError) ErrorName

ErrorName returns error name.

func (GetRolesForUserReqValidationError) Field

Field function returns field value.

func (GetRolesForUserReqValidationError) Key

Key function returns key value.

func (GetRolesForUserReqValidationError) Reason

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

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

Cause function returns cause value.

func (GetUsersForRoleRepValidationError) Error

Error satisfies the builtin error interface

func (GetUsersForRoleRepValidationError) ErrorName

ErrorName returns error name.

func (GetUsersForRoleRepValidationError) Field

Field function returns field value.

func (GetUsersForRoleRepValidationError) Key

Key function returns key value.

func (GetUsersForRoleRepValidationError) Reason

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

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

Cause function returns cause value.

func (GetUsersForRoleReqValidationError) Error

Error satisfies the builtin error interface

func (GetUsersForRoleReqValidationError) ErrorName

ErrorName returns error name.

func (GetUsersForRoleReqValidationError) Field

Field function returns field value.

func (GetUsersForRoleReqValidationError) Key

Key function returns key value.

func (GetUsersForRoleReqValidationError) Reason

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

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

Cause function returns cause value.

func (PageRoleListRepValidationError) Error

Error satisfies the builtin error interface

func (PageRoleListRepValidationError) ErrorName

func (e PageRoleListRepValidationError) ErrorName() string

ErrorName returns error name.

func (PageRoleListRepValidationError) Field

Field function returns field value.

func (PageRoleListRepValidationError) Key

Key function returns key value.

func (PageRoleListRepValidationError) Reason

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

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

Cause function returns cause value.

func (PageRoleListReqValidationError) Error

Error satisfies the builtin error interface

func (PageRoleListReqValidationError) ErrorName

func (e PageRoleListReqValidationError) ErrorName() string

ErrorName returns error name.

func (PageRoleListReqValidationError) Field

Field function returns field value.

func (PageRoleListReqValidationError) Key

Key function returns key value.

func (PageRoleListReqValidationError) Reason

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

Cause function returns cause value.

func (PolicyRulesValidationError) Error

Error satisfies the builtin error interface

func (PolicyRulesValidationError) ErrorName

func (e PolicyRulesValidationError) ErrorName() string

ErrorName returns error name.

func (PolicyRulesValidationError) Field

Field function returns field value.

func (PolicyRulesValidationError) Key

Key function returns key value.

func (PolicyRulesValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetCreatedAt

func (x *Role) GetCreatedAt() string

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetRoleId

func (x *Role) GetRoleId() uint64

func (*Role) GetUpdatedAt

func (x *Role) GetUpdatedAt() string

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect

func (x *Role) ProtoReflect() protoreflect.Message

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

func (*Role) Validate

func (m *Role) Validate() error

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

func (m *Role) ValidateAll() error

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

Error satisfies the builtin error interface

func (RoleStatusValidationError) ErrorName

func (e RoleStatusValidationError) ErrorName() string

ErrorName returns error name.

func (RoleStatusValidationError) Field

Field function returns field value.

func (RoleStatusValidationError) Key

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

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

Cause function returns cause value.

func (SetRolePoliciesReqValidationError) Error

Error satisfies the builtin error interface

func (SetRolePoliciesReqValidationError) ErrorName

ErrorName returns error name.

func (SetRolePoliciesReqValidationError) Field

Field function returns field value.

func (SetRolePoliciesReqValidationError) Key

Key function returns key value.

func (SetRolePoliciesReqValidationError) Reason

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

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

Cause function returns cause value.

func (SetUserForRoleReqValidationError) Error

Error satisfies the builtin error interface

func (SetUserForRoleReqValidationError) ErrorName

ErrorName returns error name.

func (SetUserForRoleReqValidationError) Field

Field function returns field value.

func (SetUserForRoleReqValidationError) Key

Key function returns key value.

func (SetUserForRoleReqValidationError) Reason

Reason function returns reason value.

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServer) AddRole

func (UnimplementedAuthServer) AddRolesForUser

func (UnimplementedAuthServer) CheckAuth

func (UnimplementedAuthServer) DelRole

func (UnimplementedAuthServer) DeleteRoleForUser

func (UnimplementedAuthServer) DeleteRolesForUser

func (UnimplementedAuthServer) EditRole

func (UnimplementedAuthServer) FullRoleList

func (UnimplementedAuthServer) GetRolePolicies

func (UnimplementedAuthServer) GetRolesForUser

func (UnimplementedAuthServer) GetUsersForRole

func (UnimplementedAuthServer) PageRoleList

func (UnimplementedAuthServer) SetRolePolicies

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL