service

package
v0.0.0-...-d8a4e70 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: AGPL-3.0 Imports: 55 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

func Bind

func Bind[T any](r *http.Request) (*T, error)

Bind 验证并绑定请求参数

func Error

func Error(w http.ResponseWriter, code int, format string, args ...any)

Error 响应错误

func ErrorSystem

func ErrorSystem(w http.ResponseWriter)

ErrorSystem 响应系统错误

func Paginate

func Paginate[T any](r *http.Request, items []T) (pagedItems []T, total uint)

Paginate 取分页条目

func Success

func Success(w http.ResponseWriter, data any)

Success 响应成功

Types

type AppService

type AppService struct {
	// contains filtered or unexported fields
}

func NewAppService

func NewAppService(app biz.AppRepo, cache biz.CacheRepo, setting biz.SettingRepo) *AppService

func (*AppService) Install

func (s *AppService) Install(w http.ResponseWriter, r *http.Request)

func (*AppService) IsInstalled

func (s *AppService) IsInstalled(w http.ResponseWriter, r *http.Request)

func (*AppService) List

func (s *AppService) List(w http.ResponseWriter, r *http.Request)

func (*AppService) Uninstall

func (s *AppService) Uninstall(w http.ResponseWriter, r *http.Request)

func (*AppService) Update

func (s *AppService) Update(w http.ResponseWriter, r *http.Request)

func (*AppService) UpdateCache

func (s *AppService) UpdateCache(w http.ResponseWriter, r *http.Request)

func (*AppService) UpdateShow

func (s *AppService) UpdateShow(w http.ResponseWriter, r *http.Request)

type BackupService

type BackupService struct {
	// contains filtered or unexported fields
}

func NewBackupService

func NewBackupService(backup biz.BackupRepo) *BackupService

func (*BackupService) Create

func (s *BackupService) Create(w http.ResponseWriter, r *http.Request)

func (*BackupService) Delete

func (s *BackupService) Delete(w http.ResponseWriter, r *http.Request)

func (*BackupService) List

func (s *BackupService) List(w http.ResponseWriter, r *http.Request)

func (*BackupService) Restore

func (s *BackupService) Restore(w http.ResponseWriter, r *http.Request)

func (*BackupService) Upload

func (s *BackupService) Upload(w http.ResponseWriter, r *http.Request)

type CertAccountService

type CertAccountService struct {
	// contains filtered or unexported fields
}

func NewCertAccountService

func NewCertAccountService(certAccount biz.CertAccountRepo) *CertAccountService

func (*CertAccountService) Create

func (*CertAccountService) Delete

func (*CertAccountService) Get

func (*CertAccountService) List

func (*CertAccountService) Update

type CertDNSService

type CertDNSService struct {
	// contains filtered or unexported fields
}

func NewCertDNSService

func NewCertDNSService(certDNS biz.CertDNSRepo) *CertDNSService

func (*CertDNSService) Create

func (s *CertDNSService) Create(w http.ResponseWriter, r *http.Request)

func (*CertDNSService) Delete

func (s *CertDNSService) Delete(w http.ResponseWriter, r *http.Request)

func (*CertDNSService) Get

func (*CertDNSService) List

func (*CertDNSService) Update

func (s *CertDNSService) Update(w http.ResponseWriter, r *http.Request)

type CertService

type CertService struct {
	// contains filtered or unexported fields
}

func NewCertService

func NewCertService(cert biz.CertRepo) *CertService

func (*CertService) Algorithms

func (s *CertService) Algorithms(w http.ResponseWriter, r *http.Request)

func (*CertService) CAProviders

func (s *CertService) CAProviders(w http.ResponseWriter, r *http.Request)

func (*CertService) Create

func (s *CertService) Create(w http.ResponseWriter, r *http.Request)

func (*CertService) DNSProviders

func (s *CertService) DNSProviders(w http.ResponseWriter, r *http.Request)

func (*CertService) Delete

func (s *CertService) Delete(w http.ResponseWriter, r *http.Request)

func (*CertService) Deploy

func (s *CertService) Deploy(w http.ResponseWriter, r *http.Request)

func (*CertService) Get

func (s *CertService) Get(w http.ResponseWriter, r *http.Request)

func (*CertService) List

func (s *CertService) List(w http.ResponseWriter, r *http.Request)

func (*CertService) ManualDNS

func (s *CertService) ManualDNS(w http.ResponseWriter, r *http.Request)

func (*CertService) ObtainAuto

