service

package
v0.0.0-...-c87371f Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 19 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
}

func New

func New(cfg config.AppConfig) (*Service, error)

func (*Service) Config

func (s *Service) Config() config.AppConfig

func (*Service) DB

func (s *Service) DB() *sql.DB

func (*Service) Logger

func (s *Service) Logger() *slog.Logger

func (*Service) MigrateDB

func (s *Service) MigrateDB(fs fs.FS) error

func (*Service) RPC

func (s *Service) RPC() *grpc.Server

func (*Service) Startup

func (s *Service) Startup() error

func (*Service) WaitForRPC

func (s *Service) WaitForRPC(ctx context.Context) error

func (*Service) Waiter

func (s *Service) Waiter() waiter.Waiter

Jump to

Keyboard shortcuts

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