types

package
v0.0.0-...-383e6fc Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DRLMCoreConfig

type DRLMCoreConfig struct {
	GRPC     DRLMCoreGRPCConfig     `mapstructure:"grpc"`
	Security DRLMCoreSecurityConfig `mapstructure:"security"`
	DB       DRLMCoreDBConfig       `mapstructure:"db"`
	Minio    DRLMCoreMinioConfig    `mapstructure:"minio"`
	Log      logger.Config          `mapstructure:"log"`
}

DRLMCoreConfig is the configuration of the Core of DRLM

type DRLMCoreDBConfig

type DRLMCoreDBConfig struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
	Usr  string `mapstructure:"username"`
	Pwd  string `mapstructure:"password"`
	DB   string `mapstructure:"database"`
}

DRLMCoreDBConfig is the configuration related wtih the DB of the DRLM Core

type DRLMCoreGRPCConfig

type DRLMCoreGRPCConfig struct {
	Port     int    `mapstructure:"port"`
	TLS      bool   `mapstructure:"tls"`
	CertPath string `mapstructure:"cert_path"`
	KeyPath  string `mapstructure:"key_path"`
}

DRLMCoreGRPCConfig is the configuration related with the GRPC of DRLM Core

type DRLMCoreMinioConfig

type DRLMCoreMinioConfig struct {
	Host      string `mapstructure:"host"`
	Port      int    `mapstructure:"port"`
	SSL       bool   `mapstructure:"ssl"`
	CertPath  string `mapstructure:"cert_path"`
	AccessKey string `mapstructure:"access_key"`
	SecretKey string `mapstructure:"secret_key"`
	Location  string `mapstructure:"location"`
}

DRLMCoreMinioConfig is the configuration related wtih the Minio of the DRLM Core

type DRLMCoreSecurityConfig

type DRLMCoreSecurityConfig struct {
	BcryptCost     int           `mapstructure:"bcrypt_cost"`
	TokensSecret   string        `mapstructure:"tokens_secret"`
	TokensLifespan time.Duration `mapstructure:"tokens_lifespan"`
	LoginLifespan  time.Duration `mapstructure:"login_lifespan"`
	SSHKeysPath    string        `mapstructure:"ssh_keys_path"`
}

DRLMCoreSecurityConfig is the configuration related with the security of DLRM Core

Jump to

Keyboard shortcuts

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