bind

package
v0.7.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v interface{}) ([]byte, error)

Marshal returns the encoding of v

func Unmarshal

func Unmarshal(config []byte, v interface{}) error

Unmarshal parses the encoded data and stores the result

Types

type AcmeTLSConfig

type AcmeTLSConfig struct {
	Domains  []string
	CacheDir string
}

AcmeTLSConfig acme@tls.TLS

func (AcmeTLSConfig) MarshalJSON

func (m AcmeTLSConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type BalancePolicy added in v0.5.0

type BalancePolicy interface {
	Component
	// contains filtered or unexported methods
}

BalancePolicy balance.Policy

type Component

type Component interface {
	// contains filtered or unexported methods
}

Component is basic definition of Component

type ComponentsOnceConfig

type ComponentsOnceConfig struct {
	Components []Component
}

ComponentsOnceConfig components@once.Once

func (ComponentsOnceConfig) MarshalJSON

func (m ComponentsOnceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type CompressNetHTTPHandlerConfig

type CompressNetHTTPHandlerConfig struct {
	Level   int
	Handler HTTPHandler
}

CompressNetHTTPHandlerConfig compress@net/http.Handler

func (CompressNetHTTPHandlerConfig) MarshalJSON

func (m CompressNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type ConfigDumpNetHTTPHandlerConfig

type ConfigDumpNetHTTPHandlerConfig struct {
	ReadOnly bool
}

ConfigDumpNetHTTPHandlerConfig config_dump@net/http.Handler

func (ConfigDumpNetHTTPHandlerConfig) MarshalJSON

func (m ConfigDumpNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefBalancePolicyConfig added in v0.5.0

type DefBalancePolicyConfig struct {
	Name string
	Def  BalancePolicy `json:",omitempty"`
}

DefBalancePolicyConfig def@balance.Policy

func (DefBalancePolicyConfig) MarshalJSON added in v0.5.0

func (m DefBalancePolicyConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefIoReaderConfig

type DefIoReaderConfig struct {
	Name string
	Def  IoReader `json:",omitempty"`
}

DefIoReaderConfig def@io.Reader

func (DefIoReaderConfig) MarshalJSON

func (m DefIoReaderConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefIoWriterConfig

type DefIoWriterConfig struct {
	Name string
	Def  IoWriter `json:",omitempty"`
}

DefIoWriterConfig def@io.Writer

func (DefIoWriterConfig) MarshalJSON

func (m DefIoWriterConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefNetConnConfig

type DefNetConnConfig struct {
	Name string
	Def  NetConn `json:",omitempty"`
}

DefNetConnConfig def@net.Conn

func (DefNetConnConfig) MarshalJSON

func (m DefNetConnConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefNetHTTPHandlerConfig

type DefNetHTTPHandlerConfig struct {
	Name string
	Def  HTTPHandler `json:",omitempty"`
}

DefNetHTTPHandlerConfig def@net/http.Handler

func (DefNetHTTPHandlerConfig) MarshalJSON

func (m DefNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefNetPacketConnConfig

type DefNetPacketConnConfig struct {
	Name string
	Def  NetPacketConn `json:",omitempty"`
}

DefNetPacketConnConfig def@net.PacketConn

func (DefNetPacketConnConfig) MarshalJSON

func (m DefNetPacketConnConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefOnceConfig

type DefOnceConfig struct {
	Name string
	Def  Once `json:",omitempty"`
}

DefOnceConfig def@once.Once

func (DefOnceConfig) MarshalJSON

func (m DefOnceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefPacketHandlerConfig

type DefPacketHandlerConfig struct {
	Name string
	Def  PacketHandler `json:",omitempty"`
}

DefPacketHandlerConfig def@packet.Handler

func (DefPacketHandlerConfig) MarshalJSON

func (m DefPacketHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefPacketListenConfigConfig

type DefPacketListenConfigConfig struct {
	Name string
	Def  PacketListenConfig `json:",omitempty"`
}

DefPacketListenConfigConfig def@packet.ListenConfig

func (DefPacketListenConfigConfig) MarshalJSON

func (m DefPacketListenConfigConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefProtocolHandlerConfig

type DefProtocolHandlerConfig struct {
	Name string
	Def  ProtocolHandler `json:",omitempty"`
}

DefProtocolHandlerConfig def@protocol.Handler

func (DefProtocolHandlerConfig) MarshalJSON

func (m DefProtocolHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefServiceConfig

type DefServiceConfig struct {
	Name string
	Def  Service `json:",omitempty"`
}

DefServiceConfig def@service.Service

func (DefServiceConfig) MarshalJSON

func (m DefServiceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefStreamDialerConfig

type DefStreamDialerConfig struct {
	Name string
	Def  StreamDialer `json:",omitempty"`
}

DefStreamDialerConfig def@stream.Dialer

func (DefStreamDialerConfig) MarshalJSON

func (m DefStreamDialerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefStreamHandlerConfig

type DefStreamHandlerConfig struct {
	Name string
	Def  StreamHandler `json:",omitempty"`
}

DefStreamHandlerConfig def@stream.Handler

func (DefStreamHandlerConfig) MarshalJSON

func (m DefStreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefStreamListenConfigConfig

type DefStreamListenConfigConfig struct {
	Name string
	Def  StreamListenConfig `json:",omitempty"`
}

DefStreamListenConfigConfig def@stream.ListenConfig

func (DefStreamListenConfigConfig) MarshalJSON

func (m DefStreamListenConfigConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DefTLSConfig

type DefTLSConfig struct {
	Name string
	Def  TLS `json:",omitempty"`
}

DefTLSConfig def@tls.TLS

func (DefTLSConfig) MarshalJSON

func (m DefTLSConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DestinationStreamHandlerConfig added in v0.7.0

type DestinationStreamHandlerConfig struct {
	Destinations []DestinationStreamHandlerRoute
	NotFound     StreamHandler
}

DestinationStreamHandlerConfig destination@stream.Handler

func (DestinationStreamHandlerConfig) MarshalJSON added in v0.7.0

func (m DestinationStreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DestinationStreamHandlerRoute added in v0.7.0

type DestinationStreamHandlerRoute struct {
	Ports   []uint32 `json:",omitempty"`
	CIDR    string   `json:",omitempty"`
	Handler StreamHandler
}

type DialerStreamDialerConfig

type DialerStreamDialerConfig struct {
	Network  DialerStreamDialerNetworkEnum
	Address  string
	Original bool `json:",omitempty"`
	Virtual  bool `json:",omitempty"`
}

DialerStreamDialerConfig dialer@stream.Dialer

func (DialerStreamDialerConfig) MarshalJSON

func (m DialerStreamDialerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type DialerStreamDialerNetworkEnum added in v0.5.0

type DialerStreamDialerNetworkEnum string
const (
	DialerStreamDialerNetworkEnumEnumNetworkUnix DialerStreamDialerNetworkEnum = "unix"
	DialerStreamDialerNetworkEnumEnumNetworkTCP6 DialerStreamDialerNetworkEnum = "tcp6"
	DialerStreamDialerNetworkEnumEnumNetworkTCP4 DialerStreamDialerNetworkEnum = "tcp4"
	DialerStreamDialerNetworkEnumEnumNetworkTCP  DialerStreamDialerNetworkEnum = "tcp"
)

type DirectNetHTTPHandlerConfig

type DirectNetHTTPHandlerConfig struct {
	Code int
	Body IoReader
}

DirectNetHTTPHandlerConfig direct@net/http.Handler

func (DirectNetHTTPHandlerConfig) MarshalJSON

func (m DirectNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type EditRequestHeaderNetHTTPHandlerConfig added in v0.5.2

type EditRequestHeaderNetHTTPHandlerConfig struct {
	Del []string                              `json:",omitempty"`
	Set []EditRequestHeaderNetHTTPHandlerPair `json:",omitempty"`
	Add []EditRequestHeaderNetHTTPHandlerPair `json:",omitempty"`
}

EditRequestHeaderNetHTTPHandlerConfig edit_request_header@net/http.Handler

func (EditRequestHeaderNetHTTPHandlerConfig) MarshalJSON added in v0.5.2

func (m EditRequestHeaderNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type EditRequestHeaderNetHTTPHandlerPair added in v0.5.2

type EditRequestHeaderNetHTTPHandlerPair struct {
	Key   string
	Value string
}

type EditResponseHeaderNetHTTPHandlerConfig added in v0.5.2

type EditResponseHeaderNetHTTPHandlerConfig struct {
	Del []string                               `json:",omitempty"`
	Set []EditResponseHeaderNetHTTPHandlerPair `json:",omitempty"`
	Add []EditResponseHeaderNetHTTPHandlerPair `json:",omitempty"`
}

EditResponseHeaderNetHTTPHandlerConfig edit_response_header@net/http.Handler

func (EditResponseHeaderNetHTTPHandlerConfig) MarshalJSON added in v0.5.2

func (m EditResponseHeaderNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type EditResponseHeaderNetHTTPHandlerPair added in v0.5.2

type EditResponseHeaderNetHTTPHandlerPair struct {
	Key   string
	Value string
}

type EnvIoReaderConfig

type EnvIoReaderConfig struct {
	Name string
}

EnvIoReaderConfig env@io.Reader

func (EnvIoReaderConfig) MarshalJSON

func (m EnvIoReaderConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type ExpvarNetHTTPHandler

type ExpvarNetHTTPHandler struct {
}

ExpvarNetHTTPHandler expvar@net/http.Handler

func (ExpvarNetHTTPHandler) MarshalJSON

func (m ExpvarNetHTTPHandler) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type FileIoReaderConfig

type FileIoReaderConfig struct {
	Path string
}

FileIoReaderConfig file@io.Reader

func (FileIoReaderConfig) MarshalJSON

func (m FileIoReaderConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type FileIoWriterConfig

type FileIoWriterConfig struct {
	Path string
}

FileIoWriterConfig file@io.Writer

func (FileIoWriterConfig) MarshalJSON

func (m FileIoWriterConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type FileNetHTTPHandlerConfig

type FileNetHTTPHandlerConfig struct {
	Root string
}

FileNetHTTPHandlerConfig file@net/http.Handler

func (FileNetHTTPHandlerConfig) MarshalJSON

func (m FileNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type ForwardNetHTTPHandlerConfig

type ForwardNetHTTPHandlerConfig struct {
	Dialer StreamDialer `json:",omitempty"`
	URL    string
}

ForwardNetHTTPHandlerConfig forward@net/http.Handler

func (ForwardNetHTTPHandlerConfig) MarshalJSON

func (m ForwardNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type ForwardStreamHandlerConfig

type ForwardStreamHandlerConfig struct {
	Dialer StreamDialer
}

ForwardStreamHandlerConfig forward@stream.Handler

func (ForwardStreamHandlerConfig) MarshalJSON

func (m ForwardStreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type FromTLSConfig

type FromTLSConfig struct {
	Domain string
	Cert   IoReader
	Key    IoReader
}

FromTLSConfig from@tls.TLS

func (FromTLSConfig) MarshalJSON

func (m FromTLSConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type HTTP1StreamHandlerConfig

type HTTP1StreamHandlerConfig struct {
	Handler HTTPHandler
}

HTTP1StreamHandlerConfig http1@stream.Handler

func (HTTP1StreamHandlerConfig) MarshalJSON

func (m HTTP1StreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type HTTP2StreamHandlerConfig

type HTTP2StreamHandlerConfig struct {
	Handler HTTPHandler
	TLS     TLS `json:",omitempty"`
}

HTTP2StreamHandlerConfig http2@stream.Handler

func (HTTP2StreamHandlerConfig) MarshalJSON

func (m HTTP2StreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type HTTP3PacketHandlerConfig

type HTTP3PacketHandlerConfig struct {
	Handler HTTPHandler
	TLS     TLS
}

HTTP3PacketHandlerConfig http3@packet.Handler

func (HTTP3PacketHandlerConfig) MarshalJSON

func (m HTTP3PacketHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type HTTPHandler

type HTTPHandler interface {
	Component
	// contains filtered or unexported methods
}

HTTPHandler http.Handler

type HTTPIoReaderConfig

type HTTPIoReaderConfig struct {
	Dialer StreamDialer `json:",omitempty"`
	URL    string
}

HTTPIoReaderConfig http@io.Reader

func (HTTPIoReaderConfig) MarshalJSON

func (m HTTPIoReaderConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type HeaderNetHTTPHandlerConfig added in v0.5.2

type HeaderNetHTTPHandlerConfig struct {
	Headers  []HeaderNetHTTPHandlerRoute
	NotFound HTTPHandler `json:",omitempty"`
}

HeaderNetHTTPHandlerConfig header@net/http.Handler

func (HeaderNetHTTPHandlerConfig) MarshalJSON added in v0.5.2

func (m HeaderNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type HeaderNetHTTPHandlerRoute added in v0.5.2

type HeaderNetHTTPHandlerRoute struct {
	Matches []HeaderNetHTTPHandlerRouteMatch
	Handler HTTPHandler
}

type HeaderNetHTTPHandlerRouteMatch added in v0.5.2

type HeaderNetHTTPHandlerRouteMatch struct {
	Key      string
	Exact    string `json:",omitempty"`
	Present  bool   `json:",omitempty"`
	Regexp   string `json:",omitempty"`
	Prefix   string `json:",omitempty"`
	Suffix   string `json:",omitempty"`
	Contains string `json:",omitempty"`
}

type HostNetHTTPHandlerConfig added in v0.5.2

type HostNetHTTPHandlerConfig struct {
	Hosts    []HostNetHTTPHandlerRoute
	NotFound HTTPHandler `json:",omitempty"`
}

HostNetHTTPHandlerConfig host@net/http.Handler

func (HostNetHTTPHandlerConfig) MarshalJSON added in v0.5.2

func (m HostNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type HostNetHTTPHandlerRoute added in v0.5.2

type HostNetHTTPHandlerRoute struct {
	Domains []string
	Handler HTTPHandler
}

type InlineIoReaderConfig

type InlineIoReaderConfig struct {
	Data string
}

InlineIoReaderConfig inline@io.Reader

func (InlineIoReaderConfig) MarshalJSON

func (m InlineIoReaderConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type IoReader

type IoReader interface {
	Component
	// contains filtered or unexported methods
}

IoReader io.Reader

type IoWriter

type IoWriter interface {
	Component
	// contains filtered or unexported methods
}

IoWriter io.Writer

type LbNetHTTPHandlerConfig

type LbNetHTTPHandlerConfig struct {
	Policy   BalancePolicy
	Handlers []LbNetHTTPHandlerWeight
}

LbNetHTTPHandlerConfig lb@net/http.Handler

func (LbNetHTTPHandlerConfig) MarshalJSON

func (m LbNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LbNetHTTPHandlerWeight

type LbNetHTTPHandlerWeight struct {
	Weight  uint `json:",omitempty"`
	Handler HTTPHandler
}

type LbStreamDialerConfig

type LbStreamDialerConfig struct {
	Policy  BalancePolicy
	Dialers []LbStreamDialerWeight
}

LbStreamDialerConfig lb@stream.Dialer

func (LbStreamDialerConfig) MarshalJSON

func (m LbStreamDialerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LbStreamDialerWeight

type LbStreamDialerWeight struct {
	Weight uint `json:",omitempty"`
	Dialer StreamDialer
}

type LbStreamHandlerConfig

type LbStreamHandlerConfig struct {
	Policy   BalancePolicy
	Handlers []LbStreamHandlerWeight
}

LbStreamHandlerConfig lb@stream.Handler

func (LbStreamHandlerConfig) MarshalJSON

func (m LbStreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LbStreamHandlerWeight

type LbStreamHandlerWeight struct {
	Weight  uint `json:",omitempty"`
	Handler StreamHandler
}

type Least added in v0.5.2

type Least struct {
}

Least least@

func (Least) MarshalJSON added in v0.5.2

func (m Least) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LeastLeast added in v0.5.2

type LeastLeast interface {
	Component
	// contains filtered or unexported methods
}

LeastLeast *least.Least

type ListenerPacketListenConfigConfig

type ListenerPacketListenConfigConfig struct {
	Network ListenerPacketListenConfigNetworkEnum
	Address string
}

ListenerPacketListenConfigConfig listener@packet.ListenConfig

func (ListenerPacketListenConfigConfig) MarshalJSON

func (m ListenerPacketListenConfigConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type ListenerPacketListenConfigNetworkEnum added in v0.5.0

type ListenerPacketListenConfigNetworkEnum string
const (
	ListenerPacketListenConfigNetworkEnumEnumNetworkUnixPacket ListenerPacketListenConfigNetworkEnum = "unixpacket"
	ListenerPacketListenConfigNetworkEnumEnumNetworkUDP6       ListenerPacketListenConfigNetworkEnum = "udp6"
	ListenerPacketListenConfigNetworkEnumEnumNetworkUDP4       ListenerPacketListenConfigNetworkEnum = "udp4"
	ListenerPacketListenConfigNetworkEnumEnumNetworkUDP        ListenerPacketListenConfigNetworkEnum = "udp"
)

type ListenerStreamListenConfigConfig

type ListenerStreamListenConfigConfig struct {
	Network ListenerStreamListenConfigNetworkEnum
	Address string
	Virtual bool `json:",omitempty"`
}

ListenerStreamListenConfigConfig listener@stream.ListenConfig

func (ListenerStreamListenConfigConfig) MarshalJSON

func (m ListenerStreamListenConfigConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type ListenerStreamListenConfigNetworkEnum added in v0.5.0

type ListenerStreamListenConfigNetworkEnum string
const (
	ListenerStreamListenConfigNetworkEnumEnumNetworkUnix ListenerStreamListenConfigNetworkEnum = "unix"
	ListenerStreamListenConfigNetworkEnumEnumNetworkTCP6 ListenerStreamListenConfigNetworkEnum = "tcp6"
	ListenerStreamListenConfigNetworkEnumEnumNetworkTCP4 ListenerStreamListenConfigNetworkEnum = "tcp4"
	ListenerStreamListenConfigNetworkEnumEnumNetworkTCP  ListenerStreamListenConfigNetworkEnum = "tcp"
)

type LoadBalancePolicyConfig added in v0.5.0

type LoadBalancePolicyConfig struct {
	Load IoReader
}

LoadBalancePolicyConfig load@balance.Policy

func (LoadBalancePolicyConfig) MarshalJSON added in v0.5.0

func (m LoadBalancePolicyConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadIoReaderConfig

type LoadIoReaderConfig struct {
	Load IoReader
}

LoadIoReaderConfig load@io.Reader

func (LoadIoReaderConfig) MarshalJSON

func (m LoadIoReaderConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadIoWriterConfig

type LoadIoWriterConfig struct {
	Load IoReader
}

LoadIoWriterConfig load@io.Writer

func (LoadIoWriterConfig) MarshalJSON

func (m LoadIoWriterConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadNetConnConfig

type LoadNetConnConfig struct {
	Load IoReader
}

LoadNetConnConfig load@net.Conn

func (LoadNetConnConfig) MarshalJSON

func (m LoadNetConnConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadNetHTTPHandlerConfig

type LoadNetHTTPHandlerConfig struct {
	Load IoReader
}

LoadNetHTTPHandlerConfig load@net/http.Handler

func (LoadNetHTTPHandlerConfig) MarshalJSON

func (m LoadNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadNetPacketConnConfig

type LoadNetPacketConnConfig struct {
	Load IoReader
}

LoadNetPacketConnConfig load@net.PacketConn

func (LoadNetPacketConnConfig) MarshalJSON

func (m LoadNetPacketConnConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadOnceConfig

type LoadOnceConfig struct {
	Load IoReader
}

LoadOnceConfig load@once.Once

func (LoadOnceConfig) MarshalJSON

func (m LoadOnceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadPacketHandlerConfig

type LoadPacketHandlerConfig struct {
	Load IoReader
}

LoadPacketHandlerConfig load@packet.Handler

func (LoadPacketHandlerConfig) MarshalJSON

func (m LoadPacketHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadPacketListenConfigConfig

type LoadPacketListenConfigConfig struct {
	Load IoReader
}

LoadPacketListenConfigConfig load@packet.ListenConfig

func (LoadPacketListenConfigConfig) MarshalJSON

func (m LoadPacketListenConfigConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadProtocolHandlerConfig

type LoadProtocolHandlerConfig struct {
	Load IoReader
}

LoadProtocolHandlerConfig load@protocol.Handler

func (LoadProtocolHandlerConfig) MarshalJSON

func (m LoadProtocolHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadServiceConfig

type LoadServiceConfig struct {
	Load IoReader
}

LoadServiceConfig load@service.Service

func (LoadServiceConfig) MarshalJSON

func (m LoadServiceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadStreamDialerConfig

type LoadStreamDialerConfig struct {
	Load IoReader
}

LoadStreamDialerConfig load@stream.Dialer

func (LoadStreamDialerConfig) MarshalJSON

func (m LoadStreamDialerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadStreamHandlerConfig

type LoadStreamHandlerConfig struct {
	Load IoReader
}

LoadStreamHandlerConfig load@stream.Handler

func (LoadStreamHandlerConfig) MarshalJSON

func (m LoadStreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadStreamListenConfigConfig

type LoadStreamListenConfigConfig struct {
	Load IoReader
}

LoadStreamListenConfigConfig load@stream.ListenConfig

func (LoadStreamListenConfigConfig) MarshalJSON

func (m LoadStreamListenConfigConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LoadTLSConfig

type LoadTLSConfig struct {
	Load IoReader
}

LoadTLSConfig load@tls.TLS

func (LoadTLSConfig) MarshalJSON

func (m LoadTLSConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LogNetHTTPHandlerConfig

type LogNetHTTPHandlerConfig struct {
	Output  IoWriter
	Handler HTTPHandler
}

LogNetHTTPHandlerConfig log@net/http.Handler

func (LogNetHTTPHandlerConfig) MarshalJSON

func (m LogNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type LogStreamHandlerConfig added in v0.4.13

type LogStreamHandlerConfig struct {
	Output  IoWriter
	Handler StreamHandler
}

LogStreamHandlerConfig log@stream.Handler

func (LogStreamHandlerConfig) MarshalJSON added in v0.4.13

func (m LogStreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type MergeTLSConfig

type MergeTLSConfig struct {
	Merge []TLS
}

MergeTLSConfig merge@tls.TLS

func (MergeTLSConfig) MarshalJSON

func (m MergeTLSConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type MessageOnceConfig

type MessageOnceConfig struct {
	Message string
}

MessageOnceConfig message@once.Once

func (MessageOnceConfig) MarshalJSON

func (m MessageOnceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type MethodNetHTTPHandlerConfig

type MethodNetHTTPHandlerConfig struct {
	Methods  []MethodNetHTTPHandlerRoute
	NotFound HTTPHandler
}

MethodNetHTTPHandlerConfig method@net/http.Handler

func (MethodNetHTTPHandlerConfig) MarshalJSON

func (m MethodNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type MethodNetHTTPHandlerMethodEnum

type MethodNetHTTPHandlerMethodEnum string
const (
	MethodNetHTTPHandlerMethodEnumMethodTrace   MethodNetHTTPHandlerMethodEnum = "TRACE"
	MethodNetHTTPHandlerMethodEnumMethodPut     MethodNetHTTPHandlerMethodEnum = "PUT"
	MethodNetHTTPHandlerMethodEnumMethodPost    MethodNetHTTPHandlerMethodEnum = "POST"
	MethodNetHTTPHandlerMethodEnumMethodPatch   MethodNetHTTPHandlerMethodEnum = "PATCH"
	MethodNetHTTPHandlerMethodEnumMethodOptions MethodNetHTTPHandlerMethodEnum = "OPTIONS"
	MethodNetHTTPHandlerMethodEnumMethodHead    MethodNetHTTPHandlerMethodEnum = "HEAD"
	MethodNetHTTPHandlerMethodEnumMethodGet     MethodNetHTTPHandlerMethodEnum = "GET"
	MethodNetHTTPHandlerMethodEnumMethodDelete  MethodNetHTTPHandlerMethodEnum = "DELETE"
	MethodNetHTTPHandlerMethodEnumMethodConnect MethodNetHTTPHandlerMethodEnum = "CONNECT"
)

type MethodNetHTTPHandlerRoute

type MethodNetHTTPHandlerRoute struct {
	Method  MethodNetHTTPHandlerMethodEnum
	Handler HTTPHandler
}

type MetricsNetHTTPHandler

type MetricsNetHTTPHandler struct {
}

MetricsNetHTTPHandler metrics@net/http.Handler

func (MetricsNetHTTPHandler) MarshalJSON

func (m MetricsNetHTTPHandler) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type MultiNetHTTPHandlerConfig

type MultiNetHTTPHandlerConfig struct {
	Multi []HTTPHandler
}

MultiNetHTTPHandlerConfig multi@net/http.Handler

func (MultiNetHTTPHandlerConfig) MarshalJSON

func (m MultiNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type MultiOnceConfig

type MultiOnceConfig struct {
	Multi []Once
}

MultiOnceConfig multi@once.Once

func (MultiOnceConfig) MarshalJSON

func (m MultiOnceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type MultiServiceConfig

type MultiServiceConfig struct {
	Multi []Service
}

MultiServiceConfig multi@service.Service

func (MultiServiceConfig) MarshalJSON

func (m MultiServiceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type MultiStreamHandlerConfig

type MultiStreamHandlerConfig struct {
	Multi []StreamHandler
}

MultiStreamHandlerConfig multi@stream.Handler

func (MultiStreamHandlerConfig) MarshalJSON

func (m MultiStreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NetConn

type NetConn interface {
	Component
	// contains filtered or unexported methods
}

NetConn net.Conn

type NetPacketConn

type NetPacketConn interface {
	Component
	// contains filtered or unexported methods
}

NetPacketConn net.PacketConn

type NoneBalancePolicy added in v0.5.0

type NoneBalancePolicy struct {
}

NoneBalancePolicy none@balance.Policy

func (NoneBalancePolicy) MarshalJSON added in v0.5.0

func (m NoneBalancePolicy) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NoneIoReader

type NoneIoReader struct {
}

NoneIoReader none@io.Reader

func (NoneIoReader) MarshalJSON

func (m NoneIoReader) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NoneIoWriter

type NoneIoWriter struct {
}

NoneIoWriter none@io.Writer

func (NoneIoWriter) MarshalJSON

func (m NoneIoWriter) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NoneNetConn

type NoneNetConn struct {
}

NoneNetConn none@net.Conn

func (NoneNetConn) MarshalJSON

func (m NoneNetConn) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NoneNetHTTPHandler

type NoneNetHTTPHandler struct {
}

NoneNetHTTPHandler none@net/http.Handler

func (NoneNetHTTPHandler) MarshalJSON

func (m NoneNetHTTPHandler) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NoneNetPacketConn

type NoneNetPacketConn struct {
}

NoneNetPacketConn none@net.PacketConn

func (NoneNetPacketConn) MarshalJSON

func (m NoneNetPacketConn) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NoneOnce

type NoneOnce struct {
}

NoneOnce none@once.Once

func (NoneOnce) MarshalJSON

func (m NoneOnce) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NonePacketHandler

type NonePacketHandler struct {
}

NonePacketHandler none@packet.Handler

func (NonePacketHandler) MarshalJSON

func (m NonePacketHandler) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NonePacketListenConfig

type NonePacketListenConfig struct {
}

NonePacketListenConfig none@packet.ListenConfig

func (NonePacketListenConfig) MarshalJSON

func (m NonePacketListenConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NoneProtocolHandler

type NoneProtocolHandler struct {
}

NoneProtocolHandler none@protocol.Handler

func (NoneProtocolHandler) MarshalJSON

func (m NoneProtocolHandler) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NoneService

type NoneService struct {
}

NoneService none@service.Service

func (NoneService) MarshalJSON

func (m NoneService) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NoneStreamDialer

type NoneStreamDialer struct {
}

NoneStreamDialer none@stream.Dialer

func (NoneStreamDialer) MarshalJSON

func (m NoneStreamDialer) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NoneStreamHandler

type NoneStreamHandler struct {
}

NoneStreamHandler none@stream.Handler

func (NoneStreamHandler) MarshalJSON

func (m NoneStreamHandler) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NoneStreamListenConfig

type NoneStreamListenConfig struct {
}

NoneStreamListenConfig none@stream.ListenConfig

func (NoneStreamListenConfig) MarshalJSON

func (m NoneStreamListenConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type NoneTLS

type NoneTLS struct {
}

NoneTLS none@tls.TLS

func (NoneTLS) MarshalJSON

func (m NoneTLS) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type Once

type Once interface {
	Component
	// contains filtered or unexported methods
}

Once once.Once

type PacketHandler

type PacketHandler interface {
	Component
	// contains filtered or unexported methods
}

PacketHandler packet.Handler

type PacketListenConfig

type PacketListenConfig interface {
	Component
	// contains filtered or unexported methods
}

PacketListenConfig packet.ListenConfig

type PacketServiceConfig

type PacketServiceConfig struct {
	Listener PacketListenConfig
	Handler  PacketHandler
}

PacketServiceConfig packet@service.Service

func (PacketServiceConfig) MarshalJSON

func (m PacketServiceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type PathNetHTTPHandlerConfig added in v0.5.2

type PathNetHTTPHandlerConfig struct {
	Paths    []PathNetHTTPHandlerRoute
	NotFound HTTPHandler `json:",omitempty"`
}

PathNetHTTPHandlerConfig path@net/http.Handler

func (PathNetHTTPHandlerConfig) MarshalJSON added in v0.5.2

func (m PathNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type PathNetHTTPHandlerRoute added in v0.5.2

type PathNetHTTPHandlerRoute struct {
	Prefix  string `json:",omitempty"`
	Path    string `json:",omitempty"`
	Regexp  string `json:",omitempty"`
	Handler HTTPHandler
}

type PprofNetHTTPHandler

type PprofNetHTTPHandler struct {
}

PprofNetHTTPHandler pprof@net/http.Handler

func (PprofNetHTTPHandler) MarshalJSON

func (m PprofNetHTTPHandler) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type PrefixStreamHandlerConfig added in v0.7.0

type PrefixStreamHandlerConfig struct {
	Routes   []PrefixStreamHandlerRoute
	NotFound StreamHandler
}

PrefixStreamHandlerConfig prefix@stream.Handler

func (PrefixStreamHandlerConfig) MarshalJSON added in v0.7.0

func (m PrefixStreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type PrefixStreamHandlerProtocolEnum added in v0.7.0

type PrefixStreamHandlerProtocolEnum string
const (
	PrefixStreamHandlerProtocolEnumProtocolTLS    PrefixStreamHandlerProtocolEnum = "tls"
	PrefixStreamHandlerProtocolEnumProtocolSocks5 PrefixStreamHandlerProtocolEnum = "socks5"
	PrefixStreamHandlerProtocolEnumProtocolSocks4 PrefixStreamHandlerProtocolEnum = "socks4"
	PrefixStreamHandlerProtocolEnumProtocolSSH    PrefixStreamHandlerProtocolEnum = "ssh"
	PrefixStreamHandlerProtocolEnumProtocolHTTP2  PrefixStreamHandlerProtocolEnum = "http2"
	PrefixStreamHandlerProtocolEnumProtocolHTTP1  PrefixStreamHandlerProtocolEnum = "http1"
)

type PrefixStreamHandlerRoute added in v0.7.0

type PrefixStreamHandlerRoute struct {
	Pattern PrefixStreamHandlerProtocolEnum `json:",omitempty"`
	Regexp  string                          `json:",omitempty"`
	Prefix  string                          `json:",omitempty"`
	Handler StreamHandler
}

type ProtocolHandler

type ProtocolHandler interface {
	Component
	// contains filtered or unexported methods
}

ProtocolHandler protocol.Handler

type QueryNetHTTPHandlerConfig added in v0.5.2

type QueryNetHTTPHandlerConfig struct {
	Queries  []QueryNetHTTPHandlerRoute
	NotFound HTTPHandler `json:",omitempty"`
}

QueryNetHTTPHandlerConfig query@net/http.Handler

func (QueryNetHTTPHandlerConfig) MarshalJSON added in v0.5.2

func (m QueryNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type QueryNetHTTPHandlerRoute added in v0.5.2

type QueryNetHTTPHandlerRoute struct {
	Matches []QueryNetHTTPHandlerRouteMatch
	Handler HTTPHandler
}

type QueryNetHTTPHandlerRouteMatch added in v0.5.2

type QueryNetHTTPHandlerRouteMatch struct {
	Key      string
	Exact    string `json:",omitempty"`
	Present  bool   `json:",omitempty"`
	Regexp   string `json:",omitempty"`
	Prefix   string `json:",omitempty"`
	Suffix   string `json:",omitempty"`
	Contains string `json:",omitempty"`
}

type QuicStreamListenConfigConfig

type QuicStreamListenConfigConfig struct {
	Packet NetPacketConn
	TLS    TLS
}

QuicStreamListenConfigConfig quic@stream.ListenConfig

func (QuicStreamListenConfigConfig) MarshalJSON

func (m QuicStreamListenConfigConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type QuitNetHTTPHandler

type QuitNetHTTPHandler struct {
}

QuitNetHTTPHandler quit@net/http.Handler

func (QuitNetHTTPHandler) MarshalJSON

func (m QuitNetHTTPHandler) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RandomBalancePolicy added in v0.5.0

type RandomBalancePolicy struct {
}

RandomBalancePolicy random@balance.Policy

func (RandomBalancePolicy) MarshalJSON added in v0.5.0

func (m RandomBalancePolicy) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RawBalancePolicy added in v0.5.0

type RawBalancePolicy []byte

RawBalancePolicy is store raw bytes of BalancePolicy

func (RawBalancePolicy) MarshalJSON added in v0.5.0

func (m RawBalancePolicy) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawBalancePolicy) UnmarshalJSON added in v0.5.0

func (m *RawBalancePolicy) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawComponent

type RawComponent []byte

RawComponent is store raw bytes of Component

func (RawComponent) MarshalJSON

func (m RawComponent) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawComponent) UnmarshalJSON

func (m *RawComponent) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawHTTPHandler

type RawHTTPHandler []byte

RawHTTPHandler is store raw bytes of HTTPHandler

func (RawHTTPHandler) MarshalJSON

func (m RawHTTPHandler) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawHTTPHandler) UnmarshalJSON

func (m *RawHTTPHandler) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawIoReader

type RawIoReader []byte

RawIoReader is store raw bytes of IoReader

func (RawIoReader) MarshalJSON

func (m RawIoReader) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawIoReader) UnmarshalJSON

func (m *RawIoReader) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawIoWriter

type RawIoWriter []byte

RawIoWriter is store raw bytes of IoWriter

func (RawIoWriter) MarshalJSON

func (m RawIoWriter) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawIoWriter) UnmarshalJSON

func (m *RawIoWriter) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawLeastLeast added in v0.5.2

type RawLeastLeast []byte

RawLeastLeast is store raw bytes of LeastLeast

func (RawLeastLeast) MarshalJSON added in v0.5.2

func (m RawLeastLeast) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawLeastLeast) UnmarshalJSON added in v0.5.2

func (m *RawLeastLeast) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawNetConn

type RawNetConn []byte

RawNetConn is store raw bytes of NetConn

func (RawNetConn) MarshalJSON

func (m RawNetConn) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawNetConn) UnmarshalJSON

func (m *RawNetConn) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawNetPacketConn

type RawNetPacketConn []byte

RawNetPacketConn is store raw bytes of NetPacketConn

func (RawNetPacketConn) MarshalJSON

func (m RawNetPacketConn) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawNetPacketConn) UnmarshalJSON

func (m *RawNetPacketConn) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawOnce

type RawOnce []byte

RawOnce is store raw bytes of Once

func (RawOnce) MarshalJSON

func (m RawOnce) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawOnce) UnmarshalJSON

func (m *RawOnce) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawPacketHandler

type RawPacketHandler []byte

RawPacketHandler is store raw bytes of PacketHandler

func (RawPacketHandler) MarshalJSON

func (m RawPacketHandler) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawPacketHandler) UnmarshalJSON

func (m *RawPacketHandler) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawPacketListenConfig

type RawPacketListenConfig []byte

RawPacketListenConfig is store raw bytes of PacketListenConfig

func (RawPacketListenConfig) MarshalJSON

func (m RawPacketListenConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawPacketListenConfig) UnmarshalJSON

func (m *RawPacketListenConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawProtocolHandler

type RawProtocolHandler []byte

RawProtocolHandler is store raw bytes of ProtocolHandler

func (RawProtocolHandler) MarshalJSON

func (m RawProtocolHandler) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawProtocolHandler) UnmarshalJSON

func (m *RawProtocolHandler) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawService

type RawService []byte

RawService is store raw bytes of Service

func (RawService) MarshalJSON

func (m RawService) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawService) UnmarshalJSON

func (m *RawService) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawStreamDialer

type RawStreamDialer []byte

RawStreamDialer is store raw bytes of StreamDialer

func (RawStreamDialer) MarshalJSON

func (m RawStreamDialer) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawStreamDialer) UnmarshalJSON

func (m *RawStreamDialer) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawStreamHandler

type RawStreamHandler []byte

RawStreamHandler is store raw bytes of StreamHandler

func (RawStreamHandler) MarshalJSON

func (m RawStreamHandler) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawStreamHandler) UnmarshalJSON

func (m *RawStreamHandler) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawStreamListenConfig

type RawStreamListenConfig []byte

RawStreamListenConfig is store raw bytes of StreamListenConfig

func (RawStreamListenConfig) MarshalJSON

func (m RawStreamListenConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawStreamListenConfig) UnmarshalJSON

func (m *RawStreamListenConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RawTLS

type RawTLS []byte

RawTLS is store raw bytes of TLS

func (RawTLS) MarshalJSON

func (m RawTLS) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*RawTLS) UnmarshalJSON

func (m *RawTLS) UnmarshalJSON(data []byte) error

UnmarshalJSON sets *m to a copy of data.

type RedirectNetHTTPHandlerConfig

type RedirectNetHTTPHandlerConfig struct {
	Code     int
	Location string
}

RedirectNetHTTPHandlerConfig redirect@net/http.Handler

func (RedirectNetHTTPHandlerConfig) MarshalJSON

func (m RedirectNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefBalancePolicyConfig added in v0.5.0

type RefBalancePolicyConfig struct {
	Name string
	Def  BalancePolicy `json:",omitempty"`
}

RefBalancePolicyConfig ref@balance.Policy

func (RefBalancePolicyConfig) MarshalJSON added in v0.5.0

func (m RefBalancePolicyConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefIoReaderConfig

type RefIoReaderConfig struct {
	Name string
	Def  IoReader `json:",omitempty"`
}

RefIoReaderConfig ref@io.Reader

func (RefIoReaderConfig) MarshalJSON

func (m RefIoReaderConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefIoWriterConfig

type RefIoWriterConfig struct {
	Name string
	Def  IoWriter `json:",omitempty"`
}

RefIoWriterConfig ref@io.Writer

func (RefIoWriterConfig) MarshalJSON

func (m RefIoWriterConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefNetConnConfig

type RefNetConnConfig struct {
	Name string
	Def  NetConn `json:",omitempty"`
}

RefNetConnConfig ref@net.Conn

func (RefNetConnConfig) MarshalJSON

func (m RefNetConnConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefNetHTTPHandlerConfig

type RefNetHTTPHandlerConfig struct {
	Name string
	Def  HTTPHandler `json:",omitempty"`
}

RefNetHTTPHandlerConfig ref@net/http.Handler

func (RefNetHTTPHandlerConfig) MarshalJSON

func (m RefNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefNetPacketConnConfig

type RefNetPacketConnConfig struct {
	Name string
	Def  NetPacketConn `json:",omitempty"`
}

RefNetPacketConnConfig ref@net.PacketConn

func (RefNetPacketConnConfig) MarshalJSON

func (m RefNetPacketConnConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefOnceConfig

type RefOnceConfig struct {
	Name string
	Def  Once `json:",omitempty"`
}

RefOnceConfig ref@once.Once

func (RefOnceConfig) MarshalJSON

func (m RefOnceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefPacketHandlerConfig

type RefPacketHandlerConfig struct {
	Name string
	Def  PacketHandler `json:",omitempty"`
}

RefPacketHandlerConfig ref@packet.Handler

func (RefPacketHandlerConfig) MarshalJSON

func (m RefPacketHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefPacketListenConfigConfig

type RefPacketListenConfigConfig struct {
	Name string
	Def  PacketListenConfig `json:",omitempty"`
}

RefPacketListenConfigConfig ref@packet.ListenConfig

func (RefPacketListenConfigConfig) MarshalJSON

func (m RefPacketListenConfigConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefProtocolHandlerConfig

type RefProtocolHandlerConfig struct {
	Name string
	Def  ProtocolHandler `json:",omitempty"`
}

RefProtocolHandlerConfig ref@protocol.Handler

func (RefProtocolHandlerConfig) MarshalJSON

func (m RefProtocolHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefServiceConfig

type RefServiceConfig struct {
	Name string
	Def  Service `json:",omitempty"`
}

RefServiceConfig ref@service.Service

func (RefServiceConfig) MarshalJSON

func (m RefServiceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefStreamDialerConfig

type RefStreamDialerConfig struct {
	Name string
	Def  StreamDialer `json:",omitempty"`
}

RefStreamDialerConfig ref@stream.Dialer

func (RefStreamDialerConfig) MarshalJSON

func (m RefStreamDialerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefStreamHandlerConfig

type RefStreamHandlerConfig struct {
	Name string
	Def  StreamHandler `json:",omitempty"`
}

RefStreamHandlerConfig ref@stream.Handler

func (RefStreamHandlerConfig) MarshalJSON

func (m RefStreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefStreamListenConfigConfig

type RefStreamListenConfigConfig struct {
	Name string
	Def  StreamListenConfig `json:",omitempty"`
}

RefStreamListenConfigConfig ref@stream.ListenConfig

func (RefStreamListenConfigConfig) MarshalJSON

func (m RefStreamListenConfigConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RefTLSConfig

type RefTLSConfig struct {
	Name string
	Def  TLS `json:",omitempty"`
}

RefTLSConfig ref@tls.TLS

func (RefTLSConfig) MarshalJSON

func (m RefTLSConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type RoundRobinBalancePolicy added in v0.5.0

type RoundRobinBalancePolicy struct {
}

RoundRobinBalancePolicy round_robin@balance.Policy

func (RoundRobinBalancePolicy) MarshalJSON added in v0.5.0

func (m RoundRobinBalancePolicy) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type SelfSignedTLS

type SelfSignedTLS struct {
}

SelfSignedTLS self_signed@tls.TLS

func (SelfSignedTLS) MarshalJSON

func (m SelfSignedTLS) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type Service

type Service interface {
	Component
	// contains filtered or unexported methods
}

Service service.Service

type ServiceOnceConfig

type ServiceOnceConfig struct {
	Service Service
}

ServiceOnceConfig service@once.Once

func (ServiceOnceConfig) MarshalJSON

func (m ServiceOnceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type SourceStreamHandlerConfig added in v0.7.0

type SourceStreamHandlerConfig struct {
	Destinations []SourceStreamHandlerRoute
	NotFound     StreamHandler
}

SourceStreamHandlerConfig source@stream.Handler

func (SourceStreamHandlerConfig) MarshalJSON added in v0.7.0

func (m SourceStreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type SourceStreamHandlerRoute added in v0.7.0

type SourceStreamHandlerRoute struct {
	Ports   []uint32 `json:",omitempty"`
	CIDR    string   `json:",omitempty"`
	Handler StreamHandler
}

type StreamDialer

type StreamDialer interface {
	Component
	// contains filtered or unexported methods
}

StreamDialer stream.Dialer

type StreamHandler

type StreamHandler interface {
	Component
	// contains filtered or unexported methods
}

StreamHandler stream.Handler

type StreamListenConfig

type StreamListenConfig interface {
	Component
	// contains filtered or unexported methods
}

StreamListenConfig stream.ListenConfig

type StreamServiceConfig

type StreamServiceConfig struct {
	Listener          StreamListenConfig
	Handler           StreamHandler
	DisconnectOnClose bool `json:",omitempty"`
}

StreamServiceConfig stream@service.Service

func (StreamServiceConfig) MarshalJSON

func (m StreamServiceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type StripPrefixNetHTTPHandlerConfig

type StripPrefixNetHTTPHandlerConfig struct {
	Prefix  string
	Handler HTTPHandler
}

StripPrefixNetHTTPHandlerConfig strip_prefix@net/http.Handler

func (StripPrefixNetHTTPHandlerConfig) MarshalJSON

func (m StripPrefixNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type TLS

type TLS interface {
	Component
	// contains filtered or unexported methods
}

TLS tls.TLS

type TLSDownStreamHandlerConfig

type TLSDownStreamHandlerConfig struct {
	Handler StreamHandler
	TLS     TLS
}

TLSDownStreamHandlerConfig tls_down@stream.Handler

func (TLSDownStreamHandlerConfig) MarshalJSON

func (m TLSDownStreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type TLSStreamDialerConfig

type TLSStreamDialerConfig struct {
	Dialer StreamDialer
	TLS    TLS
}

TLSStreamDialerConfig tls@stream.Dialer

func (TLSStreamDialerConfig) MarshalJSON

func (m TLSStreamDialerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type TLSStreamListenConfigConfig

type TLSStreamListenConfigConfig struct {
	ListenConfig StreamListenConfig
	TLS          TLS
}

TLSStreamListenConfigConfig tls@stream.ListenConfig

func (TLSStreamListenConfigConfig) MarshalJSON

func (m TLSStreamListenConfigConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type TLSUpStreamHandlerConfig

type TLSUpStreamHandlerConfig struct {
	Handler StreamHandler
	TLS     TLS
}

TLSUpStreamHandlerConfig tls_up@stream.Handler

func (TLSUpStreamHandlerConfig) MarshalJSON

func (m TLSUpStreamHandlerConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type TagsServiceConfig added in v0.4.14

type TagsServiceConfig struct {
	Service Service
	Tag     string            `json:",omitempty"`
	Values  map[string]string `json:",omitempty"`
}

TagsServiceConfig tags@service.Service

func (TagsServiceConfig) MarshalJSON added in v0.4.14

func (m TagsServiceConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type ValidationTLSConfig

type ValidationTLSConfig struct {
	Ca IoReader
}

ValidationTLSConfig validation@tls.TLS

func (ValidationTLSConfig) MarshalJSON

func (m ValidationTLSConfig) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

type WaitService

type WaitService struct {
}

WaitService wait@service.Service

func (WaitService) MarshalJSON

func (m WaitService) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

Jump to

Keyboard shortcuts

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