Packages
services
Grpc

grpc

import "command-line-arguments"

Index

func CreateGrpcServer (opens in a new tab)

func CreateGrpcServer() *grpc.Server

func CreateWebGrpcServer (opens in a new tab)

func CreateWebGrpcServer(grpcServer *grpc.Server) *grpcweb.WrappedGrpcServer

func CreateWebGrpcServerWithWebsockets (opens in a new tab)

func CreateWebGrpcServerWithWebsockets(grpcServer *grpc.Server) *grpcweb.WrappedGrpcServer

func StartFaucetServer (opens in a new tab)

func StartFaucetServer(grpcPort int, metricsPort int, twitterClient *twitter.Client, ethClient *ethclient.Client, privateKey *ecdsa.PrivateKey, publicKey *ecdsa.PublicKey, dripConfig *faucet.DripConfig, logger *zap.Logger)

func StartHTTPServer (opens in a new tab)

func StartHTTPServer(grpcWebServer *grpcweb.WrappedGrpcServer, port int, logger *zap.Logger)

func StartMetricsServer (opens in a new tab)

func StartMetricsServer(port int, logger *zap.Logger)

func StartRPCServer (opens in a new tab)

func StartRPCServer(grpcServer *grpc.Server, port int, logger *zap.Logger)

func StartRelayServer (opens in a new tab)

func StartRelayServer(grpcPort int, metricsPort int, ethClient *ethclient.Client, config *relay.RelayServerConfig, logger *zap.Logger)

func StartSnapshotServer (opens in a new tab)

func StartSnapshotServer(grpcPort int, metricsPort int, config *snapshot.SnapshotServerConfig, logger *zap.Logger)

StartStreamServer starts a gRPC server and a HTTP web-gRPC server wrapper for an ECS snapshot service. The gRPC server is started at port and HTTP server at port + 1.

func StartStreamServer (opens in a new tab)

func StartStreamServer(grpcPort int, metricsPort int, ethclient *ethclient.Client, multiplexer *multiplexer.Multiplexer, logger *zap.Logger)

StartStreamServer starts a gRPC server and a HTTP web-gRPC server wrapper for an ECS stream service. The gRPC server is started at port and HTTP server at port + 1.

Generated by gomarkdoc (opens in a new tab)