pb

package
v0.0.0-...-407c48e Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Config

type Config struct {
	Stun     *Stun      `protobuf:"bytes,1,opt,name=stun,proto3" json:"stun,omitempty"`
	Dns      *string    `protobuf:"bytes,2,opt,name=dns,proto3,oneof" json:"dns,omitempty"`
	Services []*Service `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"`
	// Types that are assignable to Ns:
	//
	//	*Config_Dnspod
	Ns isConfig_Ns `protobuf_oneof:"ns"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetDns

func (x *Config) GetDns() string

func (*Config) GetDnspod

func (x *Config) GetDnspod() *DNSPod

func (*Config) GetNs

func (m *Config) GetNs() isConfig_Ns

func (*Config) GetServices

func (x *Config) GetServices() []*Service

func (*Config) GetStun

func (x *Config) GetStun() *Stun

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

func (*Config) Validate

func (m *Config) Validate() error

Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Config) ValidateAll

func (m *Config) ValidateAll() error

ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.

type ConfigMultiError

type ConfigMultiError []error

ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.

func (ConfigMultiError) AllErrors

func (m ConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigMultiError) Error

func (m ConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConfigValidationError

type ConfigValidationError struct {
	// contains filtered or unexported fields
}

ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.

func (ConfigValidationError) Cause

func (e ConfigValidationError) Cause() error

Cause function returns cause value.

func (ConfigValidationError) Error

func (e ConfigValidationError) Error() string

Error satisfies the builtin error interface

func (ConfigValidationError) ErrorName

func (e ConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigValidationError) Field

func (e ConfigValidationError) Field() string

Field function returns field value.

func (ConfigValidationError) Key

func (e ConfigValidationError) Key() bool

Key function returns key value.

func (ConfigValidationError) Reason

func (e ConfigValidationError) Reason() string

Reason function returns reason value.

type Config_Dnspod

type Config_Dnspod struct {
	Dnspod *DNSPod `protobuf:"bytes,4,opt,name=dnspod,proto3,oneof"`
}

type DNSPod

type DNSPod struct {
	SecretId  string `protobuf:"bytes,1,opt,name=secret_id,json=secretId,proto3" json:"secret_id,omitempty"`
	SecretKey string `protobuf:"bytes,2,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
	// contains filtered or unexported fields
}

func (*DNSPod) Descriptor deprecated

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

Deprecated: Use DNSPod.ProtoReflect.Descriptor instead.

func (*DNSPod) GetSecretId

func (x *DNSPod) GetSecretId() string

func (*DNSPod) GetSecretKey

func (x *DNSPod) GetSecretKey() string

func (*DNSPod) ProtoMessage

func (*DNSPod) ProtoMessage()

func (*DNSPod) ProtoReflect

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

func (*DNSPod) Reset

func (x *DNSPod) Reset()

func (*DNSPod) String

func (x *DNSPod) String() string

func (*DNSPod) Validate

func (m *DNSPod) Validate() error

Validate checks the field values on DNSPod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DNSPod) ValidateAll

func (m *DNSPod) ValidateAll() error

ValidateAll checks the field values on DNSPod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DNSPodMultiError, or nil if none found.

type DNSPodMultiError

type DNSPodMultiError []error

DNSPodMultiError is an error wrapping multiple validation errors returned by DNSPod.ValidateAll() if the designated constraints aren't met.

func (DNSPodMultiError) AllErrors

func (m DNSPodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DNSPodMultiError) Error

