rest

package
v0.0.0-...-04d14b8 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

func InitContainer

func InitContainer(config *pkg.Config, logger *pkg.Logger, pgpool *pgxpool.Pool) *Container

func (*Container) GetPingService

func (s *Container) GetPingService() *ping.Service

func (*Container) GetRestServer

func (s *Container) GetRestServer() *server.Server

func (*Container) GetRestServerRouter

func (s *Container) GetRestServerRouter() *server.Router

func (*Container) GetUserRepository

func (s *Container) GetUserRepository() models.UserRepository

func (*Container) GetUserService

func (s *Container) GetUserService() *user.Service

type Service

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

func InitService

func InitService(
	config *pkg.Config,
	logger *pkg.Logger,
	container *Container,
	exitFn func(),
) *Service

func (*Service) StartRESTServer

func (s *Service) StartRESTServer()

func (*Service) WaitForStopSignal

func (s *Service) WaitForStopSignal()

Jump to

Keyboard shortcuts

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