subscription

package
v0.0.0-...-4bc3810 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultChainsConf

func GetDefaultChainsConf() subChainsConf

func GetDefaultConf

func GetDefaultConf() *subConf

func LoadAllConfsFromIni

func LoadAllConfsFromIni(source interface{}) (*subConf, error)

func UnmarshalChainsConfFromIni

func UnmarshalChainsConfFromIni(section *ini.Section) (subChainsConf, error)

func UnmarshalGroupsConfFromIni

func UnmarshalGroupsConfFromIni(section *ini.Section) (subGroupsConf, error)

func UnmarshalSubsConfFromIni

func UnmarshalSubsConfFromIni(section *ini.Section) (subSubsConf, error)

Types

type ClashProxy

type ClashProxy struct {
	Name       string                 `yaml:"name"`
	ProxyType  string                 `yaml:"type"`
	Server     string                 `yaml:"server"`
	Port       int                    `yaml:"port"`
	SNI        string                 `yaml:"sni,omitempty"`
	Servername string                 `yaml:"servername,omitempty"`
	Others     map[string]interface{} `yaml:",inline"`
}

type ClashSub

type ClashSub struct {
	Proxies []ClashProxy `yaml:"proxies"`
}

type Server

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

func NewServer

func NewServer(c *subConf) *Server

func (*Server) GetClashSub

func (s *Server) GetClashSub(c *gin.Context)

Jump to

Keyboard shortcuts

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