api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FastHomePage

func FastHomePage(ctx *fasthttp.RequestCtx, hostname, port string)

FastHomePage is the methods for serve the home page. It print the list of file that you can query with the complete link in order to copy and paste easily

func InitAPIFasthttp

func InitAPIFasthttp(hostname, port string, size int)

HandleRequests is the hook the real function/wrapper for expose the API. It's main scope it's to map the url to the function that have to do the work. It take in input the pointer to the list of file to server; The pointer to the datastructure.Configuration in order to change the parameter at runtime;the channel used for thread safety

Types

This section is empty.

Jump to

Keyboard shortcuts

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