app

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetProfiler added in v0.9.11

func SetProfiler(e *echo.Echo, hc HealthCheck)

SetProfiler ...

func SetServer added in v0.9.11

func SetServer(
	e *echo.Echo,
	bookCntrl controller.BookCntrl,
	songCntrl controller.SongCntrl,
)

SetServer to echo server

func Shutdown added in v0.9.1

func Shutdown(p struct {
	dig.In
	Pg    *sql.DB `name:"pg"`
	MySQL *sql.DB `name:"mysql"`
	Cache *cachekit.Store
	Echo  *echo.Echo
}) error

Shutdown infra

func Start added in v0.8.37

func Start(di *dig.Container, cfg *infra.AppCfg, e *echo.Echo) (err error)

Start app

Types

type HealthCheck added in v0.9.8

type HealthCheck struct {
	dig.In
	PG    *sql.DB `name:"pg"`
	MySQL *sql.DB `name:"mysql"`
	Cache *cachekit.Store
}

HealthCheck ...

func (*HealthCheck) Handle added in v0.9.8

func (h *HealthCheck) Handle(ec echo.Context) error

Handle echo function

Directories

Path Synopsis
log
Package service_mock is a generated GoMock package.
Package service_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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