sub

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const ProxyGroups = `` /* 162-byte string literal not displayed */

Variables

This section is empty.

Functions

func NewSubHandler

func NewSubHandler(g *gin.RouterGroup)

Types

type ClashService

type ClashService struct {
	service.SettingService
	JsonService
	LinkService
}

func (*ClashService) ConvertToClashMeta

func (s *ClashService) ConvertToClashMeta(outbounds *[]map[string]interface{}) ([]byte, error)

func (*ClashService) GetClash

func (s *ClashService) GetClash(subId string) (*string, []string, error)

type JsonService

type JsonService struct {
	service.SettingService
	LinkService
}

func (*JsonService) GetJson

func (j *JsonService) GetJson(subId string, format string) (*string, []string, error)
type Link struct {
	Type   string `json:"type"`
	Remark string `json:"remark"`
	Uri    string `json:"uri"`
}

type LinkService

type LinkService struct {
}
func (s *LinkService) GetLinks(linkJson *json.RawMessage, types string, clientInfo string) []string

type Server

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

func NewServer

func NewServer() *Server

func (*Server) GetCtx

func (s *Server) GetCtx() context.Context

func (*Server) Start

func (s *Server) Start() (err error)

func (*Server) Stop

func (s *Server) Stop() error

type SubService

type SubService struct {
	service.SettingService
	LinkService
}

func (*SubService) GetSubs

func (s *SubService) GetSubs(subId string) (*string, []string, error)

Jump to

Keyboard shortcuts

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