Documentation
¶
Index ¶
Constants ¶
View Source
const ( //DBEnginePostgreSQL = "postgres" DBEngineBolt = "bolt" DefaultMaxChunkSize = 10000000 // 10MB DefaultTransformFileSize = 50000000 // 50MB DefaultMaxUploadFileSize = 50000000 // 50MB DefaultChunkUploadDir = "./data/chunks" DefaultFullFileDir = "./data/files" DefaultTempFileDir = "./data/temp" DefaultHTTPPort = 4200 //DefaultPostgreDatabase = "mahi" //DefaultPostgreUser = "mahi" DefaultPostgrePassword = "" DefaultPostgreHost = "localhost" DefaultPostgrePort = 5432 DefaultBoltDir = "./data/baas.db" )
Variables ¶
View Source
var DefaultPostgreMaxConns = runtime.NumCPU() * 10
Functions ¶
This section is empty.
Types ¶
type BlockChain ¶
type Config ¶
type Config struct { Init bool DbEngine string `toml:"db_engine"` Upload Upload `toml:"upload"` PostgreSQL PostgreSQL `toml:"postgresql"` Bolt Bolt `toml:"bolt"` Security Security `toml:"security"` HTTP HTTP `toml:"http"` IPFS IPFS `toml:"ipfs"` Blockchain BlockChain `toml:"blockchain"` }
func (*Config) InitConfig ¶
type PostgreSQL ¶
Click to show internal directories.
Click to hide internal directories.