func (s *CertService) ObtainAuto(w http.ResponseWriter, r *http.Request)

func (*CertService) ObtainManual

func (s *CertService) ObtainManual(w http.ResponseWriter, r *http.Request)

func (*CertService) ObtainSelfSigned

func (s *CertService) ObtainSelfSigned(w http.ResponseWriter, r *http.Request)

func (*CertService) Renew

func (s *CertService) Renew(w http.ResponseWriter, r *http.Request)

func (*CertService) Update

func (s *CertService) Update(w http.ResponseWriter, r *http.Request)

func (*CertService) Upload

func (s *CertService) Upload(w http.ResponseWriter, r *http.Request)

type CliService

type CliService struct {
	// contains filtered or unexported fields
}

func NewCliService

func NewCliService(conf *koanf.Koanf, db *gorm.DB, appRepo biz.AppRepo, cache biz.CacheRepo, user biz.UserRepo, setting biz.SettingRepo, backup biz.BackupRepo, website biz.WebsiteRepo, databaseServer biz.DatabaseServerRepo) *CliService

func (*CliService) AppInstall

func (s *CliService) AppInstall(ctx context.Context, cmd *cli.Command) error

func (*CliService) AppRemove

func (s *CliService) AppRemove(ctx context.Context, cmd *cli.Command) error

func (*CliService) AppUnInstall

func (s *CliService) AppUnInstall(ctx context.Context, cmd *cli.Command) error

func (*CliService) AppUpdate

func (s *CliService) AppUpdate(ctx context.Context, cmd *cli.Command) error

func (*CliService) AppWrite

func (s *CliService) AppWrite(ctx context.Context, cmd *cli.Command) error

func (*CliService) BackupClear

func (s *CliService) BackupClear(ctx context.Context, cmd *cli.Command) error

func (*CliService) BackupDatabase

func (s *CliService) BackupDatabase(ctx context.Context, cmd *cli.Command) error

func (*CliService) BackupPanel

func (s *CliService) BackupPanel(ctx context.Context, cmd *cli.Command) error

func (*CliService) BackupWebsite

func (s *CliService) BackupWebsite(ctx context.Context, cmd *cli.Command) error

func (*CliService) ClearTask

func (s *CliService) ClearTask(ctx context.Context, cmd *cli.Command) error

func (*CliService) CutoffClear

func (s *CliService) CutoffClear(ctx context.Context, cmd *cli.Command) error

func (*CliService) CutoffWebsite

func (s *CliService) CutoffWebsite(ctx context.Context, cmd *cli.Command) error

func (*CliService) DatabaseAddServer

func (s *CliService) DatabaseAddServer(ctx context.Context, cmd *cli.Command) error

func (*CliService) DatabaseDeleteServer

func (s *CliService) DatabaseDeleteServer(ctx context.Context, cmd *cli.Command) error

func (*CliService) EntranceOff

func (s *CliService) EntranceOff(ctx context.Context, cmd *cli.Command) error

func (*CliService) EntranceOn

func (s *CliService) EntranceOn(ctx context.Context, cmd *cli.Command) error

func (*CliService) Fix

func (s *CliService) Fix(ctx context.Context, cmd *cli.Command) error

func (*CliService) GetSetting

func (s *CliService) GetSetting(ctx context.Context, cmd *cli.Command) error

func (*CliService) HTTPSGenerate

func (s *CliService) HTTPSGenerate(ctx context.Context, cmd *cli.Command) error

func (*CliService) HTTPSOff

func (s *CliService) HTTPSOff(ctx context.Context, cmd *cli.Command) error

func (*CliService) HTTPSOn

func (s *CliService) HTTPSOn(ctx context.Context, cmd *cli.Command) error

func (*CliService) Info

func (s *CliService) Info(ctx context.Context, cmd *cli.Command) error

func (*CliService) Init

func (s *CliService) Init(ctx context.Context, cmd *cli.Command) error

func (*CliService) Port

func (s *CliService) Port(ctx context.Context, cmd *cli.Command) error

func (*CliService) RemoveSetting

func (s *CliService) RemoveSetting(ctx context.Context, cmd *cli.Command) error

func (*CliService) Restart

func (s *CliService) Restart(ctx context.Context, cmd *cli.Command) error

func (*CliService) Start

func (s *CliService) Start(ctx context.Context, cmd *cli.Command) error

func (*CliService) Stop

func (s *CliService) Stop(ctx context.Context, cmd *cli.Command) error

func (*CliService) Sync

