restfibonacciserver

package
v0.0.0-...-ba4ce30 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp() *App

func (*App) Start

func (a *App) Start()

type AsyncResponse

type AsyncResponse struct {
	RequestId        string `json:"requestid"`
	FibonacciNumbers []int  `json:"fibonacciNumbers"`
	EndOfResponse    bool   `json:"endOfResponse"`
}

type AsyncStore

type AsyncStore struct {
	// contains filtered or unexported fields
}

func NewAsyncStore

func NewAsyncStore(requestedRange int) *AsyncStore

func (*AsyncStore) Read

func (ns *AsyncStore) Read() ([]int, int, int)

func (*AsyncStore) Write

func (ns *AsyncStore) Write(number, current int)

type SyncResponse

type SyncResponse struct {
	TimeTaken        string `json:"timeTaken"`
	FibonacciNumbers []int  `json:"fibonacciNumbers"`
}

Jump to

Keyboard shortcuts

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