Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetDns() string
- func (x *Config) GetDnspod() *DNSPod
- func (m *Config) GetNs() isConfig_Ns
- func (x *Config) GetServices() []*Service
- func (x *Config) GetStun() *Stun
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigMultiError
- type ConfigValidationError
- type Config_Dnspod
- type DNSPod
- func (*DNSPod) Descriptor() ([]byte, []int)deprecated
- func (x *DNSPod) GetSecretId() string
- func (x *DNSPod) GetSecretKey() string
- func (*DNSPod) ProtoMessage()
- func (x *DNSPod) ProtoReflect() protoreflect.Message
- func (x *DNSPod) Reset()
- func (x *DNSPod) String() string
- func (m *DNSPod) Validate() error
- func (m *DNSPod) ValidateAll() error
- type DNSPodMultiError
- type DNSPodValidationError
- type Service
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetA() bool
- func (x *Service) GetAlpn() []string
- func (x *Service) GetDomain() string
- func (x *Service) GetHint() bool
- func (x *Service) GetHttps() bool
- func (x *Service) GetLocal() string
- func (x *Service) GetNetwork() string
- func (x *Service) GetParams() map[string]string
- func (x *Service) GetPriority() uint32
- func (x *Service) GetRid() string
- func (x *Service) GetTarget() string
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- func (m *Service) Validate() error
- func (m *Service) ValidateAll() error
- type ServiceMultiError
- type ServiceValidationError
- type Stun
- func (*Stun) Descriptor() ([]byte, []int)deprecated
- func (x *Stun) GetInterval() uint64
- func (x *Stun) GetTcp() *Stun_TCP
- func (x *Stun) GetUdp() *Stun_UDP
- func (*Stun) ProtoMessage()
- func (x *Stun) ProtoReflect() protoreflect.Message
- func (x *Stun) Reset()
- func (x *Stun) String() string
- func (m *Stun) Validate() error
- func (m *Stun) ValidateAll() error
- type StunMultiError
- type StunValidationError
- type Stun_TCP
- func (*Stun_TCP) Descriptor() ([]byte, []int)deprecated
- func (x *Stun_TCP) GetAddr() string
- func (x *Stun_TCP) GetKeepaliveUrl() string
- func (*Stun_TCP) ProtoMessage()
- func (x *Stun_TCP) ProtoReflect() protoreflect.Message
- func (x *Stun_TCP) Reset()
- func (x *Stun_TCP) String() string
- func (m *Stun_TCP) Validate() error
- func (m *Stun_TCP) ValidateAll() error
- type Stun_TCPMultiError
- type Stun_TCPValidationError
- type Stun_UDP
- func (*Stun_UDP) Descriptor() ([]byte, []int)deprecated
- func (x *Stun_UDP) GetAddr() string
- func (*Stun_UDP) ProtoMessage()
- func (x *Stun_UDP) ProtoReflect() protoreflect.Message
- func (x *Stun_UDP) Reset()
- func (x *Stun_UDP) String() string
- func (m *Stun_UDP) Validate() error
- func (m *Stun_UDP) ValidateAll() error
- type Stun_UDPMultiError
- type Stun_UDPValidationError
Constants ¶
This section is empty.
Variables ¶
var File_conf_proto protoreflect.FileDescriptor
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) GetServices ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
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 ¶
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) GetSecretId ¶
func (*DNSPod) GetSecretKey ¶
func (*DNSPod) ProtoMessage ¶
func (*DNSPod) ProtoMessage()
func (*DNSPod) ProtoReflect ¶
func (x *DNSPod) ProtoReflect() protoreflect.Message
func (*DNSPod) Validate ¶
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 ¶
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) GetNetwork ¶
func (*Service) GetPriority ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
func (*Service) Validate ¶
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 ¶
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) GetInterval ¶
func (*Stun) ProtoMessage ¶
func (*Stun) ProtoMessage()
func (*Stun) ProtoReflect ¶
func (x *Stun) ProtoReflect() protoreflect.Message
func (*Stun) Validate ¶
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 ¶
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) GetKeepaliveUrl ¶
func (*Stun_TCP) ProtoMessage ¶
func (*Stun_TCP) ProtoMessage()
func (*Stun_TCP) ProtoReflect ¶
func (x *Stun_TCP) ProtoReflect() protoreflect.Message
func (*Stun_TCP) Validate ¶
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 ¶
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) ProtoMessage ¶
func (*Stun_UDP) ProtoMessage()
func (*Stun_UDP) ProtoReflect ¶
func (x *Stun_UDP) ProtoReflect() protoreflect.Message
func (*Stun_UDP) Validate ¶
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 ¶
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.