utils

package
v0.0.0-...-d50b809 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEnv

func LoadEnv()

func MapCredentials

func MapCredentials(credentials Credentials) string

func ReadCredentials

func ReadCredentials() string

Types

type Credentials

type Credentials struct {
	Username string
	Password string
	Host     string
	Port     string
	Database string
	Sslmode  string
}
var CredentialsInstance Credentials = ParseCredentials(ReadCredentials())

func ParseCredentials

func ParseCredentials(credentials string) Credentials

Jump to

Keyboard shortcuts

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