Documentation
      ¶
    
    
  
    
  
    Index ¶
- func Marshal(v interface{}) ([]byte, error)
 - func Unmarshal(config []byte, v interface{}) error
 - type AcmeTLSConfig
 - type AddRequestHeaderNetHTTPHandlerConfig
 - type AddResponseHeaderNetHTTPHandlerConfig
 - type Component
 - type ComponentsOnceConfig
 - type CompressNetHTTPHandlerConfig
 - type ConfigDumpNetHTTPHandlerConfig
 - type DefIoReaderConfig
 - type DefIoWriterConfig
 - type DefNetConnConfig
 - type DefNetHTTPHandlerConfig
 - type DefNetPacketConnConfig
 - type DefOnceConfig
 - type DefPacketHandlerConfig
 - type DefPacketListenConfigConfig
 - type DefProtocolHandlerConfig
 - type DefServiceConfig
 - type DefStreamDialerConfig
 - type DefStreamHandlerConfig
 - type DefStreamListenConfigConfig
 - type DefTLSConfig
 - type DialerStreamDialerConfig
 - type DialerStreamDialerDialerNetworkEnum
 - type DirectNetHTTPHandlerConfig
 - type EnvIoReaderConfig
 - type ExpvarNetHTTPHandler
 - type FileIoReaderConfig
 - type FileIoWriterConfig
 - type FileNetHTTPHandlerConfig
 - type ForwardNetHTTPHandlerConfig
 - type ForwardStreamHandlerConfig
 - type FromTLSConfig
 - type HTTP1StreamHandlerConfig
 - type HTTP2StreamHandlerConfig
 - type HTTP3PacketHandlerConfig
 - type HTTPHandler
 - type HTTPIoReaderConfig
 - type HostsNetHTTPHandlerConfig
 - type HostsNetHTTPHandlerRoute
 - type InlineIoReaderConfig
 - type IoReader
 - type IoWriter
 - type LbNetHTTPHandlerConfig
 - type LbNetHTTPHandlerLoadBalancePolicyEnum
 - type LbNetHTTPHandlerWeight
 - type LbStreamDialerConfig
 - type LbStreamDialerLoadBalancePolicyEnum
 - type LbStreamDialerWeight
 - type LbStreamHandlerConfig
 - type LbStreamHandlerLoadBalancePolicyEnum
 - type LbStreamHandlerWeight
 - type ListenerPacketListenConfigConfig
 - type ListenerPacketListenConfigListenerNetworkEnum
 - type ListenerStreamListenConfigConfig
 - type ListenerStreamListenConfigListenerNetworkEnum
 - type LoadIoReaderConfig
 - type LoadIoWriterConfig
 - type LoadNetConnConfig
 - type LoadNetHTTPHandlerConfig
 - type LoadNetPacketConnConfig
 - type LoadOnceConfig
 - type LoadPacketHandlerConfig
 - type LoadPacketListenConfigConfig
 - type LoadProtocolHandlerConfig
 - type LoadServiceConfig
 - type LoadStreamDialerConfig
 - type LoadStreamHandlerConfig
 - type LoadStreamListenConfigConfig
 - type LoadTLSConfig
 - type LogNetHTTPHandlerConfig
 - type MergeTLSConfig
 - type MessageOnceConfig
 - type MethodNetHTTPHandlerConfig
 - type MethodNetHTTPHandlerMethodEnum
 - type MethodNetHTTPHandlerRoute
 - type MetricsNetHTTPHandler
 - type MultiNetHTTPHandlerConfig
 - type MultiOnceConfig
 - type MultiServiceConfig
 - type MultiStreamHandlerConfig
 - type MuxNetHTTPHandlerConfig
 - type MuxNetHTTPHandlerRoute
 - type MuxStreamHandlerConfig
 - type MuxStreamHandlerRoute
 - type NetConn
 - type NetPacketConn
 - type NoneIoReader
 - type NoneIoWriter
 - type NoneNetConn
 - type NoneNetHTTPHandler
 - type NoneNetPacketConn
 - type NoneOnce
 - type NonePacketHandler
 - type NonePacketListenConfig
 - type NoneProtocolHandler
 - type NoneService
 - type NoneStreamDialer
 - type NoneStreamHandler
 - type NoneStreamListenConfig
 - type NoneTLS
 - type Once
 - type OriginalStreamDialer
 - type PacketHandler
 - type PacketListenConfig
 - type PacketServiceConfig
 - type PprofNetHTTPHandler
 - type ProtocolHandler
 - type QuicStreamListenConfigConfig
 - type QuitNetHTTPHandler
 - type RawComponent
 - type RawHTTPHandler
 - type RawIoReader
 - type RawIoWriter
 - type RawNetConn
 - type RawNetPacketConn
 - type RawOnce
 - type RawPacketHandler
 - type RawPacketListenConfig
 - type RawProtocolHandler
 - type RawService
 - type RawStreamDialer
 - type RawStreamHandler
 - type RawStreamListenConfig
 - type RawTLS
 - type RedirectNetHTTPHandlerConfig
 - type RefIoReaderConfig
 - type RefIoWriterConfig
 - type RefNetConnConfig
 - type RefNetHTTPHandlerConfig
 - type RefNetPacketConnConfig
 - type RefOnceConfig
 - type RefPacketHandlerConfig
 - type RefPacketListenConfigConfig
 - type RefProtocolHandlerConfig
 - type RefServiceConfig
 - type RefStreamDialerConfig
 - type RefStreamHandlerConfig
 - type RefStreamListenConfigConfig
 - type RefTLSConfig
 - type RemoveRequestHeaderNetHTTPHandlerConfig
 - type RemoveResponseHeaderNetHTTPHandlerConfig
 - type SelfSignedTLS
 - type Service
 - type ServiceOnceConfig
 - type StreamDialer
 - type StreamHandler
 - type StreamListenConfig
 - type StreamServiceConfig
 - type StripPrefixNetHTTPHandlerConfig
 - type TLS
 - type TLSDownStreamHandlerConfig
 - type TLSStreamDialerConfig
 - type TLSStreamListenConfigConfig
 - type TLSUpStreamHandlerConfig
 - type ValidationTLSConfig
 - type WaitService
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AcmeTLSConfig ¶
AcmeTLSConfig acme@tls.TLS
func (AcmeTLSConfig) MarshalJSON ¶
func (m AcmeTLSConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type AddRequestHeaderNetHTTPHandlerConfig ¶
AddRequestHeaderNetHTTPHandlerConfig add_request_header@net/http.Handler
func (AddRequestHeaderNetHTTPHandlerConfig) MarshalJSON ¶
func (m AddRequestHeaderNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type AddResponseHeaderNetHTTPHandlerConfig ¶
AddResponseHeaderNetHTTPHandlerConfig add_response_header@net/http.Handler
func (AddResponseHeaderNetHTTPHandlerConfig) MarshalJSON ¶
func (m AddResponseHeaderNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
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 DefIoReaderConfig ¶
DefIoReaderConfig def@io.Reader
func (DefIoReaderConfig) MarshalJSON ¶
func (m DefIoReaderConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type DefIoWriterConfig ¶
DefIoWriterConfig def@io.Writer
func (DefIoWriterConfig) MarshalJSON ¶
func (m DefIoWriterConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type DefNetConnConfig ¶
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 ¶
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 ¶
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 ¶
DefTLSConfig def@tls.TLS
func (DefTLSConfig) MarshalJSON ¶
func (m DefTLSConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type DialerStreamDialerConfig ¶
type DialerStreamDialerConfig struct {
	Network DialerStreamDialerDialerNetworkEnum
	Address string
}
    DialerStreamDialerConfig dialer@stream.Dialer
func (DialerStreamDialerConfig) MarshalJSON ¶
func (m DialerStreamDialerConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type DialerStreamDialerDialerNetworkEnum ¶
type DialerStreamDialerDialerNetworkEnum string
const ( DialerStreamDialerDialerNetworkEnumEnumUnix DialerStreamDialerDialerNetworkEnum = "unix" DialerStreamDialerDialerNetworkEnumEnumTCP6 DialerStreamDialerDialerNetworkEnum = "tcp6" DialerStreamDialerDialerNetworkEnumEnumTCP4 DialerStreamDialerDialerNetworkEnum = "tcp4" DialerStreamDialerDialerNetworkEnumEnumTCP DialerStreamDialerDialerNetworkEnum = "tcp" )
type DirectNetHTTPHandlerConfig ¶
DirectNetHTTPHandlerConfig direct@net/http.Handler
func (DirectNetHTTPHandlerConfig) MarshalJSON ¶
func (m DirectNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
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 ¶
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 HostsNetHTTPHandlerConfig ¶
type HostsNetHTTPHandlerConfig struct {
	Hosts    []HostsNetHTTPHandlerRoute
	NotFound HTTPHandler `json:",omitempty"`
}
    HostsNetHTTPHandlerConfig hosts@net/http.Handler
func (HostsNetHTTPHandlerConfig) MarshalJSON ¶
func (m HostsNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type HostsNetHTTPHandlerRoute ¶
type HostsNetHTTPHandlerRoute 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   LbNetHTTPHandlerLoadBalancePolicyEnum `json:",omitempty"`
	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 LbNetHTTPHandlerLoadBalancePolicyEnum ¶
type LbNetHTTPHandlerLoadBalancePolicyEnum string
const ( LbNetHTTPHandlerLoadBalancePolicyEnumEnumRoundRobin LbNetHTTPHandlerLoadBalancePolicyEnum = "round_robin" LbNetHTTPHandlerLoadBalancePolicyEnumEnumRandom LbNetHTTPHandlerLoadBalancePolicyEnum = "random" )
type LbNetHTTPHandlerWeight ¶
type LbNetHTTPHandlerWeight struct {
	Weight  uint `json:",omitempty"`
	Handler HTTPHandler
}
    type LbStreamDialerConfig ¶
type LbStreamDialerConfig struct {
	Policy  LbStreamDialerLoadBalancePolicyEnum `json:",omitempty"`
	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 LbStreamDialerLoadBalancePolicyEnum ¶
type LbStreamDialerLoadBalancePolicyEnum string
const ( LbStreamDialerLoadBalancePolicyEnumEnumRoundRobin LbStreamDialerLoadBalancePolicyEnum = "round_robin" LbStreamDialerLoadBalancePolicyEnumEnumRandom LbStreamDialerLoadBalancePolicyEnum = "random" )
type LbStreamDialerWeight ¶
type LbStreamDialerWeight struct {
	Weight uint `json:",omitempty"`
	Dialer StreamDialer
}
    type LbStreamHandlerConfig ¶
type LbStreamHandlerConfig struct {
	Policy   LbStreamHandlerLoadBalancePolicyEnum `json:",omitempty"`
	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 LbStreamHandlerLoadBalancePolicyEnum ¶
type LbStreamHandlerLoadBalancePolicyEnum string
const ( LbStreamHandlerLoadBalancePolicyEnumEnumRoundRobin LbStreamHandlerLoadBalancePolicyEnum = "round_robin" LbStreamHandlerLoadBalancePolicyEnumEnumRandom LbStreamHandlerLoadBalancePolicyEnum = "random" )
type LbStreamHandlerWeight ¶
type LbStreamHandlerWeight struct {
	Weight  uint `json:",omitempty"`
	Handler StreamHandler
}
    type ListenerPacketListenConfigConfig ¶
type ListenerPacketListenConfigConfig struct {
	Network ListenerPacketListenConfigListenerNetworkEnum
	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 ListenerPacketListenConfigListenerNetworkEnum ¶
type ListenerPacketListenConfigListenerNetworkEnum string
const ( ListenerPacketListenConfigListenerNetworkEnumEnumUnixPacket ListenerPacketListenConfigListenerNetworkEnum = "unixpacket" ListenerPacketListenConfigListenerNetworkEnumEnumUDP6 ListenerPacketListenConfigListenerNetworkEnum = "udp6" ListenerPacketListenConfigListenerNetworkEnumEnumUDP4 ListenerPacketListenConfigListenerNetworkEnum = "udp4" ListenerPacketListenConfigListenerNetworkEnumEnumUDP ListenerPacketListenConfigListenerNetworkEnum = "udp" )
type ListenerStreamListenConfigConfig ¶
type ListenerStreamListenConfigConfig struct {
	Network ListenerStreamListenConfigListenerNetworkEnum
	Address string
}
    ListenerStreamListenConfigConfig listener@stream.ListenConfig
func (ListenerStreamListenConfigConfig) MarshalJSON ¶
func (m ListenerStreamListenConfigConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type ListenerStreamListenConfigListenerNetworkEnum ¶
type ListenerStreamListenConfigListenerNetworkEnum string
const ( ListenerStreamListenConfigListenerNetworkEnumEnumUnix ListenerStreamListenConfigListenerNetworkEnum = "unix" ListenerStreamListenConfigListenerNetworkEnumEnumTCP6 ListenerStreamListenConfigListenerNetworkEnum = "tcp6" ListenerStreamListenConfigListenerNetworkEnumEnumTCP4 ListenerStreamListenConfigListenerNetworkEnum = "tcp4" ListenerStreamListenConfigListenerNetworkEnumEnumTCP ListenerStreamListenConfigListenerNetworkEnum = "tcp" )
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 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 MuxNetHTTPHandlerConfig ¶
type MuxNetHTTPHandlerConfig struct {
	Routes   []MuxNetHTTPHandlerRoute
	NotFound HTTPHandler `json:",omitempty"`
}
    MuxNetHTTPHandlerConfig mux@net/http.Handler
func (MuxNetHTTPHandlerConfig) MarshalJSON ¶
func (m MuxNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type MuxNetHTTPHandlerRoute ¶
type MuxNetHTTPHandlerRoute struct {
	Prefix  string `json:",omitempty"`
	Path    string `json:",omitempty"`
	Regexp  string `json:",omitempty"`
	Handler HTTPHandler
}
    type MuxStreamHandlerConfig ¶
type MuxStreamHandlerConfig struct {
	Routes   []MuxStreamHandlerRoute
	NotFound StreamHandler
}
    MuxStreamHandlerConfig mux@stream.Handler
func (MuxStreamHandlerConfig) MarshalJSON ¶
func (m MuxStreamHandlerConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type MuxStreamHandlerRoute ¶
type MuxStreamHandlerRoute struct {
	Pattern string `json:",omitempty"`
	Regexp  string `json:",omitempty"`
	Prefix  string `json:",omitempty"`
	Handler StreamHandler
}
    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 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 ¶
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 ¶
MarshalJSON returns m as the JSON encoding of m.
type Once ¶
type Once interface {
	Component
	// contains filtered or unexported methods
}
    Once once.Once
type OriginalStreamDialer ¶
type OriginalStreamDialer struct {
}
    OriginalStreamDialer original@stream.Dialer
func (OriginalStreamDialer) MarshalJSON ¶
func (m OriginalStreamDialer) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
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 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 ProtocolHandler ¶
type ProtocolHandler interface {
	Component
	// contains filtered or unexported methods
}
    ProtocolHandler protocol.Handler
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 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 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 ¶
MarshalJSON returns m as the JSON encoding of m.
func (*RawOnce) UnmarshalJSON ¶
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 ¶
MarshalJSON returns m as the JSON encoding of m.
func (*RawTLS) UnmarshalJSON ¶
UnmarshalJSON sets *m to a copy of data.
type RedirectNetHTTPHandlerConfig ¶
RedirectNetHTTPHandlerConfig redirect@net/http.Handler
func (RedirectNetHTTPHandlerConfig) MarshalJSON ¶
func (m RedirectNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type RefIoReaderConfig ¶
RefIoReaderConfig ref@io.Reader
func (RefIoReaderConfig) MarshalJSON ¶
func (m RefIoReaderConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type RefIoWriterConfig ¶
RefIoWriterConfig ref@io.Writer
func (RefIoWriterConfig) MarshalJSON ¶
func (m RefIoWriterConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type RefNetConnConfig ¶
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 ¶
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 ¶
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 ¶
RefTLSConfig ref@tls.TLS
func (RefTLSConfig) MarshalJSON ¶
func (m RefTLSConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type RemoveRequestHeaderNetHTTPHandlerConfig ¶
type RemoveRequestHeaderNetHTTPHandlerConfig struct {
	Key string
}
    RemoveRequestHeaderNetHTTPHandlerConfig remove_request_header@net/http.Handler
func (RemoveRequestHeaderNetHTTPHandlerConfig) MarshalJSON ¶
func (m RemoveRequestHeaderNetHTTPHandlerConfig) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
type RemoveResponseHeaderNetHTTPHandlerConfig ¶
type RemoveResponseHeaderNetHTTPHandlerConfig struct {
	Key string
}
    RemoveResponseHeaderNetHTTPHandlerConfig remove_response_header@net/http.Handler
func (RemoveResponseHeaderNetHTTPHandlerConfig) MarshalJSON ¶
func (m RemoveResponseHeaderNetHTTPHandlerConfig) 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 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 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 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.