server

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package server implements the core engine for Revere's web mode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebServer

type WebServer struct {
	*env.Env
	// contains filtered or unexported fields
}

WebServer wraps a Router + DB object, and allows users to configure Revere components through a web UI.

func New

func New(env *env.Env) *WebServer

New initializes the WebServer.

func (*WebServer) Start

func (w *WebServer) Start()

Start starts the WebServer.

func (*WebServer) Stop

func (w *WebServer) Stop()

Stop gracefully stops the WebServer. Stop will block until the WebServer finishes handling its current requests, and will then shut down the WebServer.

Jump to

Keyboard shortcuts

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