server

package
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: GPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtraGroup

type ExtraGroup struct {
	option.ExtraGroup
	// contains filtered or unexported fields
}

type Profile

type Profile struct {
	option.Profile
	// contains filtered or unexported fields
}

func (*Profile) Render

func (p *Profile) Render(metadata metadata.Metadata) (*boxOption.Options, error)

type ProfileManager

type ProfileManager struct {
	// contains filtered or unexported fields
}

func NewProfileManager

func NewProfileManager(
	ctx context.Context,
	logger logger.Logger,
	subscriptionManager *subscription.Manager,
	templateManager *template.Manager,
	outbounds [][]boxOption.Outbound,
	rawProfiles []option.Profile,
) (*ProfileManager, error)

func (*ProfileManager) DefaultProfile

func (m *ProfileManager) DefaultProfile() *Profile

func (*ProfileManager) ProfileByName

func (m *ProfileManager) ProfileByName(name string) *Profile

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, options option.Options) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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