handlers

package
v0.0.0-...-448f6b4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 2 Imported by: 0

README

handlers

import "github.com/brittonhayes/warhammer-aos/internal/handlers"

package handlers contains all http request handlers for the API

Index

type Handler

Handler contains all routes for API request handling

type Handler interface {
    AddRoute(path string, handlers ...fiber.Handler) *handle
}

type Response

Response is the default API response format

type Response struct {
    Count int         `json:"count"`
    Data  interface{} `json:"data"`
}

Generated by gomarkdoc

Documentation

Overview

package handlers contains all http request handlers for the API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *handle

New creates a request handler

Types

type Handler

type Handler interface {
	AddRoute(path string, handlers ...fiber.Handler) *handle
}

Handler contains all routes for API request handling

type Response

type Response struct {
	Count int         `json:"count"`
	Data  interface{} `json:"data"`
}

Response is the default API response format

Jump to

Keyboard shortcuts

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