internal

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

API Logic

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FibonacciHandler

func FibonacciHandler(c echo.Context) error

Root path handler

func FibonacciSequenceHandler

func FibonacciSequenceHandler(c echo.Context) error

Sequence Path

func NewServer

func NewServer(port int, banner bool) error

Initialize a new server with configuration

Types

type EchoError

type EchoError struct {
	Message error `json:"message"`
	Code    int   `json:"code"`
}

Error JSON Response

type FibonacciNumber

type FibonacciNumber struct {
	Number int `json:"number"`
}

Root path Response

type FibonacciNumberSequence

type FibonacciNumberSequence struct {
	Numbers []int `json:"numbers"`
}

sequence path JSON Response

Jump to

Keyboard shortcuts

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