grpc

package
v0.0.0-...-efdc0b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TrackPlaysProtoName     string
	ManageEntitiesProtoName string
	SlaRollupProtoName      string
	SlaNodeReportProtoName  string
)

Functions

func GetProtoTypeName

func GetProtoTypeName(msg proto.Message) string

Types

type GRPCServer

type GRPCServer struct {
	proto.UnimplementedProtocolServer
	// contains filtered or unexported fields
}

func NewGRPCServer

func NewGRPCServer(logger *common.Logger, config *config.Config, chain *local.Local, pool *pgxpool.Pool) (*GRPCServer, error)

func (*GRPCServer) GetServer

func (s *GRPCServer) GetServer() *grpc.Server

func (*GRPCServer) GetTransaction

func (*GRPCServer) Ping

func (*GRPCServer) SendTransaction

func (*GRPCServer) Serve

func (s *GRPCServer) Serve(lis net.Listener) error

type TxHash

type TxHash = string

func SendRawTx

func SendRawTx(ctx context.Context, logger *common.Logger, rpc *local.Local, tx []byte) (TxHash, error)

func SendTx

func SendTx[T proto.Message](logger *common.Logger, rpc *local.Local, msg T) (TxHash, error)

func ToTxHash

func ToTxHash(msg proto.Message) (TxHash, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL