configs

package
v0.0.0-...-45bb23c Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 5 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 {
	DBConf    *DBConfig
	APIPort   string
	AWSConf   *storage.AWSConfig
	JWTConf   *JWTConfig
	MinioConf *storage.MinioConfig
}

Config struct contains all configs.

func NewConfig

func NewConfig() *Config

NewConfig is constructor for Config that sets up all configs.

type DBConfig

type DBConfig struct {
	Host     string
	Port     string
	Username string
	Password string
	DBName   string
	SSLMode  string
}

DBConfig is config of the database.

type JWTConfig

type JWTConfig struct {
	TokenTTL   string
	SigningKey string
}

JWTConfig is config of the jwt.

Jump to

Keyboard shortcuts

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