server

package
v0.0.0-...-dec19c8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger        *zap.Logger
	Handler       fasthttp.RequestHandler
	ListenAddress string
	ReadTimeout   time.Duration
	WriteTimeout  time.Duration
	IdleTimeout   time.Duration
	MaxBodySize   uint
}

type Server

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

Server is a runnable fasthttp server intended to be used with media apps.

func New

func New(cfg *Config) *Server

func (*Server) Run

func (s *Server) Run(ctx context.Context, wg *sync.WaitGroup, errc chan<- error)

Jump to

Keyboard shortcuts

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