server

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexCache

func IndexCache(cache map[string]*CachedInstance) error

func RunWebserver

func RunWebserver() error

Types

type CachedInstance

type CachedInstance struct {
	AbsolutePath string
	Data         []byte
	ContentType  string
}

func LoadCache

func LoadCache(cache *map[string]*CachedInstance, path []byte) *CachedInstance

TODO Streaming

type Webserver

type Webserver struct {
	Cache map[string]*CachedInstance
}

func (*Webserver) HandleFastHTTP

func (h *Webserver) HandleFastHTTP(ctx *fasthttp.RequestCtx)

Jump to

Keyboard shortcuts

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