resource

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 7 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VisiableMode_name = map[int32]string{
		0: "NAMESPACE",
		1: "GLOBAL",
	}
	VisiableMode_value = map[string]int32{
		"NAMESPACE": 0,
		"GLOBAL":    1,
	}
)

Enum value maps for VisiableMode.

View Source
var File_pb_resource_base_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type VisiableMode

type VisiableMode int32
const (
	// 默认Namespace可见
	VisiableMode_NAMESPACE VisiableMode = 0
	// 全局可见
	VisiableMode_GLOBAL VisiableMode = 1
)

func ParseVisiableModeFromString

func ParseVisiableModeFromString(str string) (VisiableMode, error)

ParseVisiableModeFromString Parse VisiableMode from string

func (VisiableMode) Descriptor

func (VisiableMode) Enum

func (x VisiableMode) Enum() *VisiableMode

func (VisiableMode) EnumDescriptor deprecated

func (VisiableMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use VisiableMode.Descriptor instead.

func (VisiableMode) Equal

func (t VisiableMode) Equal(target VisiableMode) bool

Equal type compare

func (VisiableMode) IsIn

func (t VisiableMode) IsIn(targets ...VisiableMode) bool

IsIn todo

func (VisiableMode) MarshalJSON

func (t VisiableMode) MarshalJSON() ([]byte, error)

MarshalJSON todo

func (VisiableMode) Number

func (VisiableMode) String

func (x VisiableMode) String() string

func (VisiableMode) Type

func (*VisiableMode) UnmarshalJSON

func (t *VisiableMode) UnmarshalJSON(b []byte) error

UnmarshalJSON todo

Jump to

Keyboard shortcuts

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