Documentation ¶
Index ¶
- func BuildConfigJSON(port int, clients ...string) string
- func GenerateTrojanURL(baseURL string) (string, error)
- func GenerateVlessURL(baseURL, userID string) (string, error)
- func Run(args []string) error
- type Builder
- type Client
- type Config
- type Inbound
- type InboundSettings
- type Outbound
- type StreamSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildConfigJSON ¶
func GenerateTrojanURL ¶
func GenerateVlessURL ¶
Types ¶
type Builder ¶
type Builder interface { AddInbound(Inbound) Builder AddOutbound(Outbound) Builder Build() (Config, error) }
func NewConfigBuilder ¶
func NewConfigBuilder() Builder
type Inbound ¶
type Inbound struct { Port int `json:"port"` Listen string `json:"listen"` Protocol string `json:"protocol"` Settings InboundSettings `json:"settings"` StreamSettings StreamSettings `json:"streamSettings"` }
type InboundSettings ¶
type StreamSettings ¶
type StreamSettings struct {
Network string `json:"network"`
}
Click to show internal directories.
Click to hide internal directories.