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 настройки базы данных сервера
Click to show internal directories.
Click to hide internal directories.