github.com/leovct/zkevm-bridge-service@v0.4.4/server/config.go (about) 1 package server 2 3 import "github.com/0xPolygonHermez/zkevm-bridge-service/db" 4 5 // Config struct 6 type Config struct { 7 // GRPCPort is TCP port to listen by gRPC server 8 GRPCPort string `mapstructure:"GRPCPort"` 9 // HTTPPort is TCP port to listen by HTTP/REST gateway 10 HTTPPort string `mapstructure:"HTTPPort"` 11 // CacheSize is the buffer size of the lru-cache 12 CacheSize int `mapstructure:"CacheSize"` 13 // DefaultPageLimit is the default page limit for pagination 14 DefaultPageLimit uint32 `mapstructure:"DefaultPageLimit"` 15 // MaxPageLimit is the maximum page limit for pagination 16 MaxPageLimit uint32 `mapstructure:"MaxPageLimit"` 17 // Version is the version of the bridge service 18 BridgeVersion string `mapstructure:"BridgeVersion"` 19 // DB is the database config 20 DB db.Config `mapstructure:"DB"` 21 }