webserver

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Webserver

type Webserver struct {
	Store            *store.Store
	Melody           *melody.Melody
	Config           *models.Config
	WebsocketHandler handlers.WebsocketHandler

	CA *ca.CA
	// contains filtered or unexported fields
}

func New

func (*Webserver) Init

func (ws *Webserver) Init(requireAuth bool) *gin.Engine

func (*Webserver) Logout

func (ws *Webserver) Logout(uuid string) error

func (*Webserver) ServeHTTP

func (ws *Webserver) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*Webserver) Start

func (ws *Webserver) Start(addr string, tlsConfig *tls.Config) chan struct{}

Jump to

Keyboard shortcuts

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