func (m DNSPodMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DNSPodValidationError

type DNSPodValidationError struct {
	// contains filtered or unexported fields
}

DNSPodValidationError is the validation error returned by DNSPod.Validate if the designated constraints aren't met.

func (DNSPodValidationError) Cause

func (e DNSPodValidationError) Cause() error

Cause function returns cause value.

func (DNSPodValidationError) Error

func (e DNSPodValidationError) Error() string

Error satisfies the builtin error interface

func (DNSPodValidationError) ErrorName

func (e DNSPodValidationError) ErrorName() string

ErrorName returns error name.

func (DNSPodValidationError) Field

func (e DNSPodValidationError) Field() string

Field function returns field value.

func (DNSPodValidationError) Key

func (e DNSPodValidationError) Key() bool

Key function returns key value.

func (DNSPodValidationError) Reason

func (e DNSPodValidationError) Reason() string

Reason function returns reason value.

type Service

type Service struct {
	Domain   string            `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"`
	Network  string            `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Local    string            `protobuf:"bytes,3,opt,name=local,proto3" json:"local,omitempty"`
	Priority *uint32           `protobuf:"varint,4,opt,name=priority,proto3,oneof" json:"priority,omitempty"`
	Target   string            `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty"`
	Alpn     []string          `protobuf:"bytes,6,rep,name=alpn,proto3" json:"alpn,omitempty"`
	Hint     bool              `protobuf:"varint,7,opt,name=hint,proto3" json:"hint,omitempty"`
	Params   map[string]string `` /* 153-byte string literal not displayed */
	Https    bool              `protobuf:"varint,9,opt,name=https,proto3" json:"https,omitempty"`
	Rid      string            `protobuf:"bytes,10,opt,name=rid,proto3" json:"rid,omitempty"`
	A        bool              `protobuf:"varint,11,opt,name=a,proto3" json:"a,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetA

func (x *Service) GetA() bool

func (*Service) GetAlpn

func (x *Service) GetAlpn() []string

func (*Service) GetDomain

func (x *Service) GetDomain() string

func (*Service) GetHint

func (x *Service) GetHint() bool

func (*Service) GetHttps

func (x *Service) GetHttps() bool

func (*Service) GetLocal

func (x *Service) GetLocal() string

func (*Service) GetNetwork

func (x *Service) GetNetwork() string

func (*Service) GetParams

func (x *Service) GetParams() map[string]string

func (*Service) GetPriority

func (x *Service) GetPriority() uint32

func (*Service) GetRid

func (x *Service) GetRid() string

func (*Service) GetTarget

func (x *Service) GetTarget() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

func (*Service) Validate

func (m *Service) Validate() error

Validate checks the field values on Service with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Service) ValidateAll

func (m *Service) ValidateAll() error

ValidateAll checks the field values on Service with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ServiceMultiError, or nil if none found.

type ServiceMultiError

type ServiceMultiError []error

ServiceMultiError is an error wrapping multiple validation errors returned by Service.ValidateAll() if the designated constraints aren't met.

func (ServiceMultiError) AllErrors

func (m ServiceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ServiceMultiError) Error

func (m ServiceMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ServiceValidationError

type ServiceValidationError struct {
	// contains filtered or unexported fields
}

ServiceValidationError is the validation error returned by Service.Validate if the designated constraints aren't met.

func (ServiceValidationError) Cause

func (e ServiceValidationError) Cause() error

Cause function returns cause value.

func (ServiceValidationError) Error

func (e ServiceValidationError) Error() string

Error satisfies the builtin error interface

func (ServiceValidationError) ErrorName

func (e ServiceValidationError) ErrorName() string

ErrorName returns error name.

func (ServiceValidationError) Field

func (e ServiceValidationError) Field() string

Field function returns field value.

func (ServiceValidationError) Key

func (e ServiceValidationError) Key() bool

Key function returns key value.

func (ServiceValidationError) Reason

func (e ServiceValidationError) Reason() string

Reason function returns reason value.

type Stun

type Stun struct {
	Tcp      *Stun_TCP `protobuf:"bytes,1,opt,name=tcp,proto3" json:"tcp,omitempty"`
	Udp      *Stun_UDP `protobuf:"bytes,2,opt,name=udp,proto3" json:"udp,omitempty"`
	Interval *uint64   `protobuf:"varint,3,opt,name=interval,proto3,oneof" json:"interval,omitempty"`
	// contains filtered or unexported fields
}

func (*Stun) Descriptor deprecated

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

Deprecated: Use Stun.ProtoReflect.Descriptor instead.

func (*Stun) GetInterval

func (x *Stun) GetInterval() uint64

func (*Stun) GetTcp

func (x *Stun) GetTcp() *Stun_TCP

func (*Stun) GetUdp

func (x *Stun) GetUdp() *Stun_UDP

func (*Stun) ProtoMessage

func (*Stun) ProtoMessage()

func (*Stun) ProtoReflect

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

func (*Stun) Reset

func (x *Stun) Reset()

func (*Stun) String

func (x *Stun) String() string

func (*Stun) Validate

func (m *Stun) Validate() error

Validate checks the field values on Stun with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Stun) ValidateAll

func (m *Stun) ValidateAll() error

ValidateAll checks the field values on Stun with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StunMultiError, or nil if none found.

type StunMultiError

type StunMultiError []error

StunMultiError is an error wrapping multiple validation errors returned by Stun.ValidateAll() if the designated constraints aren't met.

func (StunMultiError) AllErrors

func (m StunMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StunMultiError) Error

func (m StunMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StunValidationError

type StunValidationError struct {
	// contains filtered or unexported fields
}

StunValidationError is the validation error returned by Stun.Validate if the designated constraints aren't met.

func (StunValidationError) Cause

func (e StunValidationError) Cause() error

Cause function returns cause value.

func (StunValidationError) Error

func (e StunValidationError) Error() string

Error satisfies the builtin error interface

func (StunValidationError) ErrorName

func (e StunValidationError) ErrorName() string

ErrorName returns error name.

func (StunValidationError) Field

func (e StunValidationError) Field() string

Field function returns field value.

func (StunValidationError) Key

func (e StunValidationError) Key() bool

Key function returns key value.

func (StunValidationError) Reason

func (e StunValidationError) Reason() string

Reason function returns reason value.

type Stun_TCP

type Stun_TCP struct {
	Addr         string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	KeepaliveUrl string `protobuf:"bytes,2,opt,name=keepalive_url,json=keepaliveUrl,proto3" json:"keepalive_url,omitempty"`
	// contains filtered or unexported fields
}

func (*Stun_TCP) Descriptor deprecated

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

Deprecated: Use Stun_TCP.ProtoReflect.Descriptor instead.

func (*Stun_TCP) GetAddr

func (x *Stun_TCP) GetAddr() string

func (*Stun_TCP) GetKeepaliveUrl

func (x *Stun_TCP) GetKeepaliveUrl() string

func (*Stun_TCP) ProtoMessage

func (*Stun_TCP) ProtoMessage()

func (*Stun_TCP) ProtoReflect

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

func (*Stun_TCP) Reset

func (x *Stun_TCP) Reset()

func (*Stun_TCP) String

func (x *Stun_TCP) String() string

func (*Stun_TCP) Validate

func (m *Stun_TCP) Validate() error

Validate checks the field values on Stun_TCP with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Stun_TCP) ValidateAll

func (m *Stun_TCP) ValidateAll() error

ValidateAll checks the field values on Stun_TCP with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Stun_TCPMultiError, or nil if none found.

type Stun_TCPMultiError

type Stun_TCPMultiError []error

Stun_TCPMultiError is an error wrapping multiple validation errors returned by Stun_TCP.ValidateAll() if the designated constraints aren't met.

func (Stun_TCPMultiError) AllErrors

func (m Stun_TCPMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Stun_TCPMultiError) Error

func (m Stun_TCPMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Stun_TCPValidationError

type Stun_TCPValidationError struct {
	// contains filtered or unexported fields
}

Stun_TCPValidationError is the validation error returned by Stun_TCP.Validate if the designated constraints aren't met.

func (Stun_TCPValidationError) Cause

func (e Stun_TCPValidationError) Cause() error

Cause function returns cause value.

func (Stun_TCPValidationError) Error

func (e Stun_TCPValidationError) Error() string

Error satisfies the builtin error interface

func (Stun_TCPValidationError) ErrorName

func (e Stun_TCPValidationError) ErrorName() string

ErrorName returns error name.

func (Stun_TCPValidationError) Field

func (e Stun_TCPValidationError) Field() string

Field function returns field value.

func (Stun_TCPValidationError) Key

func (e Stun_TCPValidationError) Key() bool

Key function returns key value.

func (Stun_TCPValidationError) Reason

func (e Stun_TCPValidationError) Reason() string

Reason function returns reason value.

type Stun_UDP

type Stun_UDP struct {
	Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// contains filtered or unexported fields
}

func (*Stun_UDP) Descriptor deprecated

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

Deprecated: Use Stun_UDP.ProtoReflect.Descriptor instead.

func (*Stun_UDP) GetAddr

func (x *Stun_UDP) GetAddr() string

func (*Stun_UDP) ProtoMessage

func (*Stun_UDP) ProtoMessage()

func (*Stun_UDP) ProtoReflect

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

func (*Stun_UDP) Reset

func (x *Stun_UDP) Reset()

func (*Stun_UDP) String

func (x *Stun_UDP) String() string

func (*Stun_UDP) Validate

func (m *Stun_UDP) Validate() error

Validate checks the field values on Stun_UDP with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Stun_UDP) ValidateAll

func (m *Stun_UDP) ValidateAll() error

ValidateAll checks the field values on Stun_UDP with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in Stun_UDPMultiError, or nil if none found.

type Stun_UDPMultiError

type Stun_UDPMultiError []error

Stun_UDPMultiError is an error wrapping multiple validation errors returned by Stun_UDP.ValidateAll() if the designated constraints aren't met.

func (Stun_UDPMultiError) AllErrors

func (m Stun_UDPMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Stun_UDPMultiError) Error

func (m Stun_UDPMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type Stun_UDPValidationError

type Stun_UDPValidationError struct {
	// contains filtered or unexported fields
}

Stun_UDPValidationError is the validation error returned by Stun_UDP.Validate if the designated constraints aren't met.

func (Stun_UDPValidationError) Cause

func (e Stun_UDPValidationError) Cause() error

Cause function returns cause value.

func (Stun_UDPValidationError) Error

func (e Stun_UDPValidationError) Error() string

Error satisfies the builtin error interface

func (Stun_UDPValidationError) ErrorName

func (e Stun_UDPValidationError) ErrorName() string

ErrorName returns error name.

func (Stun_UDPValidationError) Field

func (e Stun_UDPValidationError) Field() string

Field function returns field value.

func (Stun_UDPValidationError) Key

func (e Stun_UDPValidationError) Key() bool

Key function returns key value.

func (Stun_UDPValidationError) Reason

func (e Stun_UDPValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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