{"modulePath":"github.com/RAMPAGEXP/ethermint","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package server\n\n## Constants\n\n```go\nconst (\n\tServiceName = \"EVMIndexerService\"\n\n\tNewBlockWaitTimeout = 60 * time.Second\n)\n```\n\n## Functions\n\n```go\nfunc AddCommands(rootCmd *cobra.Command, defaultNodeHome string, appCreator types.AppCreator, appExport types.AppExporter, addStartFlags types.ModuleInitFlags)\n```\nAddCommands adds server commands\n\n```go\nfunc ConnectTmWS(tmRPCAddr, tmEndpoint string, logger tmlog.Logger) *rpcclient.WSClient\n```\n\n```go\nfunc Listen(addr string, config *config.Config) (net.Listener, error)\n```\nListen starts a net.Listener on the tcp network on the given address. If there is a specified MaxOpenConnections in the config, it will also set the limitListener.\n\n```go\nfunc MountGRPCWebServices(\n\trouter *mux.Router,\n\tgrpcWeb *grpcweb.WrappedGrpcServer,\n\tgrpcResources []string,\n\tlogger tmlog.Logger,\n)\n```\n\n```go\nfunc NewIndexTxCmd() *cobra.Command\n```\n\n```go\nfunc OpenIndexerDB(rootDir string) (dbm.DB, error)\n```\nOpenIndexerDB opens the custom eth indexer db, using the same db backend as the main app\n\n```go\nfunc StartCmd(appCreator types.AppCreator, defaultNodeHome string) *cobra.Command\n```\nStartCmd runs the service passed in, either stand-alone or in-process with Tendermint.\n\n```go\nfunc StartJSONRPC(ctx *server.Context, clientCtx client.Context, tmRPCAddr, tmEndpoint string, config *config.Config, indexer ethermint.EVMTxIndexer) (*http.Server, chan struct{}, error)\n```\nStartJSONRPC starts the JSON-RPC server\n\n## Types\n\n```go\ntype EVMIndexerService struct {\n\tservice.BaseService\n\t// contains filtered or unexported fields\n}\n```\nEVMIndexerService indexes transactions for json-rpc service.\n\n```go\nfunc NewEVMIndexerService(\n\ttxIdxr ethermint.EVMTxIndexer,\n\tclient rpcclient.Client,\n) *EVMIndexerService\n```\nNewEVMIndexerService returns a new service instance.\n\n```go\nfunc (eis *EVMIndexerService) OnStart() error\n```\nOnStart implements service.Service by subscribing for new blocks and indexing them by events.\n\n","path":"github.com/RAMPAGEXP/ethermint/server","name":"server","synopsis":"","isRedistributable":true}
