Documentation ¶
Index ¶
- Variables
- func Dialer(p *Point) (r netapi.Proxy, err error)
- func IsBootstrap(p netapi.Proxy) bool
- func ParseTLSConfig(t *protocol.TlsConfig) *tls.Config
- func RegisterProtocol[T protocol.IsProtocol_Protocol](wrap func(T) WrapProxy)
- func SetBootstrap(p netapi.Proxy)
- type Origin
- type Point
- func (*Point) Descriptor() ([]byte, []int)deprecated
- func (x *Point) GetGroup() string
- func (x *Point) GetHash() string
- func (x *Point) GetName() string
- func (x *Point) GetOrigin() Origin
- func (x *Point) GetProtocols() []*protocol.Protocol
- func (*Point) ProtoMessage()
- func (x *Point) ProtoReflect() protoreflect.Message
- func (x *Point) Reset()
- func (x *Point) String() string
- type WrapProxy
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Origin_name = map[int32]string{ 0: "reserve", 101: "remote", 102: "manual", } Origin_value = map[string]int32{ "reserve": 0, "remote": 101, "manual": 102, } )
Enum value maps for Origin.
View Source
var File_node_point_point_proto protoreflect.FileDescriptor
Functions ¶
func IsBootstrap ¶ added in v0.3.4
func RegisterProtocol ¶ added in v0.3.3
func RegisterProtocol[T protocol.IsProtocol_Protocol](wrap func(T) WrapProxy)
func SetBootstrap ¶ added in v0.3.4
Types ¶
type Origin ¶
type Origin int32
func (Origin) Descriptor ¶
func (Origin) Descriptor() protoreflect.EnumDescriptor
func (Origin) EnumDescriptor
deprecated
func (Origin) Number ¶
func (x Origin) Number() protoreflect.EnumNumber
func (Origin) Type ¶
func (Origin) Type() protoreflect.EnumType
type Point ¶
type Point struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` Origin Origin `protobuf:"varint,4,opt,name=origin,proto3,enum=yuhaiin.point.Origin" json:"origin,omitempty"` // will use protocols' order to create dialer Protocols []*protocol.Protocol `protobuf:"bytes,5,rep,name=protocols,proto3" json:"protocols,omitempty"` // contains filtered or unexported fields }
func (*Point) Descriptor
deprecated
func (*Point) GetProtocols ¶
func (*Point) ProtoMessage ¶
func (*Point) ProtoMessage()
func (*Point) ProtoReflect ¶
func (x *Point) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.