server

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Root = "keep."
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Routes

type Routes map[string]http.Handler

type Server

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

func New

func New(routes Routes) *Server

func (*Server) Listen

func (s *Server) Listen(addr string) error

func (*Server) UpdateRoutes

func (s *Server) UpdateRoutes(routes Routes)

Jump to

Keyboard shortcuts

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