Documentation
¶
Overview ¶
Package generate the InbounderConfig used by add inbound
Index ¶
- Constants
- func InboundBuilder(config *Config, nodeInfo *api.VMessConfig) (*core.InboundHandlerConfig, error)
- func OutboundBlockBuilder() (*core.OutboundHandlerConfig, error)
- func OutboundBuilder(nodeInfo *api.VMessConfig) (*core.OutboundHandlerConfig, error)
- type Builder
- type CertConfig
- type Config
- type Service
Constants ¶
View Source
const ( TLS = "tls" TCP = "tcp" WS = "ws" GRPC = "grpc" H2 = "h2" )
Variables ¶
This section is empty.
Functions ¶
func InboundBuilder ¶
func InboundBuilder(config *Config, nodeInfo *api.VMessConfig) (*core.InboundHandlerConfig, error)
InboundBuilder build Inbound config for different protocol
func OutboundBlockBuilder ¶
func OutboundBlockBuilder() (*core.OutboundHandlerConfig, error)
func OutboundBuilder ¶
func OutboundBuilder(nodeInfo *api.VMessConfig) (*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.VMessConfig, fetchUsers func(api.NodeId, api.NodeType) (*[]api.User, error), reportTraffics func(api.NodeId, api.NodeType, []*api.UserTraffic) error, ) *Builder
New return a builder service with default parameters.
type CertConfig ¶
Click to show internal directories.
Click to hide internal directories.