server

package
v0.0.0-...-3f62951 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 14 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
}

func NewServer

func NewServer(
	cfg *config.Configuration,
	logger *zap.Logger,
) (*Server, error)

func (*Server) Close

func (srv *Server) Close() error

Close closes all db connections or any other clean up

func (*Server) HealthHandler

func (s *Server) HealthHandler(w http.ResponseWriter, r *http.Request)

func (*Server) IncomingSmsHandler

func (s *Server) IncomingSmsHandler(w http.ResponseWriter, r *http.Request)

func (*Server) Serve

func (s *Server) Serve()

Jump to

Keyboard shortcuts

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