config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Key            string        `mapstructure:"key"`
	ExpirationTime time.Duration `mapstructure:"expiration_time"`
}

AuthConfig настройки аутентификации

type Config

type Config struct {
	GRPC GRPCConfig    `mapstructure:"grpc"`
	DB   StorageConfig `mapstructure:"db"`
	Auth AuthConfig    `mapstructure:"auth"`
	Hash HashConfig    `mapstructure:"hasher"`
}

Config содержит настройки сервера

type GRPCConfig

type GRPCConfig struct {
	Address string `mapstructure:"address"`
}

GRPCConfig настройки GRPC

type HashConfig

type HashConfig struct {
	Key string `mapstructure:"key"`
}

HashConfig настройки хеширования

type StorageConfig

type StorageConfig struct {
	URL string `mapstructure:"url"`
}

StorageConfig настройки базы данных сервера

Jump to

Keyboard shortcuts

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