config

package
v0.0.0-...-5de6587 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Server              Server
	Storage             Storage
	Redis               Redis
	DecentralandApi     DecentralandApi
	LogLevel            string
	Metrics             Metrics
	AllowedContentTypes []string
	Limits              Limits
	Workdir             string
	UploadRequestTTL    int64
	RPCConnection       RPCConnection
}

Configuration holds global config parameters

func GetConfig

func GetConfig(name string) *Configuration

GetConfig populates a Configuration struct from a config file

type DecentralandApi

type DecentralandApi struct {
	LandUrl string
}

type Limits

type Limits struct {
	ParcelSizeLimit   int64
	ParcelAssetsLimit int
}

type Metrics

type Metrics struct {
	Enabled      bool
	AppName      string
	AnalyticsKey string
}

type RPCConnection

type RPCConnection struct {
	URL string
}

type Redis

type Redis struct {
	Address  string
	Password string
	DB       int
}

type RemoteStorage

type RemoteStorage struct {
	Bucket string
	ACL    string
	URL    string
}

type Server

type Server struct {
	Port int
	Host string
}

type Storage

type Storage struct {
	StorageType  string
	RemoteConfig RemoteStorage
	LocalPath    string
}

type StorageType

type StorageType string
const (
	REMOTE StorageType = "REMOTE"
	LOCAL  StorageType = "LOCAL"
)

Jump to

Keyboard shortcuts

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