handlers

package
v0.0.0-...-47aab7a Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package handlers manages the different versions of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrScheduleTimeout = fmt.Errorf("task scheduling timeout")
)

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	BusyTimeout    time.Duration
	Log            *log.Logger
	Workers        *pool.NonBlocking[string]
	PasswordMinLen int
}

APIConfig contains all the mandatory systems required by handlers.

func (APIConfig) Router

func (cfg APIConfig) Router() http.Handler

Router constructs a http.Handler with all application routes defined.

Jump to

Keyboard shortcuts

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