http

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 10 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 {
	// contains filtered or unexported fields
}

Server describes the http server

func NewServer

func NewServer(port string, c *config.Config, logger *log.Logger) *Server

NewServer initializes the http server

func (*Server) Start

func (s *Server) Start() error

Start starts the http server

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop stops the http server

Directories

Path Synopsis
handler

Jump to

Keyboard shortcuts

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