Documentation
¶
Index ¶
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 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
}
type FallBackConfig ¶
Click to show internal directories.
Click to hide internal directories.