Documentation ¶
Overview ¶
Code generated by go generate; DO NOT EDIT.
Index ¶
- Variables
- func NewINXBlockMetadata(ctx context.Context, blockID iotago.BlockID, metadata *storage.BlockMetadata, ...) (*inx.BlockMetadata, error)
- func NewLedgerOutput(o *utxo.Output) (*inx.LedgerOutput, error)
- func NewLedgerSpent(s *utxo.Spent) (*inx.LedgerSpent, error)
- func NewLedgerUpdateBatchBegin(index iotago.MilestoneIndex, newOutputsCount int, newSpentsCount int) *inx.LedgerUpdate
- func NewLedgerUpdateBatchEnd(index iotago.MilestoneIndex, newOutputsCount int, newSpentsCount int) *inx.LedgerUpdate
- func NewLedgerUpdateBatchOperationConsumed(spent *utxo.Spent) (*inx.LedgerUpdate, error)
- func NewLedgerUpdateBatchOperationCreated(output *utxo.Output) (*inx.LedgerUpdate, error)
- func NewTreasuryUpdate(index iotago.MilestoneIndex, created *utxo.TreasuryOutput, ...) (*inx.TreasuryUpdate, error)
- type ParametersINX
- type Server
- func (s *Server) ComputeWhiteFlag(ctx context.Context, req *inx.WhiteFlagRequest) (*inx.WhiteFlagResponse, error)
- func (s *Server) ConfigurePrometheus()
- func (s *Server) ListenToBlocks(_ *inx.NoParams, srv inx.INX_ListenToBlocksServer) error
- func (s *Server) ListenToConfirmedMilestones(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToConfirmedMilestonesServer) error
- func (s *Server) ListenToLatestMilestones(_ *inx.NoParams, srv inx.INX_ListenToLatestMilestonesServer) error
- func (s *Server) ListenToLedgerUpdates(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToLedgerUpdatesServer) error
- func (s *Server) ListenToMigrationReceipts(_ *inx.NoParams, srv inx.INX_ListenToMigrationReceiptsServer) error
- func (s *Server) ListenToNodeStatus(req *inx.NodeStatusRequest, srv inx.INX_ListenToNodeStatusServer) error
- func (s *Server) ListenToReferencedBlocks(_ *inx.NoParams, srv inx.INX_ListenToReferencedBlocksServer) error
- func (s *Server) ListenToSolidBlocks(_ *inx.NoParams, srv inx.INX_ListenToSolidBlocksServer) error
- func (s *Server) ListenToTipScoreUpdates(_ *inx.NoParams, srv inx.INX_ListenToTipScoreUpdatesServer) error
- func (s *Server) ListenToTipsMetrics(req *inx.TipsMetricRequest, srv inx.INX_ListenToTipsMetricsServer) error
- func (s *Server) ListenToTreasuryUpdates(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToTreasuryUpdatesServer) error
- func (s *Server) PerformAPIRequest(_ context.Context, req *inx.APIRequest) (*inx.APIResponse, error)
- func (s *Server) ReadBlock(_ context.Context, blockID *inx.BlockId) (*inx.RawBlock, error)
- func (s *Server) ReadBlockMetadata(_ context.Context, blockID *inx.BlockId) (*inx.BlockMetadata, error)
- func (s *Server) ReadMilestone(_ context.Context, req *inx.MilestoneRequest) (*inx.Milestone, error)
- func (s *Server) ReadMilestoneCone(req *inx.MilestoneRequest, srv inx.INX_ReadMilestoneConeServer) error
- func (s *Server) ReadMilestoneConeMetadata(req *inx.MilestoneRequest, srv inx.INX_ReadMilestoneConeMetadataServer) error
- func (s *Server) ReadNodeConfiguration(context.Context, *inx.NoParams) (*inx.NodeConfiguration, error)
- func (s *Server) ReadNodeStatus(context.Context, *inx.NoParams) (*inx.NodeStatus, error)
- func (s *Server) ReadOutput(_ context.Context, id *inx.OutputId) (*inx.OutputResponse, error)
- func (s *Server) ReadProtocolParameters(_ context.Context, req *inx.MilestoneRequest) (*inx.RawProtocolParameters, error)
- func (s *Server) ReadUnspentOutputs(_ *inx.NoParams, srv inx.INX_ReadUnspentOutputsServer) error
- func (s *Server) RegisterAPIRoute(_ context.Context, req *inx.APIRouteRequest) (*inx.NoParams, error)
- func (s *Server) RequestTips(_ context.Context, req *inx.TipsRequest) (*inx.TipsResponse, error)
- func (s *Server) Start()
- func (s *Server) Stop()
- func (s *Server) SubmitBlock(ctx context.Context, rawBlock *inx.RawBlock) (*inx.BlockId, error)
- func (s *Server) UnregisterAPIRoute(_ context.Context, req *inx.APIRouteRequest) (*inx.NoParams, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Component *app.Component
)
View Source
var ParamsINX = &ParametersINX{}
Functions ¶
func NewINXBlockMetadata ¶
func NewLedgerOutput ¶
func NewLedgerOutput(o *utxo.Output) (*inx.LedgerOutput, error)
func NewLedgerSpent ¶
func NewLedgerSpent(s *utxo.Spent) (*inx.LedgerSpent, error)
func NewLedgerUpdateBatchBegin ¶
func NewLedgerUpdateBatchBegin(index iotago.MilestoneIndex, newOutputsCount int, newSpentsCount int) *inx.LedgerUpdate
func NewLedgerUpdateBatchEnd ¶
func NewLedgerUpdateBatchEnd(index iotago.MilestoneIndex, newOutputsCount int, newSpentsCount int) *inx.LedgerUpdate
func NewLedgerUpdateBatchOperationConsumed ¶
func NewLedgerUpdateBatchOperationConsumed(spent *utxo.Spent) (*inx.LedgerUpdate, error)
func NewLedgerUpdateBatchOperationCreated ¶
func NewLedgerUpdateBatchOperationCreated(output *utxo.Output) (*inx.LedgerUpdate, error)
func NewTreasuryUpdate ¶
func NewTreasuryUpdate(index iotago.MilestoneIndex, created *utxo.TreasuryOutput, consumed *utxo.TreasuryOutput) (*inx.TreasuryUpdate, error)
Types ¶
type ParametersINX ¶
type ParametersINX struct { // Enabled defines whether the INX plugin is enabled. Enabled bool `default:"false" usage:"whether the INX plugin is enabled"` // the bind address on which the INX can be accessed from BindAddress string `default:"localhost:9029" usage:"the bind address on which the INX can be accessed from"` PoW struct { // the amount of workers used for calculating PoW when issuing blocks via INX WorkerCount int `` /* 131-byte string literal not displayed */ } `name:"pow"` }
ParametersINX contains the definition of the parameters used by INX.
type Server ¶
type Server struct { inx.UnimplementedINXServer // contains filtered or unexported fields }
func (*Server) ComputeWhiteFlag ¶
func (s *Server) ComputeWhiteFlag(ctx context.Context, req *inx.WhiteFlagRequest) (*inx.WhiteFlagResponse, error)
func (*Server) ConfigurePrometheus ¶
func (s *Server) ConfigurePrometheus()
func (*Server) ListenToBlocks ¶
func (*Server) ListenToConfirmedMilestones ¶
func (s *Server) ListenToConfirmedMilestones(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToConfirmedMilestonesServer) error
func (*Server) ListenToLatestMilestones ¶
func (*Server) ListenToLedgerUpdates ¶
func (s *Server) ListenToLedgerUpdates(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToLedgerUpdatesServer) error
func (*Server) ListenToMigrationReceipts ¶
func (*Server) ListenToNodeStatus ¶
func (s *Server) ListenToNodeStatus(req *inx.NodeStatusRequest, srv inx.INX_ListenToNodeStatusServer) error
func (*Server) ListenToReferencedBlocks ¶
func (*Server) ListenToSolidBlocks ¶
func (*Server) ListenToTipScoreUpdates ¶
func (*Server) ListenToTipsMetrics ¶
func (s *Server) ListenToTipsMetrics(req *inx.TipsMetricRequest, srv inx.INX_ListenToTipsMetricsServer) error
func (*Server) ListenToTreasuryUpdates ¶
func (s *Server) ListenToTreasuryUpdates(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToTreasuryUpdatesServer) error
func (*Server) PerformAPIRequest ¶
func (s *Server) PerformAPIRequest(_ context.Context, req *inx.APIRequest) (*inx.APIResponse, error)
func (*Server) ReadBlockMetadata ¶
func (*Server) ReadMilestone ¶
func (*Server) ReadMilestoneCone ¶
func (s *Server) ReadMilestoneCone(req *inx.MilestoneRequest, srv inx.INX_ReadMilestoneConeServer) error
func (*Server) ReadMilestoneConeMetadata ¶
func (s *Server) ReadMilestoneConeMetadata(req *inx.MilestoneRequest, srv inx.INX_ReadMilestoneConeMetadataServer) error
func (*Server) ReadNodeConfiguration ¶
func (*Server) ReadNodeStatus ¶
func (*Server) ReadOutput ¶
func (*Server) ReadProtocolParameters ¶
func (s *Server) ReadProtocolParameters(_ context.Context, req *inx.MilestoneRequest) (*inx.RawProtocolParameters, error)
func (*Server) ReadUnspentOutputs ¶
func (*Server) RegisterAPIRoute ¶
func (*Server) RequestTips ¶
func (s *Server) RequestTips(_ context.Context, req *inx.TipsRequest) (*inx.TipsResponse, error)
func (*Server) SubmitBlock ¶
func (*Server) UnregisterAPIRoute ¶
Click to show internal directories.
Click to hide internal directories.