Documentation ¶
Index ¶
Constants ¶
View Source
const (
DBVersion uint32 = 2
)
Variables ¶
View Source
var (
Component *app.Component
)
View Source
var ParamsIndexer = &ParametersIndexer{}
View Source
var ParamsRestAPI = &ParametersRestAPI{}
Functions ¶
This section is empty.
Types ¶
type ParametersIndexer ¶
type ParametersIndexer struct { Database struct { // Database engine (sqlite or postgres) Engine string `default:"sqlite" usage:"database engine (sqlite, postgresql)"` SQLite struct { // Path defines the path to the database folder Path string `default:"database" usage:"the path to the database folder"` } `name:"sqlite"` PostgreSQL struct { // Database name Database string `default:"indexer" usage:"database name"` // Database username Username string `default:"indexer" usage:"database username"` // Database password Password string `default:"" usage:"database password"` // Database host Host string `default:"localhost" usage:"database host"` // Database port Port uint `default:"5432" usage:"database port"` } `name:"postgresql"` } `name:"db"` }
type ParametersRestAPI ¶
type ParametersRestAPI struct { // BindAddress defines the bind address on which the Indexer HTTP server listens. BindAddress string `default:"localhost:9091" usage:"the bind address on which the Indexer HTTP server listens"` // AdvertiseAddress defines the address of the Indexer HTTP server which is advertised to the INX Server (optional). AdvertiseAddress string `default:"" usage:"the address of the Indexer HTTP server which is advertised to the INX Server (optional)"` // MaxPageSize defines the maximum number of results that may be returned for each page MaxPageSize int `default:"1000" usage:"the maximum number of results that may be returned for each page"` // DebugRequestLoggerEnabled defines whether the debug logging for requests should be enabled DebugRequestLoggerEnabled bool `default:"false" usage:"whether the debug logging for requests should be enabled"` }
ParametersRestAPI contains the definition of the parameters used by the Indexer HTTP server.
Click to show internal directories.
Click to hide internal directories.