factories

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBleveIndex added in v1.12.0

func NewBleveIndex(
	dir, libName string, mapping blevemapping.IndexMapping,
) bleve.Index

func NewBoltDB added in v1.12.0

func NewBoltDB(dbPath string) *bbolt.DB

func NewCompositeBleveIndex added in v1.12.0

func NewCompositeBleveIndex(dir string,
	libs entities.Libraries, mapping blevemapping.IndexMapping,
) bleve.Index

func NewEchoRender

func NewEchoRender(cfg *viper.Viper, server *echo.Echo, repo entities.IBooksInfoRepo) (echo.Renderer, error)

func NewEchoServer

func NewEchoServer(libs entities.Libraries, cfg *viper.Viper, logger zerolog.Logger,
	repoInfo entities.IBooksInfoRepo, repoBooks entities.IBooksLibraryRepo,
) (*echo.Echo, error)

func NewViperCfg

func NewViperCfg(cfgPath string, prefix string) *viper.Viper

func NewZerolog added in v1.13.1

func NewZerolog(cfg *viper.Viper, writer io.Writer) zerolog.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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