func (s *CliService) Sync(ctx context.Context, cmd *cli.Command) error

func (*CliService) SyncTime

func (s *CliService) SyncTime(ctx context.Context, cmd *cli.Command) error

func (*CliService) Update

func (s *CliService) Update(ctx context.Context, cmd *cli.Command) error

func (*CliService) UserList

func (s *CliService) UserList(ctx context.Context, cmd *cli.Command) error

func (*CliService) UserName

func (s *CliService) UserName(ctx context.Context, cmd *cli.Command) error

func (*CliService) UserPassword

func (s *CliService) UserPassword(ctx context.Context, cmd *cli.Command) error

func (*CliService) WebsiteCreate

func (s *CliService) WebsiteCreate(ctx context.Context, cmd *cli.Command) error

func (*CliService) WebsiteDelete

func (s *CliService) WebsiteDelete(ctx context.Context, cmd *cli.Command) error

func (*CliService) WebsiteRemove

func (s *CliService) WebsiteRemove(ctx context.Context, cmd *cli.Command) error

func (*CliService) WebsiteWrite

func (s *CliService) WebsiteWrite(ctx context.Context, cmd *cli.Command) error

func (*CliService) WriteSetting

func (s *CliService) WriteSetting(ctx context.Context, cmd *cli.Command) error

type ContainerImageService

type ContainerImageService struct {
	// contains filtered or unexported fields
}

func NewContainerImageService

func NewContainerImageService(containerImage biz.ContainerImageRepo) *ContainerImageService

func (*ContainerImageService) List

func (*ContainerImageService) Prune

func (*ContainerImageService) Pull

func (*ContainerImageService) Remove

type ContainerNetworkService

type ContainerNetworkService struct {
	// contains filtered or unexported fields
}

func NewContainerNetworkService

func NewContainerNetworkService(containerNetwork biz.ContainerNetworkRepo) *ContainerNetworkService

func (*ContainerNetworkService) Create

func (*ContainerNetworkService) List

func (*ContainerNetworkService) Prune

func (*ContainerNetworkService) Remove

type ContainerService

type ContainerService struct {
	// contains filtered or unexported fields
}

func NewContainerService

func NewContainerService(container biz.ContainerRepo) *ContainerService

func (*ContainerService) Create

func (s *ContainerService) Create(w http.ResponseWriter, r *http.Request)

func (*ContainerService) Kill

func (*ContainerService) List

func (*ContainerService) Logs

func (*ContainerService) Pause

func (*ContainerService) Prune

func (*ContainerService) Remove

func (s *ContainerService) Remove(w http.ResponseWriter, r *http.Request)

func (*ContainerService) Rename

func (s *ContainerService) Rename(w http.ResponseWriter, r *http.Request)

func (*ContainerService) Restart

func (s *ContainerService) Restart(w http.ResponseWriter, r *http.Request)

func (*ContainerService) Search

func (s *ContainerService) Search(w http.ResponseWriter, r *http.Request)

func (*ContainerService) Start

func (*ContainerService) Stop

func (*ContainerService) Unpause

func (s *ContainerService) Unpause(w http.ResponseWriter, r *http.Request)

type ContainerVolumeService

type ContainerVolumeService struct {
	// contains filtered or unexported fields
}

func NewContainerVolumeService

func NewContainerVolumeService(containerVolume biz.ContainerVolumeRepo) *ContainerVolumeService

func (*ContainerVolumeService) Create

func (*ContainerVolumeService) List

func (*ContainerVolumeService) Prune

func (*ContainerVolumeService) Remove

type CronService

type CronService struct {
	// contains filtered or unexported fields
}

func NewCronService

func NewCronService(cron biz.CronRepo) *CronService

func (*CronService) Create

func (s *CronService) Create(w http.ResponseWriter, r *http.Request)

func (*CronService) Delete

func (s *CronService) Delete(w http.ResponseWriter, r *http.Request)

func (*CronService) Get

func (s *CronService) Get(w http.ResponseWriter, r *http.Request)

func (*CronService) List

func (s *CronService) List(w http.ResponseWriter, r *http.Request)

func (*CronService) Status

func (s *CronService) Status(w http.ResponseWriter, r *http.Request)

func (*CronService) Update

func (s *CronService) Update(w http.ResponseWriter, r *http.Request)

type DashboardService

type DashboardService struct {
	// contains filtered or unexported fields
}

func NewDashboardService

