tag

package
v0.3.1-rc.6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Enum value maps for Type.

View Source
var File_node_tag_tag_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Tags

type Tags struct {
	Tag  string   `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	Type Type     `protobuf:"varint,3,opt,name=type,proto3,enum=yuhaiin.tag.Type" 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() Type

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

type Type

type Type int32
const (
	Type_node   Type = 0
	Type_mirror Type = 1
)

func (Type) Descriptor

func (Type) Descriptor() protoreflect.EnumDescriptor

func (Type) Enum

func (x Type) Enum() *Type

func (Type) EnumDescriptor deprecated

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

Deprecated: Use Type.Descriptor instead.

func (Type) Number

func (x Type) Number() protoreflect.EnumNumber

func (Type) String

func (x Type) String() string

func (Type) Type

func (Type) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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