sconfig

package
v0.0.0-...-4fe2a04 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisConfig

type RedisConfig struct {
	RedisAddr string `yaml:"addr"`
	RedisPwd  string `yaml:"pwd"`
}

type ServerConfig

type ServerConfig struct {
	Addr     string `yaml:"addr"`
	FilePath string `yaml:"path"`
}

type StaticFileConfig

type StaticFileConfig interface {
	GetServer() *ServerConfig
	GetCache() *RedisConfig
}

type YamlConfig

type YamlConfig struct {
	Server *ServerConfig `yaml:"server"`
	Redis  *RedisConfig  `yaml:"redis"`
}

func (*YamlConfig) GetCache

func (m *YamlConfig) GetCache() *RedisConfig

func (*YamlConfig) GetServer

func (m *YamlConfig) GetServer() *ServerConfig

Jump to

Keyboard shortcuts

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