handlers

package
v0.0.0-...-e360745 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package handlers manages the different versions of the API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Log  *zap.SugaredLogger
	DB   *sqlx.DB
	Saga saga.Saga
}

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