http

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(address string, handler http.Handler) *http.Server

func ShutdownServer

func ShutdownServer(ctx context.Context, srv *http.Server, l *zap.SugaredLogger)

func StartServer

func StartServer(srv *http.Server, l *zap.SugaredLogger, errchan chan error)

Types

type TransportHttp

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

func NewTransportHttp

func NewTransportHttp(ctx context.Context, postgresCli *postgres.PostgresClient, fanInEvent <-chan eventbus.Topic) (*TransportHttp, error)

func (*TransportHttp) ServeHTTP

func (tr *TransportHttp) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP faz o TransportHttp implementar a interface http.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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