Documentation ¶
Index ¶
- type BlockchainTransactor
- type EngineReader
- type NodeApplication
- type Service
- func (s *Service) Broadcast(ctx context.Context, req *txpb.BroadcastRequest) (*txpb.BroadcastResponse, error)
- func (s *Service) Call(ctx context.Context, req *txpb.CallRequest) (*txpb.CallResponse, error)
- func (s *Service) ChainInfo(ctx context.Context, req *txpb.ChainInfoRequest) (*txpb.ChainInfoResponse, error)
- func (s *Service) EstimatePrice(ctx context.Context, req *txpb.EstimatePriceRequest) (*txpb.EstimatePriceResponse, error)
- func (s *Service) GetAccount(ctx context.Context, req *txpb.GetAccountRequest) (*txpb.GetAccountResponse, error)
- func (s *Service) GetSchema(ctx context.Context, req *txpb.GetSchemaRequest) (*txpb.GetSchemaResponse, error)
- func (s *Service) ListDatabases(ctx context.Context, req *txpb.ListDatabasesRequest) (*txpb.ListDatabasesResponse, error)
- func (s *Service) Ping(ctx context.Context, req *txpb.PingRequest) (*txpb.PingResponse, error)
- func (s *Service) Query(ctx context.Context, req *txpb.QueryRequest) (*txpb.QueryResponse, error)
- func (s *Service) TxQuery(ctx context.Context, req *txpb.TxQueryRequest) (*txpb.TxQueryResponse, error)
- type TxSvcOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockchainTransactor ¶
type BlockchainTransactor interface { Status(ctx context.Context) (*adminTypes.Status, error) BroadcastTx(ctx context.Context, tx []byte, sync uint8) (*cmtCoreTypes.ResultBroadcastTx, error) TxQuery(ctx context.Context, hash []byte, prove bool) (*cmtCoreTypes.ResultTx, error) }
type EngineReader ¶
type EngineReader interface { Procedure(ctx context.Context, tx sql.DB, options *common.ExecutionData) (*sql.ResultSet, error) GetSchema(ctx context.Context, dbid string) (*common.Schema, error) ListDatasets(ctx context.Context, owner []byte) ([]*coreTypes.DatasetIdentifier, error) Execute(ctx context.Context, tx sql.DB, dbid string, query string, values map[string]any) (*sql.ResultSet, error) }
type NodeApplication ¶
type Service ¶
type Service struct { txpb.UnimplementedTxServiceServer // contains filtered or unexported fields }
func NewService ¶
func NewService(db sql.ReadTxMaker, engine EngineReader, chainClient BlockchainTransactor, nodeApp NodeApplication, opts ...TxSvcOpt) *Service
func (*Service) Broadcast ¶
func (s *Service) Broadcast(ctx context.Context, req *txpb.BroadcastRequest) (*txpb.BroadcastResponse, error)
func (*Service) Call ¶
func (s *Service) Call(ctx context.Context, req *txpb.CallRequest) (*txpb.CallResponse, error)
func (*Service) ChainInfo ¶
func (s *Service) ChainInfo(ctx context.Context, req *txpb.ChainInfoRequest) (*txpb.ChainInfoResponse, error)
func (*Service) EstimatePrice ¶
func (s *Service) EstimatePrice(ctx context.Context, req *txpb.EstimatePriceRequest) (*txpb.EstimatePriceResponse, error)
func (*Service) GetAccount ¶
func (s *Service) GetAccount(ctx context.Context, req *txpb.GetAccountRequest) (*txpb.GetAccountResponse, error)
func (*Service) GetSchema ¶
func (s *Service) GetSchema(ctx context.Context, req *txpb.GetSchemaRequest) (*txpb.GetSchemaResponse, error)
func (*Service) ListDatabases ¶
func (s *Service) ListDatabases(ctx context.Context, req *txpb.ListDatabasesRequest) (*txpb.ListDatabasesResponse, error)
func (*Service) Ping ¶
func (s *Service) Ping(ctx context.Context, req *txpb.PingRequest) (*txpb.PingResponse, error)
func (*Service) Query ¶
func (s *Service) Query(ctx context.Context, req *txpb.QueryRequest) (*txpb.QueryResponse, error)
func (*Service) TxQuery ¶
func (s *Service) TxQuery(ctx context.Context, req *txpb.TxQueryRequest) (*txpb.TxQueryResponse, error)
Click to show internal directories.
Click to hide internal directories.