lib

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug string

	Admin struct {
		Username string
		Password string
	}

	Database struct {
		Type       string
		Connection string
	}

	Server struct {
		BindIP   string
		Port     string
		Endpoint struct {
			Web string
		}
	}

	Feeds struct {
		AutoRefresh string
	}
}

func Cfg

func Cfg() (Config, error)

func ParseDatabaseURL

func ParseDatabaseURL(config *Config) *Config

type JournalistContext

type JournalistContext struct {
	Config    *Config
	EntClient *ent.Client
	Logger    *zap.Logger
}

Jump to

Keyboard shortcuts

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