rpcserver

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package rpcserver is gRPC server module

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiService

type ApiService struct {
	// contains filtered or unexported fields
}

ApiService contains SPVServer and implements RpcProverServer interface

func NewApiService

func NewApiService(ctx context.Context, spvServer *server.SPVServer, log *zap.SugaredLogger) *ApiService

NewApiService creates ApiService

func (*ApiService) ForwardRequest

func (s *ApiService) ForwardRequest(ctx context.Context, request *cm_pbgo.TxRequest) (*cm_pbgo.TxResponse, error)

ForwardRequest is the implementation of ForwardRequest interface

func (*ApiService) ValidTransaction

func (s *ApiService) ValidTransaction(ctx context.Context, request *api.TxValidationRequest) (
	*api.TxValidationResponse, error)

ValidTransaction is the implementation of RpcProverServer interface

type RPCServer

type RPCServer struct {
	// contains filtered or unexported fields
}

RPCServer is gRPC server module

func NewRPCServer

func NewRPCServer(spvServer *server.SPVServer) (*RPCServer, error)

NewRPCServer creates RPCServer

func (*RPCServer) Start

func (rs *RPCServer) Start() error

Start startups gRPC Server

func (*RPCServer) Stop

func (rs *RPCServer) Stop()

Stop stops gRPC Server

Jump to

Keyboard shortcuts

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