Documentation ¶
Index ¶
- Variables
- func GetRemoteAddr(ctx context.Context) (remoteAddr string, err error)
- func GetToken(ctx context.Context) (token string, err error)
- func GetUA(ctx context.Context) (ua string, err error)
- type DataPermission
- func (*DataPermission) Descriptor() ([]byte, []int)deprecated
- func (x *DataPermission) GetDataScope() string
- func (x *DataPermission) GetRoleId() uint64
- func (x *DataPermission) GetRoleKey() string
- func (x *DataPermission) GetUserId() uint64
- func (*DataPermission) ProtoMessage()
- func (x *DataPermission) ProtoReflect() protoreflect.Message
- func (x *DataPermission) Reset()
- func (x *DataPermission) String() string
- func (m *DataPermission) Validate() error
- type DataPermissionValidationError
- func (e DataPermissionValidationError) Cause() error
- func (e DataPermissionValidationError) Error() string
- func (e DataPermissionValidationError) ErrorName() string
- func (e DataPermissionValidationError) Field() string
- func (e DataPermissionValidationError) Key() bool
- func (e DataPermissionValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pkg_meta_meta_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type DataPermission ¶
type DataPermission struct { DataScope string `protobuf:"bytes,1,opt,name=dataScope,proto3" json:"dataScope,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` RoleId uint64 `protobuf:"varint,3,opt,name=roleId,proto3" json:"roleId,omitempty"` RoleKey string `protobuf:"bytes,4,opt,name=roleKey,proto3" json:"roleKey,omitempty"` // contains filtered or unexported fields }
func GetDataPermissions ¶
func GetDataPermissions(ctx context.Context) (permission *DataPermission, err error)
func (*DataPermission) Descriptor
deprecated
func (*DataPermission) Descriptor() ([]byte, []int)
Deprecated: Use DataPermission.ProtoReflect.Descriptor instead.
func (*DataPermission) GetDataScope ¶
func (x *DataPermission) GetDataScope() string
func (*DataPermission) GetRoleId ¶
func (x *DataPermission) GetRoleId() uint64
func (*DataPermission) GetRoleKey ¶
func (x *DataPermission) GetRoleKey() string
func (*DataPermission) GetUserId ¶
func (x *DataPermission) GetUserId() uint64
func (*DataPermission) ProtoMessage ¶
func (*DataPermission) ProtoMessage()
func (*DataPermission) ProtoReflect ¶
func (x *DataPermission) ProtoReflect() protoreflect.Message
func (*DataPermission) Reset ¶
func (x *DataPermission) Reset()
func (*DataPermission) String ¶
func (x *DataPermission) String() string
func (*DataPermission) Validate ¶
func (m *DataPermission) Validate() error
Validate checks the field values on DataPermission with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DataPermissionValidationError ¶
type DataPermissionValidationError struct {
// contains filtered or unexported fields
}
DataPermissionValidationError is the validation error returned by DataPermission.Validate if the designated constraints aren't met.
func (DataPermissionValidationError) Cause ¶
func (e DataPermissionValidationError) Cause() error
Cause function returns cause value.
func (DataPermissionValidationError) Error ¶
func (e DataPermissionValidationError) Error() string
Error satisfies the builtin error interface
func (DataPermissionValidationError) ErrorName ¶
func (e DataPermissionValidationError) ErrorName() string
ErrorName returns error name.
func (DataPermissionValidationError) Field ¶
func (e DataPermissionValidationError) Field() string
Field function returns field value.
func (DataPermissionValidationError) Key ¶
func (e DataPermissionValidationError) Key() bool
Key function returns key value.
func (DataPermissionValidationError) Reason ¶
func (e DataPermissionValidationError) Reason() string
Reason function returns reason value.
Click to show internal directories.
Click to hide internal directories.