security

package
v0.0.0-...-cee649a Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbSecurity

type DbSecurity struct {
	ThePgSecurity    PgSecurity    `yaml:"PostgreSQL"`
	TheRedisSecurity RedisSecurity `yaml:"Redis"`
}

load database configuration from file. Including PostgreSQL and Redis.

func LoadDbSecurity

func LoadDbSecurity(filepath string) (dbSec DbSecurity, err error)

type PgSecurity

type PgSecurity struct {
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
	User     string `yaml:"user"`
	Password string `yaml:"password"`
	DbName   string `yaml:"dbname"`
	Sslmode  string `yaml:"sslmode"`
}

type RedisSecurity

type RedisSecurity struct {
	Host string `yaml:"host"`
}

Jump to

Keyboard shortcuts

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