Documentation
¶
Overview ¶
* Erascan - erasure protocol explorer * https://github.com/MikaelLazarev/erascan * * Copyright (c) 2019. Mikael Lazarev
* Erascan - erasure protocol explorer * https://github.com/MikaelLazarev/erascan * * Copyright (c) 2019. Mikael Lazarev
* Erascan - erasure protocol explorer * https://github.com/MikaelLazarev/erascan * * Copyright (c) 2019. Mikael Lazarev
* Erascan - erasure protocol explorer * https://github.com/MikaelLazarev/erascan * * Copyright (c) 2019. Mikael Lazarev
* Erascan - erasure protocol explorer * https://github.com/MikaelLazarev/erascan * * Copyright (c) 2019. Mikael Lazarev
Index ¶
Constants ¶
const ( DEV = iota TEST PROD )
const PaginationLimit int = 30
Define controller constants
const PaginationOffset int = 10
Variables ¶
This section is empty.
Functions ¶
func GetConfigType ¶
func GetConfigType() int
func LoadConfigFromJSON ¶
Gets config from file
Types ¶
type DBConfig ¶
func GetDBConfig ¶
Get Developers config from JSON files stored in config folder
type SecurityConfig ¶
type SecurityConfig struct { SigningKey string `json:"signing_key"` SentryDSN string `json:"sentry_dsn"` PrivateKey string `json:"private_key"` }
func GetSecurityConfig ¶
func GetSecurityConfig() (*SecurityConfig, error)