config

package
v0.0.0-...-b5ae77a Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Config Config
	Logger zerolog.Logger
	Client *http.Client
}

Application struct to hold the dependencies for our application.

type Config

type Config struct {
	BookStackEndpoint       string // Ex:  https://wiki.example.com
	BookStackAPITokenID     string // token ID
	BookStackAPITokenSecret string // token secret
	GenerateHTML            bool   // generate static site HTML
	MdBookLocation          string // path to the mdBook binary
	Concurrency             int    // number of concurrent goroutines
	DownloadLocation        string // path of downloaded markdown
	VerboseLogs             bool   // print detailed logs
	DownloadImages          bool   // download static images from the wiki as well
}

Config struct to hold all the configuration settings for our application.

func LoadConfig

func LoadConfig(app *Application) Config

Jump to

Keyboard shortcuts

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