http

package
v0.0.0-...-39bbb99 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core struct {
	Caches []cacheType
	Config *cfg.Config

	Templates *template.Template
	Resources map[string][]byte
	// contains filtered or unexported fields
}

Core holds all relevant data.

func New

func New(c *cfg.Config, m *com.Config, t *template.Template, debug bool) *Core

New returns a point to Core

func (*Core) ListenAndServe

func (co *Core) ListenAndServe() error

ListenAndServe starts a HTTP webserver with the configuration from Core.

func (*Core) ListenAndServeTLS

func (co *Core) ListenAndServeTLS(ca, cert, key string) error

ListenAndServeTLS starts a HTTPS (mTLS) webserver with the configuration from Core.

func (*Core) Watcher

func (co *Core) Watcher(threshold uint)

Jump to

Keyboard shortcuts

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