config

package
v0.0.0-...-34e0d52 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbConfiguration

func DbConfiguration() (string, string)

func ServerConfig

func ServerConfig() string

func SetupConfig

func SetupConfig() error

SetupConfig configuration

Types

type Configuration

type Configuration struct {
	Server   ServerConfiguration
	Database DatabaseConfiguration
}

type DatabaseConfiguration

type DatabaseConfiguration struct {
	Driver   string
	Dbname   string
	Username string
	Password string
	Host     string
	Port     string
	LogMode  bool
}

type ServerConfiguration

type ServerConfiguration struct {
	Port                 string
	Secret               string
	LimitCountPerRequest int64
}

Jump to

Keyboard shortcuts

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