subscribe

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
}

Dispatcher 订阅功能相关的控制器

func (Dispatcher) AddSubscribeURL

func (Dispatcher) AddSubscribeURL(c *gin.Context)

AddSubscribeURL 增加代理协议

func (Dispatcher) DeleteSubscribeURL

func (Dispatcher) DeleteSubscribeURL(c *gin.Context)

DeleteSubscribeURL 删除代理协议

func (Dispatcher) ListSubscribeURL

func (Dispatcher) ListSubscribeURL(c *gin.Context)

ListSubscribeURL 获取用户所有的订阅地址

func (Dispatcher) SubscribeProxyProtocol

func (Dispatcher) SubscribeProxyProtocol(c *gin.Context)

SubscribeProxyProtocol 订阅代理协议。 支持服务提供商 vmess 协议格式 和 v2ray协议 vless 格式配置

func (Dispatcher) UpdateSubscribeURL

func (Dispatcher) UpdateSubscribeURL(c *gin.Context)

UpdateSubscribeURL 修改代理协议

type SubcribeParams

type SubcribeParams struct {
	ID   int    `json:"id"`
	UID  int    `json:"uid"`
	Name string `json:"name"`
	URL  string `json:"url"`
}

SubcribeParams 订阅协议参数

Jump to

Keyboard shortcuts

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