Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultAddress = ":3200" DefaultDatabaseDsn = "postgresql://localhost:5432/gophkeeper" DefaultSecretKey = "do-not-use-this-in-production!" DefaultTokenTTL = time.Minute * 30 DefaultTLSPath = "cert/server-tls/" DefaultSecretKeysPath = "cert/secret-encryption/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type ClientConfig ¶
type ClientConfig struct { ServerURL string `env:"SERVER" envDefault:":3200"` CertPath string `env:"CERT" envDefault:"cert/server-tls"` StoragePath string `env:"STORAGE" envDefault:"/tmp/gophkeeper-storage"` Debug bool `env:"DEBUG" envDefault:"false"` }
func NewClientConfigWithStorage ¶
func NewClientConfigWithStorage() (*ClientConfig, error)
type Config ¶
type Config struct { Server ServerConfig Auth AuthConfig Secrets SecretsConfig DebugMode bool `env:"DEBUG"` }
type SecretsConfig ¶
type SecretsConfig struct {
KeysDir string `env:"SECRET_KEYS_DIR"`
}
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.