webui

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server implements an HTTP server which exposes a JSON API to view and manage gocraft/work items.

func NewServer

func NewServer(namespace string, pool *redis.Pool, hostPort string) *Server

NewServer creates and returns a new server. The 'namespace' param is the redis namespace to use. The hostPort param is the address to bind on to expose the API.

func (*Server) Start

func (w *Server) Start()

Start starts the server listening for requests on the hostPort specified in NewServer.

func (*Server) Stop

func (w *Server) Stop()

Stop stops the server and blocks until it has finished.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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