Documentation ¶
Index ¶
- Variables
- func INXNewBlockMetadata(blockID iotago.BlockID, metadata *storage.BlockMetadata, tip ...*tipselect.Tip) (*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 INXServer
- func (s *INXServer) ComputeWhiteFlag(ctx context.Context, req *inx.WhiteFlagRequest) (*inx.WhiteFlagResponse, error)
- func (s *INXServer) ConfigurePrometheus()
- func (s *INXServer) ListenToBlocks(_ *inx.NoParams, srv inx.INX_ListenToBlocksServer) error
- func (s *INXServer) ListenToConfirmedMilestones(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToConfirmedMilestonesServer) error
- func (s *INXServer) ListenToLatestMilestones(_ *inx.NoParams, srv inx.INX_ListenToLatestMilestonesServer) error
- func (s *INXServer) ListenToLedgerUpdates(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToLedgerUpdatesServer) error
- func (s *INXServer) ListenToMigrationReceipts(_ *inx.NoParams, srv inx.INX_ListenToMigrationReceiptsServer) error
- func (s *INXServer) ListenToReferencedBlocks(_ *inx.NoParams, srv inx.INX_ListenToReferencedBlocksServer) error
- func (s *INXServer) ListenToSolidBlocks(_ *inx.NoParams, srv inx.INX_ListenToSolidBlocksServer) error
- func (s *INXServer) ListenToTipScoreUpdates(_ *inx.NoParams, srv inx.INX_ListenToTipScoreUpdatesServer) error
- func (s *INXServer) ListenToTipsMetrics(req *inx.TipsMetricRequest, srv inx.INX_ListenToTipsMetricsServer) error
- func (s *INXServer) ListenToTreasuryUpdates(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToTreasuryUpdatesServer) error
- func (s *INXServer) PerformAPIRequest(_ context.Context, req *inx.APIRequest) (*inx.APIResponse, error)
- func (s *INXServer) ReadBlock(_ context.Context, blockID *inx.BlockId) (*inx.RawBlock, error)
- func (s *INXServer) ReadBlockMetadata(_ context.Context, blockID *inx.BlockId) (*inx.BlockMetadata, error)
- func (s *INXServer) ReadMilestone(_ context.Context, req *inx.MilestoneRequest) (*inx.Milestone, error)
- func (s *INXServer) ReadMilestoneCone(req *inx.MilestoneRequest, srv inx.INX_ReadMilestoneConeServer) error
- func (s *INXServer) ReadMilestoneConeMetadata(req *inx.MilestoneRequest, srv inx.INX_ReadMilestoneConeMetadataServer) error
- func (s *INXServer) ReadNodeConfiguration(context.Context, *inx.NoParams) (*inx.NodeConfiguration, error)
- func (s *INXServer) ReadNodeStatus(context.Context, *inx.NoParams) (*inx.NodeStatus, error)
- func (s *INXServer) ReadOutput(_ context.Context, id *inx.OutputId) (*inx.OutputResponse, error)
- func (s *INXServer) ReadProtocolParameters(_ context.Context, req *inx.MilestoneRequest) (*inx.RawProtocolParameters, error)
- func (s *INXServer) ReadUnspentOutputs(_ *inx.NoParams, srv inx.INX_ReadUnspentOutputsServer) error
- func (s *INXServer) RegisterAPIRoute(_ context.Context, req *inx.APIRouteRequest) (*inx.NoParams, error)
- func (s *INXServer) RequestTips(ctx context.Context, req *inx.TipsRequest) (*inx.TipsResponse, error)
- func (s *INXServer) Start()
- func (s *INXServer) Stop()
- func (s *INXServer) SubmitBlock(context context.Context, rawBlock *inx.RawBlock) (*inx.BlockId, error)
- func (s *INXServer) UnregisterAPIRoute(_ context.Context, req *inx.APIRouteRequest) (*inx.NoParams, error)
- type ParametersINX
Constants ¶
This section is empty.
Variables ¶
View Source
var ParamsINX = &ParametersINX{}
View Source
var (
Plugin *app.Plugin
)
Functions ¶
func INXNewBlockMetadata ¶
func INXNewBlockMetadata(blockID iotago.BlockID, metadata *storage.BlockMetadata, tip ...*tipselect.Tip) (*inx.BlockMetadata, error)
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 INXServer ¶
type INXServer struct { inx.UnimplementedINXServer // contains filtered or unexported fields }
func (*INXServer) ComputeWhiteFlag ¶
func (s *INXServer) ComputeWhiteFlag(ctx context.Context, req *inx.WhiteFlagRequest) (*inx.WhiteFlagResponse, error)
func (*INXServer) ConfigurePrometheus ¶
func (s *INXServer) ConfigurePrometheus()
func (*INXServer) ListenToBlocks ¶
func (*INXServer) ListenToConfirmedMilestones ¶
func (s *INXServer) ListenToConfirmedMilestones(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToConfirmedMilestonesServer) error
func (*INXServer) ListenToLatestMilestones ¶
func (*INXServer) ListenToLedgerUpdates ¶
func (s *INXServer) ListenToLedgerUpdates(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToLedgerUpdatesServer) error
func (*INXServer) ListenToMigrationReceipts ¶
func (*INXServer) ListenToReferencedBlocks ¶
func (*INXServer) ListenToSolidBlocks ¶
func (*INXServer) ListenToTipScoreUpdates ¶
func (*INXServer) ListenToTipsMetrics ¶
func (s *INXServer) ListenToTipsMetrics(req *inx.TipsMetricRequest, srv inx.INX_ListenToTipsMetricsServer) error
func (*INXServer) ListenToTreasuryUpdates ¶
func (s *INXServer) ListenToTreasuryUpdates(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToTreasuryUpdatesServer) error
func (*INXServer) PerformAPIRequest ¶
func (s *INXServer) PerformAPIRequest(_ context.Context, req *inx.APIRequest) (*inx.APIResponse, error)
func (*INXServer) ReadBlockMetadata ¶
func (*INXServer) ReadMilestone ¶
func (*INXServer) ReadMilestoneCone ¶
func (s *INXServer) ReadMilestoneCone(req *inx.MilestoneRequest, srv inx.INX_ReadMilestoneConeServer) error
func (*INXServer) ReadMilestoneConeMetadata ¶
func (s *INXServer) ReadMilestoneConeMetadata(req *inx.MilestoneRequest, srv inx.INX_ReadMilestoneConeMetadataServer) error
func (*INXServer) ReadNodeConfiguration ¶
func (*INXServer) ReadNodeStatus ¶
func (*INXServer) ReadOutput ¶
func (*INXServer) ReadProtocolParameters ¶
func (s *INXServer) ReadProtocolParameters(_ context.Context, req *inx.MilestoneRequest) (*inx.RawProtocolParameters, error)
func (*INXServer) ReadUnspentOutputs ¶
func (*INXServer) RegisterAPIRoute ¶
func (*INXServer) RequestTips ¶
func (s *INXServer) RequestTips(ctx context.Context, req *inx.TipsRequest) (*inx.TipsResponse, error)
func (*INXServer) SubmitBlock ¶
func (*INXServer) UnregisterAPIRoute ¶
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.
Click to show internal directories.
Click to hide internal directories.