func NewDashboardService(conf *koanf.Koanf, task biz.TaskRepo, website biz.WebsiteRepo, appRepo biz.AppRepo, setting biz.SettingRepo, cron biz.CronRepo, backupRepo biz.BackupRepo) *DashboardService

func (*DashboardService) CheckUpdate

func (s *DashboardService) CheckUpdate(w http.ResponseWriter, r *http.Request)

func (*DashboardService) CountInfo

func (s *DashboardService) CountInfo(w http.ResponseWriter, r *http.Request)

func (*DashboardService) Current

func (s *DashboardService) Current(w http.ResponseWriter, r *http.Request)

func (*DashboardService) HomeApps

func (s *DashboardService) HomeApps(w http.ResponseWriter, r *http.Request)

func (*DashboardService) InstalledDbAndPhp

func (s *DashboardService) InstalledDbAndPhp(w http.ResponseWriter, r *http.Request)

func (*DashboardService) Panel

func (*DashboardService) Restart

func (s *DashboardService) Restart(w http.ResponseWriter, r *http.Request)

func (*DashboardService) SystemInfo

func (s *DashboardService) SystemInfo(w http.ResponseWriter, r *http.Request)

func (*DashboardService) Update

func (s *DashboardService) Update(w http.ResponseWriter, r *http.Request)

func (*DashboardService) UpdateInfo

func (s *DashboardService) UpdateInfo(w http.ResponseWriter, r *http.Request)

type DatabaseServerService

type DatabaseServerService struct {
	// contains filtered or unexported fields
}

func NewDatabaseServerService

func NewDatabaseServerService(databaseServer biz.DatabaseServerRepo) *DatabaseServerService

func (*DatabaseServerService) Create

func (*DatabaseServerService) Delete

func (*DatabaseServerService) Get

func (*DatabaseServerService) List

func (*DatabaseServerService) Sync

func (*DatabaseServerService) Update

func (*DatabaseServerService) UpdateRemark

func (s *DatabaseServerService) UpdateRemark(w http.ResponseWriter, r *http.Request)

type DatabaseService

type DatabaseService struct {
	// contains filtered or unexported fields
}

func NewDatabaseService

func NewDatabaseService(database biz.DatabaseRepo) *DatabaseService

func (*DatabaseService) Comment

func (s *DatabaseService) Comment(w http.ResponseWriter, r *http.Request)

func (*DatabaseService) Create

func (s *DatabaseService) Create(w http.ResponseWriter, r *http.Request)

func (*DatabaseService) Delete

func (s *DatabaseService) Delete(w http.ResponseWriter, r *http.Request)

func (*DatabaseService) List

type DatabaseUserService

type DatabaseUserService struct {
	// contains filtered or unexported fields
}

func NewDatabaseUserService

func NewDatabaseUserService(databaseUser biz.DatabaseUserRepo) *DatabaseUserService

func (*DatabaseUserService) Create

func (*DatabaseUserService) Delete

func (*DatabaseUserService) Get

func (*DatabaseUserService) List

func (*DatabaseUserService) Update

func (*DatabaseUserService) UpdateRemark

func (s *DatabaseUserService) UpdateRemark(w http.ResponseWriter, r *http.Request)

type ErrorResponse

type ErrorResponse struct {
	Message string `json:"message"`
}

ErrorResponse 通用错误响应

type FileService

type FileService struct {
	// contains filtered or unexported fields
}

func NewFileService

func NewFileService(task biz.TaskRepo) *FileService

func (*FileService) Compress

func (s *FileService) Compress(w http.ResponseWriter, r *http.Request)

func (*FileService) Content

func (s *FileService) Content(w http.ResponseWriter, r *http.Request)

func (*FileService) Copy

func (s *FileService) Copy(w http.ResponseWriter, r *http.Request)

func (*FileService) Create

func (s *FileService) Create(w http.ResponseWriter, r *http.Request)

func (*FileService) Delete

func (s *FileService) Delete(w http.ResponseWriter, r *http.Request)

func (*FileService) Download

func (s *FileService) Download(w http.ResponseWriter, r *http.Request)

func (*FileService) Exist

func (s *FileService) Exist(w http.ResponseWriter, r *http.Request)

func (*FileService) Info

func (s *FileService) Info(w http.ResponseWriter, r *http.Request)

func (*FileService) List

func (s *FileService) List(w http.ResponseWriter, r *http.Request)

func (*FileService) Move

func (s *FileService) Move(w http.ResponseWriter, r *http.Request)

func (*FileService) Permission

func (s *FileService) Permission(w http.ResponseWriter, r *http.Request)

