httpapi

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const API = "2.0"

API is the current API version

Variables

View Source
var Debug = false

Debug will pass debugging information to the client if true

Functions

This section is empty.

Types

type Server

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

Server represents shared resources

func NewServer

func NewServer(db db.DB, auth auth.Auth, sessionStore session.Store, output io.Writer) *Server

NewServer returns a new server with the given resources

func (*Server) Router

func (s *Server) Router() http.Handler

Router returns a new API router

Jump to

Keyboard shortcuts

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