app

package
v0.0.0-...-ba868a3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Config  Config
	App     *fiber.App
	Repo    domain.Repository
	Scraper *scraper.Scraper
}

func (*Application) InitHandler

func (a *Application) InitHandler()

func (*Application) InitLogger

func (a *Application) InitLogger()

func (*Application) InitRepository

func (a *Application) InitRepository() error

func (*Application) InitScraper

func (a *Application) InitScraper()

func (*Application) Listen

func (a *Application) Listen() error

func (*Application) Scrape

func (a *Application) Scrape()

type Config

type Config struct {
	Address     string `kenv:"ADDRESS|:8080"`
	DatabaseDsn string `kenv:"DATABASE_DSN|./database/database.db"`
	Scrape      bool   `kenv:"SCRAPE|false"`
	Debug       bool   `kenv:"DEBUG|false"`
}

func LoadConfig

func LoadConfig() Config

Jump to

Keyboard shortcuts

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