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: 7 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 {
	DB *sql.DB
	// contains filtered or unexported fields
}

Service is a container to hold all dependencies of port-domain app.

func InitializeService

func InitializeService() (*Service, error)

InitializeServices provides new Service injected with dependencies

func NewService

func NewService(db *sql.DB, storer ports.Storer) *Service

NewService returns new Service struct

func (*Service) Close

func (c *Service) Close() error

Close closes all dependencies of the service.

func (*Service) GRPC

func (s *Service) GRPC() (*grpc.Server, error)

GRPC returns initialized grpc server.

Jump to

Keyboard shortcuts

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