Documentation
¶
Overview ¶
Package generate the InbounderConfig used by add inbound
Index ¶
- Constants
- func InboundBuilder(config *Config, nodeInfo *api.NodeInfo) (*core.InboundHandlerConfig, error)
- func OutboundBlockBuilder() (*core.OutboundHandlerConfig, error)
- func OutboundBuilder(nodeInfo *api.NodeInfo) (*core.OutboundHandlerConfig, error)
- type Builder
- type CertConfig
- type Config
- type Service
Constants ¶
View Source
const ( TLS = "tls" TCP = "tcp" WS = "ws" GRPC = "grpc" )
Variables ¶
This section is empty.
Functions ¶
func InboundBuilder ¶
InboundBuilder build Inbound config for different protocol
func OutboundBlockBuilder ¶
func OutboundBlockBuilder() (*core.OutboundHandlerConfig, error)
func OutboundBuilder ¶
func OutboundBuilder(nodeInfo *api.NodeInfo) (*core.OutboundHandlerConfig, error)
OutboundBuilder build freedom outbund config for addoutbound
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func New ¶
func New(inboundTag string, instance *core.Instance, config *Config, nodeInfo *api.NodeInfo, getUserList func() (*[]api.UserInfo, error), reportUserTraffic func([]*api.UserTraffic) error, ) *Builder
New return a builder service with default parameters.
type CertConfig ¶
type Config ¶
type Config struct { SysInterval time.Duration Cert *CertConfig }
Click to show internal directories.
Click to hide internal directories.