service

package
v0.0.0-...-9f01b0d Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is a container to hold all dependencies of client-api app.

func InitializeService

func InitializeService() (*Service, error)

InitializeServices provides new Service injected with dependencies

func NewService

func NewService(
	portsHandlers *handlers.PortsV1,
	storer ports.Storer) *Service

NewService instantiates Service struct.

func (*Service) Close

func (s *Service) Close() error

Close closes all dependencies

func (*Service) Handler

func (c *Service) Handler() http.Handler

Handler returns *mux.Router which conforms to the http.Handler interface.

Jump to

Keyboard shortcuts

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