Documentation ¶
Index ¶
- func NewClashServer(ctx context.Context, router adapter.Router, logFactory log.ObservableFactory, ...) (adapter.ClashServer, error)
- func NewV2RayServer(logger log.Logger, options option.V2RayAPIOptions) (adapter.V2RayServer, error)
- func RegisterClashServerConstructor(constructor ClashServerConstructor)
- func RegisterV2RayServerConstructor(constructor V2RayServerConstructor)
- type ClashServerConstructor
- type V2RayServerConstructor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClashServer ¶
func NewClashServer(ctx context.Context, router adapter.Router, logFactory log.ObservableFactory, options option.ClashAPIOptions) (adapter.ClashServer, error)
func NewV2RayServer ¶ added in v1.1.0
func NewV2RayServer(logger log.Logger, options option.V2RayAPIOptions) (adapter.V2RayServer, error)
func RegisterClashServerConstructor ¶ added in v1.1.0
func RegisterClashServerConstructor(constructor ClashServerConstructor)
func RegisterV2RayServerConstructor ¶ added in v1.1.0
func RegisterV2RayServerConstructor(constructor V2RayServerConstructor)
Types ¶
type ClashServerConstructor ¶ added in v1.1.0
type ClashServerConstructor = func(ctx context.Context, router adapter.Router, logFactory log.ObservableFactory, options option.ClashAPIOptions) (adapter.ClashServer, error)
type V2RayServerConstructor ¶ added in v1.1.0
type V2RayServerConstructor = func(logger log.Logger, options option.V2RayAPIOptions) (adapter.V2RayServer, error)
Click to show internal directories.
Click to hide internal directories.