Documentation
¶
Index ¶
- func NewEchoRender(cfg *viper.Viper, server *echo.Echo) (echo.Renderer, error)
- func NewEchoServer(cfg *viper.Viper, logger zerolog.Logger, booksRepo entities.IBooksIndexRepo, ...) (*echo.Echo, error)
- func NewIndex(name string, rootDir string, canReplace bool, ...) (index entities.ISearchIndex, err error)
- func NewTmpIndex(src os.FileInfo, rootDir string, canReplace bool, ...) (index entities.ISearchIndex, err error)
- func NewViperCfg(path string, prefix string) (cfg *viper.Viper, err error)
- func NewZerologLogger(cfg *viper.Viper, writer io.Writer) zerolog.Logger
- func OpenIndex(dir string, logger zerolog.Logger) (entities.ISearchIndex, error)
- func SaveTmpIndex(index entities.ISearchIndex) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEchoServer ¶
func NewIndex ¶
func NewIndex( name string, rootDir string, canReplace bool, fieldsMapping mapping.IndexMapping, ) (index entities.ISearchIndex, err error)
func NewTmpIndex ¶
func NewTmpIndex( src os.FileInfo, rootDir string, canReplace bool, fieldsMapping mapping.IndexMapping, ) (index entities.ISearchIndex, err error)
func SaveTmpIndex ¶
func SaveTmpIndex(index entities.ISearchIndex) (err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.