surge

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Surge

type Surge struct {
	Adapter proxy.Adapter
	UUID    string
	User    UserInfo
}

func NewSurge

func NewSurge(adapter proxy.Adapter) *Surge

func (*Surge) Build

func (m *Surge) Build(uuid, siteName string, user UserInfo) []byte

type UserInfo

type UserInfo struct {
	UUID         string
	Upload       int64
	Download     int64
	TotalTraffic int64
	ExpiredDate  time.Time
	SubscribeURL string
}

Jump to

Keyboard shortcuts

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