Documentation ¶
Index ¶
- type InboundsService
- func (inboundsService *InboundsService) AssemblyParameter(inbounds *ladder.Inbounds, serverNode ladder.ServerNode) map[string]string
- func (inboundsService *InboundsService) CreateInbounds(inbounds *ladder.Inbounds) (err error)
- func (inboundsService *InboundsService) CreateServerNodeInboundsLink(userInfo systemReq.CustomClaims, inbounds *ladder.Inbounds) (err error)
- func (inboundsService *InboundsService) DeleteInbounds(inbounds ladder.Inbounds) (err error)
- func (inboundsService *InboundsService) DeleteInboundsByIds(ids request.IdsReq, deleted_by uint) (err error)
- func (inboundsService *InboundsService) GetInbounds(id uint) (inbounds ladder.Inbounds, err error)
- func (inboundsService *InboundsService) GetInboundsInfo(userId, sid uint) (inboundObj ladder.Obj, err error)
- func (inboundsService *InboundsService) GetInboundsInfoList(info ladderReq.InboundsSearch) (list []ladder.Inbounds, total int64, err error)
- func (inboundsService *InboundsService) GetInboundsLink(userInfo systemReq.CustomClaims, sid uint) (inbounds ladder.Inbounds, err error)
- func (inboundsService *InboundsService) SetInboundsLink(userInfo systemReq.CustomClaims, inbounds ladder.Inbounds) (err error)
- func (inboundsService *InboundsService) UpdateInbounds(inbounds ladder.Inbounds) (err error)
- func (inboundsService *InboundsService) UpdateServerNodeInbounds(obj ladder.Obj, serverNode ladder.ServerNode) (err error)
- type ServerNodeService
- func (serverNodeService *ServerNodeService) CreateServerNode(serverNode *ladder.ServerNode) (err error)
- func (serverNodeService *ServerNodeService) DeleteServerNode(serverNode ladder.ServerNode) (err error)
- func (serverNodeService *ServerNodeService) DeleteServerNodeByIds(ids request.IdsReq, deletedBy uint) (err error)
- func (serverNodeService *ServerNodeService) GetServerNode(id uint) (serverNode ladder.ServerNode, err error)
- func (serverNodeService *ServerNodeService) GetServerNodeInfoList(info ladderReq.ServerNodeSearch) (list []ladder.ServerNode, total int64, err error)
- func (serverNodeService *ServerNodeService) GetServerNodeLessInfoList(info ladderReq.ServerNodeSearch, userID uint) (list []ladderReq.ServerNodeResponse, total int64, err error)
- func (serverNodeService *ServerNodeService) GetServerNodeList() (list []ladder.ServerNode, err error)
- func (serverNodeService *ServerNodeService) GetUserServerNodeList() (serverNodes []ladder.ServerNode, err error)
- func (serverNodeService *ServerNodeService) ServerNodeLogin(serverNode ladder.ServerNode) (err error)
- func (serverNodeService *ServerNodeService) SyncLadderCookie() (err error)
- func (serverNodeService *ServerNodeService) UpdateServerNode(serverNode ladder.ServerNode) (err error)
- type ServiceGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InboundsService ¶
type InboundsService struct { }
func (*InboundsService) AssemblyParameter ¶
func (inboundsService *InboundsService) AssemblyParameter(inbounds *ladder.Inbounds, serverNode ladder.ServerNode) map[string]string
AssemblyParameter 参数组装
func (*InboundsService) CreateInbounds ¶
func (inboundsService *InboundsService) CreateInbounds(inbounds *ladder.Inbounds) (err error)
CreateInbounds 创建Inbounds记录
func (*InboundsService) CreateServerNodeInboundsLink ¶
func (inboundsService *InboundsService) CreateServerNodeInboundsLink(userInfo systemReq.CustomClaims, inbounds *ladder.Inbounds) (err error)
CreateServerNodeInboundsLink 向节点服务器添加节点链接
func (*InboundsService) DeleteInbounds ¶
func (inboundsService *InboundsService) DeleteInbounds(inbounds ladder.Inbounds) (err error)
DeleteInbounds 删除Inbounds记录
func (*InboundsService) DeleteInboundsByIds ¶
func (inboundsService *InboundsService) DeleteInboundsByIds(ids request.IdsReq, deleted_by uint) (err error)
DeleteInboundsByIds 批量删除Inbounds记录
func (*InboundsService) GetInbounds ¶
func (inboundsService *InboundsService) GetInbounds(id uint) (inbounds ladder.Inbounds, err error)
GetInbounds 根据id获取Inbounds记录
func (*InboundsService) GetInboundsInfo ¶
func (inboundsService *InboundsService) GetInboundsInfo(userId, sid uint) (inboundObj ladder.Obj, err error)
func (*InboundsService) GetInboundsInfoList ¶
func (inboundsService *InboundsService) GetInboundsInfoList(info ladderReq.InboundsSearch) (list []ladder.Inbounds, total int64, err error)
GetInboundsInfoList 分页获取Inbounds记录
func (*InboundsService) GetInboundsLink ¶
func (inboundsService *InboundsService) GetInboundsLink(userInfo systemReq.CustomClaims, sid uint) (inbounds ladder.Inbounds, err error)
func (*InboundsService) SetInboundsLink ¶
func (inboundsService *InboundsService) SetInboundsLink(userInfo systemReq.CustomClaims, inbounds ladder.Inbounds) (err error)
func (*InboundsService) UpdateInbounds ¶
func (inboundsService *InboundsService) UpdateInbounds(inbounds ladder.Inbounds) (err error)
UpdateInbounds 更新Inbounds记录
func (*InboundsService) UpdateServerNodeInbounds ¶
func (inboundsService *InboundsService) UpdateServerNodeInbounds(obj ladder.Obj, serverNode ladder.ServerNode) (err error)
UpdateServerNodeInbounds 根据节点服务器修改节点
type ServerNodeService ¶
type ServerNodeService struct { }
func (*ServerNodeService) CreateServerNode ¶
func (serverNodeService *ServerNodeService) CreateServerNode(serverNode *ladder.ServerNode) (err error)
CreateServerNode 创建ServerNode记录
func (*ServerNodeService) DeleteServerNode ¶
func (serverNodeService *ServerNodeService) DeleteServerNode(serverNode ladder.ServerNode) (err error)
DeleteServerNode 删除ServerNode记录
func (*ServerNodeService) DeleteServerNodeByIds ¶
func (serverNodeService *ServerNodeService) DeleteServerNodeByIds(ids request.IdsReq, deletedBy uint) (err error)
DeleteServerNodeByIds 批量删除ServerNode记录
func (*ServerNodeService) GetServerNode ¶
func (serverNodeService *ServerNodeService) GetServerNode(id uint) (serverNode ladder.ServerNode, err error)
GetServerNode 根据id获取ServerNode记录
func (*ServerNodeService) GetServerNodeInfoList ¶
func (serverNodeService *ServerNodeService) GetServerNodeInfoList(info ladderReq.ServerNodeSearch) (list []ladder.ServerNode, total int64, err error)
GetServerNodeInfoList 分页获取ServerNode记录
func (*ServerNodeService) GetServerNodeLessInfoList ¶
func (serverNodeService *ServerNodeService) GetServerNodeLessInfoList(info ladderReq.ServerNodeSearch, userID uint) (list []ladderReq.ServerNodeResponse, total int64, err error)
GetServerNodeLessInfoList 分页获取ServerNode记录,过滤掉敏感信息
func (*ServerNodeService) GetServerNodeList ¶
func (serverNodeService *ServerNodeService) GetServerNodeList() (list []ladder.ServerNode, err error)
GetServerNodeList 获取ServerNode所有记录
func (*ServerNodeService) GetUserServerNodeList ¶
func (serverNodeService *ServerNodeService) GetUserServerNodeList() (serverNodes []ladder.ServerNode, err error)
func (*ServerNodeService) ServerNodeLogin ¶
func (serverNodeService *ServerNodeService) ServerNodeLogin(serverNode ladder.ServerNode) (err error)
ServerNodeLogin 处理登陆获取cookie
func (*ServerNodeService) SyncLadderCookie ¶
func (serverNodeService *ServerNodeService) SyncLadderCookie() (err error)
func (*ServerNodeService) UpdateServerNode ¶
func (serverNodeService *ServerNodeService) UpdateServerNode(serverNode ladder.ServerNode) (err error)
UpdateServerNode 更新ServerNode记录
type ServiceGroup ¶
type ServiceGroup struct { ServerNodeService InboundsService }
Click to show internal directories.
Click to hide internal directories.