config

package
v0.0.0-...-3cf6f44 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	*logrus.Logger

	// MongoUri is the connection string to mongo
	MongoUri    string `split_words:"true" default:"mongodb://localhost:27017"`
	MongoDbName string `split_words:"true" default:"short-to-me"`

	// Port is the port to run the HTTP server on
	Port int `split_words:"true" default:"8081"`
}

func Configure

func Configure() (*AppConfig, error)

Jump to

Keyboard shortcuts

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