server

package
v0.0.0-...-21d0996 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: Apache-2.0 Imports: 6 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   *zerolog.Logger
	Listener net.Listener
	Http     http.Server
}

Server is the http server for the api.

func (*Server) Close

func (s *Server) Close() error

Close closes server and underlying listener.

func (*Server) Run

func (s *Server) Run(ctx context.Context) (err error)

Run starts the server that host webapp and api endpoints.

Jump to

Keyboard shortcuts

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