func (*FileService) RemoteDownload

func (s *FileService) RemoteDownload(w http.ResponseWriter, r *http.Request)

func (*FileService) Save

func (s *FileService) Save(w http.ResponseWriter, r *http.Request)

func (*FileService) Search

func (s *FileService) Search(w http.ResponseWriter, r *http.Request)

func (*FileService) UnCompress

func (s *FileService) UnCompress(w http.ResponseWriter, r *http.Request)

func (*FileService) Upload

func (s *FileService) Upload(w http.ResponseWriter, r *http.Request)

type FirewallService

type FirewallService struct {
	// contains filtered or unexported fields
}

func NewFirewallService

func NewFirewallService() *FirewallService

func (*FirewallService) CreateForward

func (s *FirewallService) CreateForward(w http.ResponseWriter, r *http.Request)

func (*FirewallService) CreateIPRule

func (s *FirewallService) CreateIPRule(w http.ResponseWriter, r *http.Request)

func (*FirewallService) CreateRule

func (s *FirewallService) CreateRule(w http.ResponseWriter, r *http.Request)

func (*FirewallService) DeleteForward

func (s *FirewallService) DeleteForward(w http.ResponseWriter, r *http.Request)

func (*FirewallService) DeleteIPRule

func (s *FirewallService) DeleteIPRule(w http.ResponseWriter, r *http.Request)

func (*FirewallService) DeleteRule

func (s *FirewallService) DeleteRule(w http.ResponseWriter, r *http.Request)

func (*FirewallService) GetForwards

func (s *FirewallService) GetForwards(w http.ResponseWriter, r *http.Request)

func (*FirewallService) GetIPRules

func (s *FirewallService) GetIPRules(w http.ResponseWriter, r *http.Request)

func (*FirewallService) GetRules

func (s *FirewallService) GetRules(w http.ResponseWriter, r *http.Request)

func (*FirewallService) GetStatus

func (s *FirewallService) GetStatus(w http.ResponseWriter, r *http.Request)

func (*FirewallService) UpdateStatus

func (s *FirewallService) UpdateStatus(w http.ResponseWriter, r *http.Request)

type MonitorService

type MonitorService struct {
	// contains filtered or unexported fields
}

func NewMonitorService

func NewMonitorService(setting biz.SettingRepo, monitor biz.MonitorRepo) *MonitorService

func (*MonitorService) Clear

func (s *MonitorService) Clear(w http.ResponseWriter, r *http.Request)

func (*MonitorService) GetSetting

func (s *MonitorService) GetSetting(w http.ResponseWriter, r *http.Request)

func (*MonitorService) List

func (*MonitorService) UpdateSetting

func (s *MonitorService) UpdateSetting(w http.ResponseWriter, r *http.Request)

type ProcessService

type ProcessService struct {
}

func NewProcessService

func NewProcessService() *ProcessService

func (*ProcessService) Kill

func (*ProcessService) List

type SSHService

type SSHService struct {
	// contains filtered or unexported fields
}

func NewSSHService

func NewSSHService(ssh biz.SSHRepo) *SSHService

func (*SSHService) Create

func (s *SSHService) Create(w http.ResponseWriter, r *http.Request)

func (*SSHService) Delete

func (s *SSHService) Delete(w http.ResponseWriter, r *http.Request)

func (*SSHService) Get

func (s *SSHService) Get(w http.ResponseWriter, r *http.Request)

func (*SSHService) List

func (s *SSHService) List(w http.ResponseWriter, r *http.Request)

func (*SSHService) Update

func (s *SSHService) Update(w http.ResponseWriter, r *http.Request)

type SafeService

type SafeService struct {
	// contains filtered or unexported fields
}

func NewSafeService

func NewSafeService(safe biz.SafeRepo) *SafeService

func (*SafeService) GetPingStatus

func (s *SafeService) GetPingStatus(w http.ResponseWriter, r *http.Request)

func (*SafeService) GetSSH

func (s *SafeService) GetSSH(w http.ResponseWriter, r *http.Request)

func (*SafeService) UpdatePingStatus

func (s *SafeService) UpdatePingStatus(w http.ResponseWriter, r *http.Request)

func (*SafeService) UpdateSSH

func (s *SafeService) UpdateSSH(w http.ResponseWriter, r *http.Request)

type SettingService

type SettingService struct {
	// contains filtered or unexported fields
}

func NewSettingService

func NewSettingService(setting biz.SettingRepo) *SettingService

func (*SettingService) Get

func (*SettingService) Update

