shadowsocks

package
v0.0.0-...-ddd9f4d Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidStatus = errors.New("invalid status")

Functions

This section is empty.

Types

type Logger

type Logger interface {
	// contains filtered or unexported methods
}

type Loop

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

func NewLoop

func NewLoop(settings settings.Shadowsocks, logger Logger) *Loop

func (*Loop) GetSettings

func (l *Loop) GetSettings() (settings settings.Shadowsocks)

func (*Loop) GetStatus

func (l *Loop) GetStatus() (status models.LoopStatus)

func (*Loop) Run

func (l *Loop) Run(ctx context.Context, done chan<- struct{})

func (*Loop) SetSettings

func (l *Loop) SetSettings(ctx context.Context, settings settings.Shadowsocks) (
	outcome string,
)

func (*Loop) SetStatus

func (l *Loop) SetStatus(ctx context.Context, status models.LoopStatus) (
	outcome string, err error,
)

Jump to

Keyboard shortcuts

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