subscribe

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Type_name = map[int32]string{
		0: "reserve",
		1: "trojan",
		2: "vmess",
		3: "shadowsocks",
		4: "shadowsocksr",
	}
	Type_value = map[string]int32{
		"reserve":      0,
		"trojan":       1,
		"vmess":        2,
		"shadowsocks":  3,
		"shadowsocksr": 4,
	}
)

Enum value maps for Type.

View Source
var File_node_subscribe_subscribe_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Link struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type Type   `protobuf:"varint,2,opt,name=type,proto3,enum=yuhaiin.subscribe.Type" json:"type,omitempty"`
	Url  string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*Link) Descriptor deprecated

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

Deprecated: Use Link.ProtoReflect.Descriptor instead.

func (*Link) GetName

func (x *Link) GetName() string

func (*Link) GetType

func (x *Link) GetType() Type

func (*Link) GetUrl

func (x *Link) GetUrl() string

func (*Link) ProtoMessage

func (*Link) ProtoMessage()

func (*Link) ProtoReflect

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

func (*Link) Reset

func (x *Link) Reset()

func (*Link) String

func (x *Link) String() string

type Type

type Type int32
const (
	Type_reserve      Type = 0
	Type_trojan       Type = 1
	Type_vmess        Type = 2
	Type_shadowsocks  Type = 3
	Type_shadowsocksr Type = 4
)

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