Documentation ¶
Index ¶
- Variables
- type VisiableMode
- func (VisiableMode) Descriptor() protoreflect.EnumDescriptor
- func (x VisiableMode) Enum() *VisiableMode
- func (VisiableMode) EnumDescriptor() ([]byte, []int)deprecated
- func (t VisiableMode) Equal(target VisiableMode) bool
- func (t VisiableMode) IsIn(targets ...VisiableMode) bool
- func (t VisiableMode) MarshalJSON() ([]byte, error)
- func (x VisiableMode) Number() protoreflect.EnumNumber
- func (x VisiableMode) String() string
- func (VisiableMode) Type() protoreflect.EnumType
- func (t *VisiableMode) UnmarshalJSON(b []byte) error
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) Descriptor() protoreflect.EnumDescriptor
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) MarshalJSON ¶
func (t VisiableMode) MarshalJSON() ([]byte, error)
MarshalJSON todo
func (VisiableMode) Number ¶
func (x VisiableMode) Number() protoreflect.EnumNumber
func (VisiableMode) String ¶
func (x VisiableMode) String() string
func (VisiableMode) Type ¶
func (VisiableMode) Type() protoreflect.EnumType
func (*VisiableMode) UnmarshalJSON ¶
func (t *VisiableMode) UnmarshalJSON(b []byte) error
UnmarshalJSON todo
Click to show internal directories.
Click to hide internal directories.