Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBridgeService ¶ added in v0.1.0
func NewBridgeService(cfg Config, height uint8, networks []uint, storage interface{}) *bridgeService
NewBridgeService creates new bridge service.
Types ¶
type Config ¶
type Config struct { // GRPCPort is TCP port to listen by gRPC server GRPCPort string `mapstructure:"GRPCPort"` // HTTPPort is TCP port to listen by HTTP/REST gateway HTTPPort string `mapstructure:"HTTPPort"` // CacheSize is the buffer size of the lru-cache CacheSize int `mapstructure:"CacheSize"` // DefaultPageLimit is the default page limit for pagination DefaultPageLimit uint32 `mapstructure:"DefaultPageLimit"` // MaxPageLimit is the maximum page limit for pagination MaxPageLimit uint32 `mapstructure:"MaxPageLimit"` // Version is the version of the bridge service BridgeVersion string `mapstructure:"BridgeVersion"` // DB is the database config DB db.Config `mapstructure:"DB"` }
Config struct
Click to show internal directories.
Click to hide internal directories.