func (s *SettingService) Update(w http.ResponseWriter, r *http.Request)

type SuccessResponse

type SuccessResponse struct {
	Message string `json:"message"`
	Data    any    `json:"data"`
}

SuccessResponse 通用成功响应

type SystemctlService

type SystemctlService struct {
}

func NewSystemctlService

func NewSystemctlService() *SystemctlService

func (*SystemctlService) Disable

func (s *SystemctlService) Disable(w http.ResponseWriter, r *http.Request)

func (*SystemctlService) Enable

func (s *SystemctlService) Enable(w http.ResponseWriter, r *http.Request)

func (*SystemctlService) IsEnabled

func (s *SystemctlService) IsEnabled(w http.ResponseWriter, r *http.Request)

func (*SystemctlService) Reload

func (s *SystemctlService) Reload(w http.ResponseWriter, r *http.Request)

func (*SystemctlService) Restart

func (s *SystemctlService) Restart(w http.ResponseWriter, r *http.Request)

func (*SystemctlService) Start

func (*SystemctlService) Status

func (s *SystemctlService) Status(w http.ResponseWriter, r *http.Request)

func (*SystemctlService) Stop

type TaskService

type TaskService struct {
	// contains filtered or unexported fields
}

func NewTaskService

func NewTaskService(task biz.TaskRepo) *TaskService

func (*TaskService) Delete

func (s *TaskService) Delete(w http.ResponseWriter, r *http.Request)

func (*TaskService) Get

func (s *TaskService) Get(w http.ResponseWriter, r *http.Request)

func (*TaskService) List

func (s *TaskService) List(w http.ResponseWriter, r *http.Request)

func (*TaskService) Status

func (s *TaskService) Status(w http.ResponseWriter, r *http.Request)

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(conf *koanf.Koanf, session *sessions.Manager, user biz.UserRepo) *UserService

func (*UserService) GetKey

func (s *UserService) GetKey(w http.ResponseWriter, r *http.Request)

func (*UserService) Info

func (s *UserService) Info(w http.ResponseWriter, r *http.Request)

func (*UserService) IsLogin

func (s *UserService) IsLogin(w http.ResponseWriter, r *http.Request)

func (*UserService) Login

func (s *UserService) Login(w http.ResponseWriter, r *http.Request)

func (*UserService) Logout

func (s *UserService) Logout(w http.ResponseWriter, r *http.Request)

type WebsiteService

type WebsiteService struct {
	// contains filtered or unexported fields
}

func NewWebsiteService

func NewWebsiteService(website biz.WebsiteRepo, setting biz.SettingRepo) *WebsiteService

func (*WebsiteService) ClearLog

func (s *WebsiteService) ClearLog(w http.ResponseWriter, r *http.Request)

func (*WebsiteService) Create

func (s *WebsiteService) Create(w http.ResponseWriter, r *http.Request)

func (*WebsiteService) Delete

func (s *WebsiteService) Delete(w http.ResponseWriter, r *http.Request)

func (*WebsiteService) Get

func (*WebsiteService) GetDefaultConfig

func (s *WebsiteService) GetDefaultConfig(w http.ResponseWriter, r *http.Request)

func (*WebsiteService) GetRewrites

func (s *WebsiteService) GetRewrites(w http.ResponseWriter, r *http.Request)

func (*WebsiteService) List

func (*WebsiteService) ObtainCert

func (s *WebsiteService) ObtainCert(w http.ResponseWriter, r *http.Request)

func (*WebsiteService) ResetConfig

func (s *WebsiteService) ResetConfig(w http.ResponseWriter, r *http.Request)

func (*WebsiteService) Update

func (s *WebsiteService) Update(w http.ResponseWriter, r *http.Request)

func (*WebsiteService) UpdateDefaultConfig

func (s *WebsiteService) UpdateDefaultConfig(w http.ResponseWriter, r *http.Request)

func (*WebsiteService) UpdateRemark

func (s *WebsiteService) UpdateRemark(w http.ResponseWriter, r *http.Request)

func (*WebsiteService) UpdateStatus

func (s *WebsiteService) UpdateStatus(w http.ResponseWriter, r *http.Request)

type WsService

type WsService struct {
	// contains filtered or unexported fields
}

func NewWsService

func NewWsService(conf *koanf.Koanf, ssh biz.SSHRepo) *WsService

func (*WsService) Exec

func (s *WsService) Exec(w http.ResponseWriter, r *http.Request)

func (*WsService) Session

func (s *WsService) Session(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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