Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForceHTTPS ¶
func NewHandler ¶
func NewHandler(logger logrus.FieldLogger) *fiber.App
func SSHWebsocket ¶
ws://host/ws/ssh?host=192.168.1.10&port=22&user=root&token=xxx
Types ¶
type Config ¶
HTTPServerConfig:单个 httpserver 实例的配置 HTTPServerConfig: configuration for a single httpserver instance.
type HTTPServerInstance ¶
type HTTPServerInstance struct {
api.Server
//Conf *config.Config
AccessLogger *logrus.Logger
// contains filtered or unexported fields
}
HTTPServerInstance:具体实例,实现 pluginapi.Instance HTTPServerInstance: concrete instance implementing pluginapi.Instance.
func New ¶
func New(cfg Config) *HTTPServerInstance
New:根据配置创建实例(不启动服务,Init 时才启动) New: create an instance from config (server starts in Init).
func (*HTTPServerInstance) Close ¶
func (s *HTTPServerInstance) Close() error
Close:取消实例 ctx,等待所有协程退出 Close: cancel instance ctx and wait for all goroutines to exit.
Click to show internal directories.
Click to hide internal directories.