tag

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TagType_name = map[int32]string{
		0: "node",
		1: "mirror",
	}
	TagType_value = map[string]int32{
		"node":   0,
		"mirror": 1,
	}
)

Enum value maps for TagType.

View Source
var File_node_tag_tag_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type TagType

type TagType int32
const (
	TagType_node   TagType = 0
	TagType_mirror TagType = 1
)

func (TagType) Descriptor

func (TagType) Descriptor() protoreflect.EnumDescriptor

func (TagType) Enum

func (x TagType) Enum() *TagType

func (TagType) EnumDescriptor deprecated

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

Deprecated: Use TagType.Descriptor instead.

func (TagType) Number

func (x TagType) Number() protoreflect.EnumNumber

func (TagType) String

func (x TagType) String() string

func (TagType) Type

func (TagType) Type() protoreflect.EnumType

type Tags

type Tags struct {
	Tag  string   `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	Type TagType  `protobuf:"varint,3,opt,name=type,proto3,enum=yuhaiin.tag.TagType" json:"type,omitempty"`
	Hash []string `protobuf:"bytes,2,rep,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*Tags) Descriptor deprecated

func (*Tags) Descriptor() ([]byte, []int)

Deprecated: Use Tags.ProtoReflect.Descriptor instead.

func (*Tags) GetHash

func (x *Tags) GetHash() []string

func (*Tags) GetTag

func (x *Tags) GetTag() string

func (*Tags) GetType

func (x *Tags) GetType() TagType

func (*Tags) ProtoMessage

func (*Tags) ProtoMessage()

func (*Tags) ProtoReflect

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

func (*Tags) Reset

func (x *Tags) Reset()

func (*Tags) String

func (x *Tags) String() string

Jump to

Keyboard shortcuts

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