Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultHost = "0.0.0.0" DefaultPort = "80" )
View Source
const Name = "hub"
Variables ¶
View Source
var Module = fx.Options( fx.Provide(provider.ProvideDatabaseClient), fx.Provide(provider.ProvideRedisClient), fx.Provide(provider.ProvideEthereumMultiChainClient), fx.Provide(provider.ProvideGeoIP2), fx.Provide(provider.ProvideNameResolver), fx.Provide(provider.ProvideHTTPClient), fx.Provide(provider.ProvideTxManager), )
Functions ¶
func NewServer ¶
func NewServer(databaseClient database.Client, redisClient *redis.Client, geoLite2 *geolite2.Client, ethereumMultiChainClient *ethereum.MultiChainClient, nameService *nameresolver.NameResolver, httpClient httputil.Client, txManager *txmgr.SimpleTxManager, config *config.File) (service.Server, error)
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
func NewHub ¶
func NewHub(ctx context.Context, databaseClient database.Client, redisClient *redis.Client, ethereumMultiChainClient *ethereum.MultiChainClient, geoLite2 *geolite2.Client, nameService *nameresolver.NameResolver, httpClient httputil.Client, txManager *txmgr.SimpleTxManager, config *config.File) (*Hub, error)
Click to show internal directories.
Click to hide internal directories.