Documentation
¶
Index ¶
- Constants
- type CreateNodeLogic
- type CreateServerLogic
- type DeleteNodeLogic
- type DeleteServerLogic
- type FilterNodeListLogic
- type FilterServerListLogic
- type GetServerProtocolsLogic
- type QueryNodeTagLogic
- type ResetSortWithNodeLogic
- type ResetSortWithServerLogic
- type ToggleNodeStatusLogic
- type UpdateNodeLogic
- type UpdateServerLogic
Constants ¶
View Source
const ( ShadowSocks = "shadowsocks" Vmess = "vmess" Vless = "vless" Trojan = "trojan" AnyTLS = "anytls" Tuic = "tuic" Hysteria2 = "hysteria2" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateNodeLogic ¶
func NewCreateNodeLogic ¶
func NewCreateNodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateNodeLogic
NewCreateNodeLogic Create Node
func (*CreateNodeLogic) CreateNode ¶
func (l *CreateNodeLogic) CreateNode(req *types.CreateNodeRequest) error
type CreateServerLogic ¶ added in v1.1.0
func NewCreateServerLogic ¶ added in v1.1.0
func NewCreateServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateServerLogic
NewCreateServerLogic Create Server
func (*CreateServerLogic) CreateServer ¶ added in v1.1.0
func (l *CreateServerLogic) CreateServer(req *types.CreateServerRequest) error
type DeleteNodeLogic ¶
func NewDeleteNodeLogic ¶
func NewDeleteNodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteNodeLogic
NewDeleteNodeLogic Delete Node
func (*DeleteNodeLogic) DeleteNode ¶
func (l *DeleteNodeLogic) DeleteNode(req *types.DeleteNodeRequest) error
type DeleteServerLogic ¶ added in v1.1.0
func NewDeleteServerLogic ¶ added in v1.1.0
func NewDeleteServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteServerLogic
NewDeleteServerLogic Delete Server
func (*DeleteServerLogic) DeleteServer ¶ added in v1.1.0
func (l *DeleteServerLogic) DeleteServer(req *types.DeleteServerRequest) error
type FilterNodeListLogic ¶ added in v1.1.0
func NewFilterNodeListLogic ¶ added in v1.1.0
func NewFilterNodeListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FilterNodeListLogic
NewFilterNodeListLogic Filter Node List
func (*FilterNodeListLogic) FilterNodeList ¶ added in v1.1.0
func (l *FilterNodeListLogic) FilterNodeList(req *types.FilterNodeListRequest) (resp *types.FilterNodeListResponse, err error)
type FilterServerListLogic ¶ added in v1.1.0
func NewFilterServerListLogic ¶ added in v1.1.0
func NewFilterServerListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FilterServerListLogic
NewFilterServerListLogic Filter Server List
func (*FilterServerListLogic) FilterServerList ¶ added in v1.1.0
func (l *FilterServerListLogic) FilterServerList(req *types.FilterServerListRequest) (resp *types.FilterServerListResponse, err error)
type GetServerProtocolsLogic ¶ added in v1.1.0
func NewGetServerProtocolsLogic ¶ added in v1.1.0
func NewGetServerProtocolsLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetServerProtocolsLogic
Get Server Protocols
func (*GetServerProtocolsLogic) GetServerProtocols ¶ added in v1.1.0
func (l *GetServerProtocolsLogic) GetServerProtocols(req *types.GetServerProtocolsRequest) (resp *types.GetServerProtocolsResponse, err error)
type QueryNodeTagLogic ¶ added in v1.1.0
func NewQueryNodeTagLogic ¶ added in v1.1.0
func NewQueryNodeTagLogic(ctx context.Context, svcCtx *svc.ServiceContext) *QueryNodeTagLogic
NewQueryNodeTagLogic Query all node tags
func (*QueryNodeTagLogic) QueryNodeTag ¶ added in v1.1.0
func (l *QueryNodeTagLogic) QueryNodeTag() (resp *types.QueryNodeTagResponse, err error)
type ResetSortWithNodeLogic ¶ added in v1.1.0
func NewResetSortWithNodeLogic ¶ added in v1.1.0
func NewResetSortWithNodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ResetSortWithNodeLogic
NewResetSortWithNodeLogic Reset node sort
func (*ResetSortWithNodeLogic) ResetSortWithNode ¶ added in v1.1.0
func (l *ResetSortWithNodeLogic) ResetSortWithNode(req *types.ResetSortRequest) error
type ResetSortWithServerLogic ¶ added in v1.1.0
func NewResetSortWithServerLogic ¶ added in v1.1.0
func NewResetSortWithServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ResetSortWithServerLogic
NewResetSortWithServerLogic Reset server sort
func (*ResetSortWithServerLogic) ResetSortWithServer ¶ added in v1.1.0
func (l *ResetSortWithServerLogic) ResetSortWithServer(req *types.ResetSortRequest) error
type ToggleNodeStatusLogic ¶ added in v1.1.0
func NewToggleNodeStatusLogic ¶ added in v1.1.0
func NewToggleNodeStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ToggleNodeStatusLogic
NewToggleNodeStatusLogic Toggle Node Status
func (*ToggleNodeStatusLogic) ToggleNodeStatus ¶ added in v1.1.0
func (l *ToggleNodeStatusLogic) ToggleNodeStatus(req *types.ToggleNodeStatusRequest) error
type UpdateNodeLogic ¶
func NewUpdateNodeLogic ¶
func NewUpdateNodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateNodeLogic
NewUpdateNodeLogic Update Node
func (*UpdateNodeLogic) UpdateNode ¶
func (l *UpdateNodeLogic) UpdateNode(req *types.UpdateNodeRequest) error
type UpdateServerLogic ¶ added in v1.1.0
func NewUpdateServerLogic ¶ added in v1.1.0
func NewUpdateServerLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateServerLogic
NewUpdateServerLogic Update Server
func (*UpdateServerLogic) UpdateServer ¶ added in v1.1.0
func (l *UpdateServerLogic) UpdateServer(req *types.UpdateServerRequest) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.