app

package
v0.0.0-...-2a85768 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

App contains the jobs queue and where to publish metrics

func New

func New(workers int) *App

New is a constructor

func (*App) ServeHTTP

func (a *App) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP makes App an http.Handler

type Job

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

Job is a simulated amount of work that takes 'secs' seconds to complete

func (Job) Run

func (j Job) Run() bool

Run returns true if ok

type Metrics

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

Metrics for USE obsrvability

Jump to

Keyboard shortcuts

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