server

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Logger *zap.SugaredLogger

	Port             string
	ReadTimeout      time.Duration
	ReadBackOffLimit int
	// contains filtered or unexported fields
}

func NewServer

func NewServer(port string,
	logger *zap.Logger, readTimeout time.Duration,
	readBackOffLimit int,
	ttlBackgroundWorkerInterval int,
) *Server

func (*Server) Close

func (s *Server) Close() error

func (*Server) ListenAndAccept

func (s *Server) ListenAndAccept() error

Jump to

Keyboard shortcuts

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