crash.software
Projects
Pull Requests
Issues
Builds
SeaMoon
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
SeaMoon
Files
🤬
Sign In
ff358b7c
ROOT
/
pkg
/
api
/
service
/
tunnel.go
Search
History
161 lines
|
UTF-8
|
4 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
tunnel
*tunnel
TotalTunnels
(ctx context.Context)
:
(int64, error)
ListTunnels
(ctx context.Context, page, size int)
:
(models.TunnelList, error)
GetTunnelById
(ctx context.Context, id uint)
:
(*models.Tunnel, error)
GetTunnelByUId
(ctx context.Context, uid string)
:
(*models.Tunnel, error)
GetTunnelByName
(ctx context.Context, name string)
:
(*models.Tunnel, error)
CreateTunnel
(ctx context.Context, obj *models.Tunnel)
:
(*models.Tunnel, error)
UpdateTunnel
(ctx context.Context, obj *models.Tunnel)
:
(*models.Tunnel, error)
UpdateTunnelStatus
(ctx context.Context, id uint, status enum.TunnelStatus, msg string)
UpdateTunnelStatusByUid
(ctx context.Context, uid string, status enum.TunnelStatus, msg string)
UpdateTunnelDetail
(ctx context.Context, id uint, addr string, uid string)
DeleteTunnel
(ctx context.Context, id uint)
:
error
ExistTunnel
(ctx context.Context, name, uid *string)
:
bool
DeployTunnel
(ctx context.Context, tun *models.Tunnel)
:
(string, string, error)
StopTunnel
(ctx context.Context, tun *models.Tunnel)
:
error
All occurrences
Please wait...
Page is in error, reload to recover