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 ¶
func NewV2RayServer(logger log.Logger, options option.V2RayAPIOptions) (adapter.V2RayServer, error)
func RegisterClashServerConstructor ¶
func RegisterClashServerConstructor(constructor ClashServerConstructor)
func RegisterV2RayServerConstructor ¶
func RegisterV2RayServerConstructor(constructor V2RayServerConstructor)
Types ¶
type ClashServerConstructor ¶
type ClashServerConstructor = func(ctx context.Context, router adapter.Router, logFactory log.ObservableFactory, options option.ClashAPIOptions) (adapter.ClashServer, error)
type V2RayServerConstructor ¶
type V2RayServerConstructor = func(logger log.Logger, options option.V2RayAPIOptions) (adapter.V2RayServer, error)
Click to show internal directories.
Click to hide internal directories.