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
Click to show internal directories.
Click to hide internal directories.