api

package module
v0.0.0-...-5861ff1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 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 API

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

API holds endpoints and instance data

func New

func New(s storage.Storage, q queue.Queue) *API

New instance for API

func (*API) JobLoop

func (a *API) JobLoop()

JobLoop handle the queue communication with workers

func (*API) Register

func (a *API) Register(r *mux.Router)

Register the API endpoints

Directories

Path Synopsis
cmd
api

Jump to

Keyboard shortcuts

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