webhandler

package
v0.0.0-...-2dd72ea Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForwardToHost

func ForwardToHost(c *gin.Context, f func(c *gin.Context))

func GetAction

func GetAction(c *gin.Context)

func GetActionWebTTY

func GetActionWebTTY(c *gin.Context)

func GetActions

func GetActions(c *gin.Context)

func GetDisks

func GetDisks(c *gin.Context)

GetDisks return list of hosts

func GetHosts

func GetHosts(c *gin.Context)

GetHosts return list of hosts

func GetWebTTY

func GetWebTTY(c *gin.Context)

GetWebTTY return list of hosts

func MakeForwardToHost

func MakeForwardToHost(f func(c *gin.Context)) func(c *gin.Context)

Types

type CertHandler

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

func NewCertHandler

func NewCertHandler(certs ...*setup.Certificates) *CertHandler

func (*CertHandler) GetCertificates

func (h *CertHandler) GetCertificates(c *gin.Context)

GetCertificates return list of hosts

func (*CertHandler) PostCertificates

func (h *CertHandler) PostCertificates(c *gin.Context)

func (*CertHandler) RegisterEndpoints

func (h *CertHandler) RegisterEndpoints(r gin.IRoutes)

type UserInfo

type UserInfo struct {
	Name string `json:"text,omitempty"`
	Icon string `json:"icon,omitempty"`
}

type WebHandler

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

WebHandler handles all http endpoints

func (*WebHandler) SetupEndpoints

func (wh *WebHandler) SetupEndpoints(r *gin.Engine) (err error)

SetupEndpoints registers the http endpoints

type WebhandlerDownloads

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

func NewWebhandlerDownloads

func NewWebhandlerDownloads() (wh *WebhandlerDownloads)

func (*WebhandlerDownloads) SetupEndpoints

func (wh *WebhandlerDownloads) SetupEndpoints(r *gin.RouterGroup)

Jump to

Keyboard shortcuts

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