server

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

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

type CreateNodeLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

type CreateServerLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

type DeleteNodeLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

type DeleteServerLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

type FilterNodeListLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

type FilterServerListLogic added in v1.1.0

type FilterServerListLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

type GetServerProtocolsLogic added in v1.1.0

type GetServerProtocolsLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

type HasMigrateSeverNodeLogic added in v1.1.0

type HasMigrateSeverNodeLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewHasMigrateSeverNodeLogic added in v1.1.0

func NewHasMigrateSeverNodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *HasMigrateSeverNodeLogic

NewHasMigrateSeverNodeLogic Check if there is any server or node to migrate

func (*HasMigrateSeverNodeLogic) HasMigrateSeverNode added in v1.1.0

func (l *HasMigrateSeverNodeLogic) HasMigrateSeverNode() (resp *types.HasMigrateSeverNodeResponse, err error)

type MigrateServerNodeLogic added in v1.1.0

type MigrateServerNodeLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewMigrateServerNodeLogic added in v1.1.0

func NewMigrateServerNodeLogic(ctx context.Context, svcCtx *svc.ServiceContext) *MigrateServerNodeLogic

NewMigrateServerNodeLogic Migrate server and node data to new database

func (*MigrateServerNodeLogic) MigrateServerNode added in v1.1.0

func (l *MigrateServerNodeLogic) MigrateServerNode() (resp *types.MigrateServerNodeResponse, err error)

type QueryNodeTagLogic added in v1.1.0

type QueryNodeTagLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

type ResetSortWithNodeLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

type ResetSortWithServerLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

type ToggleNodeStatusLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

type UpdateNodeLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

type UpdateServerLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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