config

package
v0.0.0-...-e0aea17 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 1 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 {
	DB     Mongo
	Server Server
}

func New

func New() (*Config, error)

type Mongo

type Mongo struct {
	URI      string `default:"mongodb://localhost:27017"`
	Username string `default:"admin"`
	Password string `default:"g0langn1nja"`
	Database string `default:"crud_logs"`
}

type Server

type Server struct {
	Port int `default:"9000"`
}

Jump to

Keyboard shortcuts

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