utils

package
v0.0.0-...-c63b79d Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2016 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(fileName string)

func ToJson

func ToJson(object interface{}) string

Types

type Config

type Config struct {
	ServerConfig  ServerConfig
	StorageConfig StorageConfig
}
var ConfigParam *Config = &Config{}

func (*Config) SaveDefaultConfigParams

func (o *Config) SaveDefaultConfigParams()

type FileStorageConfig

type FileStorageConfig struct {
	RootPath string
}

type S3StorageConfig

type S3StorageConfig struct {
	KeyId     string
	AccessKey string
	Region    string
}

type ServerConfig

type ServerConfig struct {
	Port string
}

type StorageConfig

type StorageConfig struct {
	ProviderType string
	FileStorage  FileStorageConfig
	S3Storage    S3StorageConfig
}

Jump to

Keyboard shortcuts

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