hub

package
v0.0.0-...-4e1c907 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(options ...Option) error

Parse 函数是启动Clash时首先调用的函数,用于解析配置并启动相关服务

Types

type Option

type Option func(*config.Config)

Option 定义了函数类型,用于修改配置对象

func WithExternalController

func WithExternalController(externalController string) Option

WithExternalController 创建Option,设置外部控制器的地址

func WithExternalUI

func WithExternalUI(externalUI string) Option

WithExternalUI 创建Option,设置外部UI的路径

func WithSecret

func WithSecret(secret string) Option

WithSecret 创建Option,设置RESTful API的安全密钥

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL