meta

package
v0.0.0-...-d64fc3f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_meta_meta_proto protoreflect.FileDescriptor

Functions

func GetRemoteAddr

func GetRemoteAddr(ctx context.Context) (remoteAddr string, err error)

func GetToken

func GetToken(ctx context.Context) (token string, err error)

func GetUA

func GetUA(ctx context.Context) (ua string, err error)

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

Cause function returns cause value.

func (DataPermissionValidationError) Error

Error satisfies the builtin error interface

func (DataPermissionValidationError) ErrorName

func (e DataPermissionValidationError) ErrorName() string

ErrorName returns error name.

func (DataPermissionValidationError) Field

Field function returns field value.

func (DataPermissionValidationError) Key

Key function returns key value.

func (DataPermissionValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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