v1

package
v0.0.0-...-f7f2675 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 grouping all API flagged by version number 1

Index

Constants

This section is empty.

Variables

View Source
var (
	// Status is a variable that represents an instance of the `api.API` structure that defines a RESTful API for the "status" namespace with a single GET endpoint.
	// The endpoint is named "healthcheck" and it calls the `status.HealthCheck` function to handle the request.
	Status = &api.API{
		Version:   "v1",
		Namespace: "status",
		Get: map[string][]func(*fiber.Ctx) error{
			"healthcheck": {status.HealthCheck},
		},
	}

	// Fizzbuzz is a variable that represents an instance of the `api.API` structure that defines a RESTful API for the "fizzbuzz" namespace with two GET endpoints.
	// The first endpoint has the path `/:int1/:int2/:limit/:str1/:str2` and it calls three functions to handle the request: `fizzbuzz.FizzBuzzControls`, `fizzbuzz.FizzBuzzHits`, and `fizzbuzz.FizzBuzz`.
	// The second endpoint has the path "/stats" and it calls the `fizzbuzz.Stats` function to handle the request.
	Fizzbuzz = &api.API{
		Version:   "v1",
		Namespace: "fizzbuzz",
		Get: map[string][]func(*fiber.Ctx) error{
			"/:int1/:int2/:limit/:str1/:str2": {fizzbuzz.FizzBuzzControls, fizzbuzz.FizzBuzzHits, fizzbuzz.FizzBuzz},
			"/stats":                          {fizzbuzz.Stats},
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Package fizzbuzz implementation all handler for FizzBuzz API
Package fizzbuzz implementation all handler for FizzBuzz API
Package status implementation all handler for Status API
Package status implementation all handler for Status API

Jump to

Keyboard shortcuts

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