api

package
v0.0.0-...-f825e91 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Queue        *queue.Queue
	PingTimeout  time.Duration
	PingInterval time.Duration
}

API is a http API

func New

func New(q *queue.Queue) *API

New returns a new instance of the API with default settings

func (*API) Router

func (a *API) Router() http.Handler

Router returns a http router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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