httpapi

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const API = "1.0"

API is the current API version

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

type Printer struct {
	ID       string      `json:"id"`
	Hostname string      `json:"hostname"`
	Name     string      `json:"name"`
	Location string      `json:"location"`
	Driver   interface{} `json:"driver"`
}

Printer represents a network printer

type Server

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

Server represents shared resources

func NewServer

func NewServer(db *sql.DB, manager *sync.Manager, 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