Versions in this module Expand all Collapse all v2 v2.8.9 Feb 16, 2026 Changes in this version + type Outbound struct + Mux json_util.RawMessage + Protocol string + Settings map[string]any + StreamSettings json_util.RawMessage + Tag string + type PageData struct + BasePath string + Datepicker string + Download string + DownloadByte int64 + Expire int64 + Host string + LastOnline int64 + Remained string + Result []string + SId string + SubJsonUrl string + SubUrl string + Total string + TotalByte int64 + Upload string + UploadByte int64 + Used string + type SUBController struct + func NewSUBController(g *gin.RouterGroup, subPath string, jsonPath string, jsonEnabled bool, ...) *SUBController + func (a *SUBController) ApplyCommonHeaders(c *gin.Context, header, updateInterval, profileTitle string, ...) + type Server struct + func NewServer() *Server + func (s *Server) GetCtx() context.Context + func (s *Server) Start() (err error) + func (s *Server) Stop() error + type ServerSetting struct + Address string + Flow string + Level int + Method string + Password string + Port int + type SubJsonService struct + SubService *SubService + func NewSubJsonService(fragment string, noises string, mux string, rules string, ...) *SubJsonService + func (s *SubJsonService) GetJson(subId string, host string) (string, string, error) + type SubService struct + func NewSubService(showInfo bool, remarkModel string) *SubService + func (s *SubService) BuildPageData(subId string, hostHeader string, traffic xray.ClientTraffic, lastOnline int64, ...) PageData + func (s *SubService) BuildURLs(scheme, hostWithPort, subPath, subJsonPath, subId string) (subURL, subJsonURL string) + func (s *SubService) GetSubs(subId string, host string) ([]string, int64, xray.ClientTraffic, error) + func (s *SubService) ResolveRequest(c *gin.Context) (scheme string, host string, hostWithPort string, hostHeader string) + type UserVnext struct + Email string + ID string + Security string + type VnextSetting struct + Address string + Port int + Users []UserVnext