webservice

package
v0.0.0-...-f3a6a69 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebHandler

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

func (*WebHandler) GracefulStop

func (w *WebHandler) GracefulStop() error

func (*WebHandler) Run

func (w *WebHandler) Run() error

type WebRegistrator

type WebRegistrator interface {
	Register(router router.Registrator)
}

type WebService

type WebService interface {
	Run() error
	GracefulStop() error
}

func NewWebService

func NewWebService(port string, routerRegistrator router.Registrator, registrators ...WebRegistrator) WebService

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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