tag

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 5 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) 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 {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

func (*Tags) ClearTag added in v0.3.8

func (x *Tags) ClearTag()

func (*Tags) ClearType added in v0.3.8

func (x *Tags) ClearType()

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) HasTag added in v0.3.8

func (x *Tags) HasTag() bool

func (*Tags) HasType added in v0.3.8

func (x *Tags) HasType() bool

func (*Tags) ProtoMessage

func (*Tags) ProtoMessage()

func (*Tags) ProtoReflect

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

func (*Tags) Reset

func (x *Tags) Reset()

func (*Tags) SetHash added in v0.3.8

func (x *Tags) SetHash(v []string)

func (*Tags) SetTag added in v0.3.8

func (x *Tags) SetTag(v string)

func (*Tags) SetType added in v0.3.8

func (x *Tags) SetType(v TagType)

func (*Tags) String

func (x *Tags) String() string

type Tags_builder added in v0.3.8

type Tags_builder struct {
	Tag  *string
	Type *TagType
	Hash []string
	// contains filtered or unexported fields
}

func (Tags_builder) Build added in v0.3.8

func (b0 Tags_builder) Build() *Tags

Jump to

Keyboard shortcuts

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