system

package
v0.0.0-...-0ebfa01 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module interface {
	Startup(context.Context, Service) error
}

type Service

type Service interface {
	Config() config.AppConfig
	DB() *sql.DB
	JS() nats.JetStreamContext
	Mux() *chi.Mux
	RPC() *grpc.Server
	Waiter() waiter.Waiter
	Logger() zerolog.Logger
}

type System

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

func NewSystem

func NewSystem(cfg config.AppConfig) (*System, error)

func (*System) Config

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

func (*System) DB

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

func (*System) JS

func (s *System) JS() nats.JetStreamContext

func (*System) Logger

func (s *System) Logger() zerolog.Logger

func (*System) MigrateDB

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

func (*System) Mux

func (s *System) Mux() *chi.Mux

func (*System) RPC

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

func (*System) WaitForRPC

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

func (*System) WaitForStream

func (s *System) WaitForStream(ctx context.Context) error

func (*System) WaitForWeb

func (s *System) WaitForWeb(ctx context.Context) error

func (*System) Waiter

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

Jump to

Keyboard shortcuts

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