indexes

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

indexes

import "github.com/brittonhayes/warhammer-aos/pkg/indexes"

Index

func Handler

func Handler() func(ctx *fiber.Ctx) error

Handler returns an http response all of the indexes as a JSON

type Index

type Index string
const (
    RootIndex   Index = "/api"
    ArmiesIndex       = "/api/armies"
)
func (Index) List
func (i Index) List() []string

List lists out the the available API routes

func (*Index) Reply
func (i *Index) Reply() *handlers.Response

Reply returns the indexes formatted as an API response

Generated by gomarkdoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() func(ctx *fiber.Ctx) error

Handler returns an http response all of the indexes as a JSON

Types

type Index

type Index string
const (
	RootIndex        Index = "/api"
	ArmiesIndex      Index = "/api/armies"
	ArmiesParamIndex Index = "/api/armies/{name}"
)

func (Index) List

func (i Index) List() []string

List lists out the the available API routes

func (*Index) Reply

func (i *Index) Reply() *handlers.Response

Reply returns the indexes formatted as an API response

Jump to

Keyboard shortcuts

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