fasthttp

package
v0.0.0-...-4b1e2ef Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustBatchSize

func AdjustBatchSize(requested int, limit int) int

Types

type Log

type Log interface {
	Printf(format string, v ...interface{})
}

type Server

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

Server is an HTTP API instance

func New

func New(
	logErr Log,
	eventLog *eventlog.EventLog,
	maxReadBatchSize int,
) *Server

New returns a new HTTP API server instance

func (*Server) Close

func (s *Server) Close()

Close closes all open websocket connections

func (*Server) Serve

func (s *Server) Serve(ctx *fasthttp.RequestCtx)

Serve handles incomming requests from a fasthttp.Server

Jump to

Keyboard shortcuts

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