Documentation ¶
Index ¶
- Constants
- func WithValidatorCache(valCache cache[string, int64]) func(b *Broker)
- func WithValidatorCommissionCache(valCommissionCache cache[string, int64]) func(b *Broker)
- func WithValidatorDescriptionCache(valDescriptionCache cache[string, int64]) func(b *Broker)
- func WithValidatorInfoCache(valInfoCache cache[string, int64]) func(b *Broker)
- func WithValidatorStatusCache(valStatusCache cache[string, int64]) func(b *Broker)
- type Broker
- func (b *Broker) PublishAccount(ctx context.Context, account model.Account) error
- func (b *Broker) PublishAccountBalance(ctx context.Context, ab model.AccountBalance) error
- func (b *Broker) PublishAcknowledgementMessage(ctx context.Context, msg model.AcknowledgementMessage) error
- func (b *Broker) PublishAnnualProvision(ctx context.Context, ap model.AnnualProvision) error
- func (b *Broker) PublishAuthzGrant(ctx context.Context, grant model.AuthzGrant) error
- func (b *Broker) PublishBandwidthParams(ctx context.Context, msg model.BandwidthParams) error
- func (b *Broker) PublishBlock(ctx context.Context, block model.Block) error
- func (b *Broker) PublishCancelUnbondingDelegationMessage(_ context.Context, d model.CancelUnbondingDelegationMessage) error
- func (b *Broker) PublishCommunityPool(ctx context.Context, cp model.CommunityPool) error
- func (b *Broker) PublishCreateRouteMessage(ctx context.Context, msg model.CreateRouteMessage) error
- func (b *Broker) PublishCreateValidatorMessage(_ context.Context, cvm model.CreateValidatorMessage) error
- func (b *Broker) PublishCyberlink(ctx context.Context, msg model.Cyberlink) error
- func (b *Broker) PublishCyberlinkMessage(ctx context.Context, msg model.CyberlinkMessage) error
- func (b *Broker) PublishDMNParams(ctx context.Context, msg model.DMNParams) error
- func (b *Broker) PublishDelegation(ctx context.Context, d model.Delegation) error
- func (b *Broker) PublishDelegationMessage(ctx context.Context, dm model.DelegationMessage) error
- func (b *Broker) PublishDelegationReward(ctx context.Context, dr model.DelegationReward) error
- func (b *Broker) PublishDelegationRewardMessage(ctx context.Context, drm model.DelegationRewardMessage) error
- func (b *Broker) PublishDeleteRouteMessage(ctx context.Context, msg model.DeleteRouteMessage) error
- func (b *Broker) PublishDenomTrace(ctx context.Context, dt model.DenomTrace) error
- func (b *Broker) PublishDisabledDelegation(ctx context.Context, d model.Delegation) error
- func (b *Broker) PublishDistributionCommission(_ context.Context, commission model.DistributionCommission) error
- func (b *Broker) PublishDistributionParams(ctx context.Context, dp model.DistributionParams) error
- func (b *Broker) PublishDistributionReward(_ context.Context, reward model.DistributionReward) error
- func (b *Broker) PublishEditRouteMessage(ctx context.Context, msg model.EditRouteMessage) error
- func (b *Broker) PublishEditRouteNameMessage(ctx context.Context, msg model.EditRouteNameMessage) error
- func (b *Broker) PublishEditValidatorMessage(_ context.Context, msg model.EditValidatorMessage) error
- func (b *Broker) PublishExecMessage(ctx context.Context, em model.ExecMessage) error
- func (b *Broker) PublishFeeAllowance(ctx context.Context, feeAllowance model.FeeAllowance) error
- func (b *Broker) PublishGovParams(ctx context.Context, params model.GovParams) error
- func (b *Broker) PublishGrantAllowanceMessage(ctx context.Context, gam model.GrantAllowanceMessage) error
- func (b *Broker) PublishGrantMessage(ctx context.Context, gm model.GrantMessage) error
- func (b *Broker) PublishGridParams(ctx context.Context, msg model.GridParams) error
- func (b *Broker) PublishHandleValidatorSignature(ctx context.Context, hvs model.HandleValidatorSignature) error
- func (b *Broker) PublishInvestmintMessage(ctx context.Context, msg model.InvestmintMessage) error
- func (b *Broker) PublishLiquidityPool(_ context.Context, v model.LiquidityPool) error
- func (b *Broker) PublishMessage(ctx context.Context, message model.Message) error
- func (b *Broker) PublishMintParams(ctx context.Context, mp model.MintParams) error
- func (b *Broker) PublishMultiSendMessage(ctx context.Context, msm model.MultiSendMessage) error
- func (b *Broker) PublishParticle(ctx context.Context, msg model.Particle) error
- func (b *Broker) PublishProposal(ctx context.Context, proposal model.Proposal) error
- func (b *Broker) PublishProposalDeposit(ctx context.Context, pvm model.ProposalDeposit) error
- func (b *Broker) PublishProposalDepositMessage(ctx context.Context, pvm model.ProposalDepositMessage) error
- func (b *Broker) PublishProposalTallyResult(ctx context.Context, ptr model.ProposalTallyResult) error
- func (b *Broker) PublishProposalVoteMessage(ctx context.Context, pvm model.ProposalVoteMessage) error
- func (b *Broker) PublishProposerReward(ctx context.Context, r model.ProposerReward) error
- func (b *Broker) PublishRankParams(ctx context.Context, msg model.RankParams) error
- func (b *Broker) PublishRawBlock(_ context.Context, block interface{}) error
- func (b *Broker) PublishRawBlockResults(_ context.Context, br interface{}) error
- func (b *Broker) PublishRawGenesis(_ context.Context, g interface{}) error
- func (b *Broker) PublishRawTransaction(_ context.Context, tx interface{}) error
- func (b *Broker) PublishReceivePacketMessage(ctx context.Context, r model.RecvPacketMessage) error
- func (b *Broker) PublishRedelegation(ctx context.Context, r model.Redelegation) error
- func (b *Broker) PublishRedelegationMessage(ctx context.Context, rm model.RedelegationMessage) error
- func (b *Broker) PublishRevokeAllowanceMessage(ctx context.Context, ram model.RevokeAllowanceMessage) error
- func (b *Broker) PublishRevokeMessage(ctx context.Context, rm model.RevokeMessage) error
- func (b *Broker) PublishRoute(ctx context.Context, msg model.Route) error
- func (b *Broker) PublishSendMessage(ctx context.Context, sm model.SendMessage) error
- func (b *Broker) PublishSetWithdrawAddressMessage(_ context.Context, swm model.SetWithdrawAddressMessage) error
- func (b *Broker) PublishSlashingParams(_ context.Context, params model.SlashingParams) error
- func (b *Broker) PublishStakingParams(ctx context.Context, sp model.StakingParams) error
- func (b *Broker) PublishStakingPool(ctx context.Context, sp model.StakingPool) error
- func (b *Broker) PublishSubmitProposalMessage(_ context.Context, spm model.SubmitProposalMessage) error
- func (b *Broker) PublishSupply(ctx context.Context, supply model.Supply) error
- func (b *Broker) PublishSwap(ctx context.Context, swap model.Swap) error
- func (b *Broker) PublishTransaction(ctx context.Context, tx model.Transaction) error
- func (b *Broker) PublishTransferMessage(ctx context.Context, tm model.TransferMessage) error
- func (b *Broker) PublishUnbondingDelegation(ctx context.Context, ud model.UnbondingDelegation) error
- func (b *Broker) PublishUnbondingDelegationMessage(ctx context.Context, udm model.UnbondingDelegationMessage) error
- func (b *Broker) PublishUnjailMessage(_ context.Context, msg model.UnjailMessage) error
- func (b *Broker) PublishValidator(ctx context.Context, val model.Validator) error
- func (b *Broker) PublishValidatorCommission(ctx context.Context, commission model.ValidatorCommission) error
- func (b *Broker) PublishValidatorDescription(ctx context.Context, description model.ValidatorDescription) error
- func (b *Broker) PublishValidatorInfo(ctx context.Context, info model.ValidatorInfo) error
- func (b *Broker) PublishValidatorPreCommit(_ context.Context, v model.ValidatorPreCommit) error
- func (b *Broker) PublishValidatorStatus(ctx context.Context, status model.ValidatorStatus) error
- func (b *Broker) PublishValidatorVotingPower(_ context.Context, vp model.ValidatorVotingPower) error
- func (b *Broker) PublishVoteWeightedMessage(_ context.Context, vwm model.VoteWeightedMessage) error
- func (b *Broker) PublishWithdrawValidatorCommissionMessage(_ context.Context, msg model.WithdrawValidatorCommissionMessage) error
- func (b *Broker) Start(ctx context.Context) error
- func (b *Broker) Stop(ctx context.Context) error
- type Config
- type Topic
- type Topics
Constants ¶
View Source
const ( MsgErrJSONMarshalFail = "json marshal fail: %w" MsgErrCreateProducer = "can't create producer connection to broker: %w " MsgErrCreateAdminClient = "can't create admin client connection to broker: %w" MsgErrCreateTopics = "can't create topics in broker: %w" MsgErrProduceTopic = "can't produce topic: %w" MsgErrCreatePartitions = "can't create partitions in broker: %w" )
Variables ¶
This section is empty.
Functions ¶
func WithValidatorCache ¶
func WithValidatorInfoCache ¶
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
func (*Broker) PublishAccount ¶
func (*Broker) PublishAccountBalance ¶
func (*Broker) PublishAcknowledgementMessage ¶ added in v0.2.1
func (*Broker) PublishAnnualProvision ¶
func (*Broker) PublishAuthzGrant ¶
func (*Broker) PublishBandwidthParams ¶ added in v1.0.0
func (*Broker) PublishBlock ¶
func (*Broker) PublishCancelUnbondingDelegationMessage ¶
func (*Broker) PublishCommunityPool ¶
func (*Broker) PublishCreateRouteMessage ¶ added in v1.0.0
func (*Broker) PublishCreateValidatorMessage ¶
func (*Broker) PublishCyberlink ¶ added in v1.0.0
func (*Broker) PublishCyberlinkMessage ¶ added in v1.0.0
func (*Broker) PublishDMNParams ¶ added in v1.0.0
func (*Broker) PublishDelegation ¶
func (*Broker) PublishDelegationMessage ¶
func (*Broker) PublishDelegationReward ¶
func (*Broker) PublishDelegationRewardMessage ¶
func (*Broker) PublishDeleteRouteMessage ¶ added in v1.0.0
func (*Broker) PublishDenomTrace ¶ added in v0.2.2
func (*Broker) PublishDisabledDelegation ¶ added in v0.3.2
func (*Broker) PublishDistributionCommission ¶
func (*Broker) PublishDistributionParams ¶
func (*Broker) PublishDistributionReward ¶
func (*Broker) PublishEditRouteMessage ¶ added in v1.0.0
func (*Broker) PublishEditRouteNameMessage ¶ added in v1.0.0
func (*Broker) PublishEditValidatorMessage ¶
func (*Broker) PublishExecMessage ¶
func (*Broker) PublishFeeAllowance ¶
func (*Broker) PublishGovParams ¶
func (*Broker) PublishGrantAllowanceMessage ¶
func (*Broker) PublishGrantMessage ¶
func (*Broker) PublishGridParams ¶ added in v1.0.0
func (*Broker) PublishHandleValidatorSignature ¶ added in v0.0.4
func (*Broker) PublishInvestmintMessage ¶ added in v1.0.0
func (*Broker) PublishLiquidityPool ¶ added in v0.2.4
func (*Broker) PublishMessage ¶
func (*Broker) PublishMintParams ¶
func (*Broker) PublishMultiSendMessage ¶
func (*Broker) PublishParticle ¶ added in v1.0.0
func (*Broker) PublishProposal ¶
func (*Broker) PublishProposalDeposit ¶
func (*Broker) PublishProposalDepositMessage ¶
func (*Broker) PublishProposalTallyResult ¶
func (*Broker) PublishProposalVoteMessage ¶
func (*Broker) PublishProposerReward ¶
func (*Broker) PublishRankParams ¶ added in v1.0.0
func (*Broker) PublishRawBlock ¶ added in v1.1.0
func (*Broker) PublishRawBlockResults ¶ added in v1.1.0
func (*Broker) PublishRawGenesis ¶ added in v1.1.0
func (*Broker) PublishRawTransaction ¶ added in v1.1.0
func (*Broker) PublishReceivePacketMessage ¶ added in v0.2.1
func (*Broker) PublishRedelegation ¶
func (*Broker) PublishRedelegationMessage ¶
func (*Broker) PublishRevokeAllowanceMessage ¶
func (*Broker) PublishRevokeMessage ¶
func (*Broker) PublishRoute ¶ added in v1.0.0
func (*Broker) PublishSendMessage ¶
func (*Broker) PublishSetWithdrawAddressMessage ¶
func (*Broker) PublishSlashingParams ¶ added in v0.3.0
func (*Broker) PublishStakingParams ¶
func (*Broker) PublishStakingPool ¶
func (*Broker) PublishSubmitProposalMessage ¶
func (*Broker) PublishSupply ¶
func (*Broker) PublishSwap ¶ added in v0.2.4
func (*Broker) PublishTransaction ¶
func (*Broker) PublishTransferMessage ¶ added in v0.2.1
func (*Broker) PublishUnbondingDelegation ¶
func (*Broker) PublishUnbondingDelegationMessage ¶
func (*Broker) PublishUnjailMessage ¶ added in v0.0.2
func (*Broker) PublishValidator ¶
func (*Broker) PublishValidatorCommission ¶
func (*Broker) PublishValidatorDescription ¶
func (*Broker) PublishValidatorInfo ¶
func (*Broker) PublishValidatorPreCommit ¶ added in v1.0.0
func (*Broker) PublishValidatorStatus ¶
func (*Broker) PublishValidatorVotingPower ¶ added in v0.3.0
func (*Broker) PublishVoteWeightedMessage ¶
func (*Broker) PublishWithdrawValidatorCommissionMessage ¶
type Topic ¶
type Topic *string
var ( Account Topic = newTopic("account") AccountBalance Topic = newTopic("account_balance") AcknowledgementMessage Topic = newTopic("acknowledgement_message") AnnualProvision Topic = newTopic("annual_provision") AuthzGrant Topic = newTopic("authz_grant") BandwidthParams Topic = newTopic("bandwidth_params") Block Topic = newTopic("block") CancelUnbondingDelegationMessage Topic = newTopic("cancel_unbonding_delegation_message") CommunityPool Topic = newTopic("community_pool") CreateRouteMessage Topic = newTopic("create_route_message") CreateValidatorMessage Topic = newTopic("create_validator_message") Cyberlink Topic = newTopic("cyberlink") CyberlinkMessage Topic = newTopic("cyberlink_message") DMNParams Topic = newTopic("dmn_params") Delegation Topic = newTopic("delegation") DelegationMessage Topic = newTopic("delegation_message") DelegationReward Topic = newTopic("delegation_reward") DelegationRewardMessage Topic = newTopic("delegation_reward_message") DeleteRouteMessage Topic = newTopic("delete_route_message") DenomTrace Topic = newTopic("denom_trace") DistributionCommission Topic = newTopic("distribution_commission") DistributionParams Topic = newTopic("distribution_params") DistributionReward Topic = newTopic("distribution_reward") EditRouteMessage Topic = newTopic("edit_route_message") EditRouteNameMessage Topic = newTopic("edit_route_name_message") EditValidatorMessage Topic = newTopic("edit_validator_message") ExecMessage Topic = newTopic("exec_message") FeeAllowance Topic = newTopic("fee_allowance") GovParams Topic = newTopic("gov_params") GrantAllowanceMessage Topic = newTopic("grant_allowance_message") GrantMessage Topic = newTopic("grant_message") GridParams Topic = newTopic("grid_params") HandleValidatorSignature Topic = newTopic("handle_validator_signature") InvestmintMessage Topic = newTopic("investmint_message") LiquidityPool Topic = newTopic("liquidity_pool") Message Topic = newTopic("message") MintParams Topic = newTopic("mint_params") MultiSendMessage Topic = newTopic("multisend_message") Particle Topic = newTopic("particle") Proposal Topic = newTopic("proposal") ProposalDeposit Topic = newTopic("proposal_deposit") ProposalDepositMessage Topic = newTopic("proposal_deposit_message") ProposalTallyResult Topic = newTopic("proposal_tally_result") ProposalVoteMessage Topic = newTopic("proposal_vote_message") ProposerReward Topic = newTopic("proposer_reward") RankParams Topic = newTopic("rank_params") RawBlock Topic = newTopic("raw_block") RawBlockResults Topic = newTopic("raw_block_results") RawGenesis Topic = newTopic("raw_genesis") RawTransaction Topic = newTopic("raw_transaction") ReceivePacketMessage Topic = newTopic("receive_packet_message") Redelegation Topic = newTopic("redelegation") RedelegationMessage Topic = newTopic("redelegation_message") RevokeAllowanceMessage Topic = newTopic("revoke_allowance_message") RevokeMessage Topic = newTopic("revoke_message") Route Topic = newTopic("route") SendMessage Topic = newTopic("send_message") SetWithdrawAddressMessage Topic = newTopic("set_withdraw_address_message") SlashingParams Topic = newTopic("slashing_params") StakingParams Topic = newTopic("staking_params") StakingPool Topic = newTopic("staking_pool") SubmitProposalMessage Topic = newTopic("submit_proposal_message") Supply Topic = newTopic("supply") Swap Topic = newTopic("swap") Transaction Topic = newTopic("transaction") TransferMessage Topic = newTopic("transfer_message") UnbondingDelegation Topic = newTopic("unbonding_delegation") UnbondingDelegationMessage Topic = newTopic("unbonding_delegation_message") UnjailMessage Topic = newTopic("unjail_message") Validator Topic = newTopic("validator") ValidatorCommission Topic = newTopic("validator_commission") ValidatorDescription Topic = newTopic("validator_description") ValidatorInfo Topic = newTopic("validator_info") ValidatorPreCommit Topic = newTopic("validator_precommit") ValidatorStatus Topic = newTopic("validator_status") ValidatorVotingPower Topic = newTopic("validator_voting_power") VoteWeightedMessage Topic = newTopic("vote_weighted_message") WithdrawValidatorCommissionMessage Topic = newTopic("withdraw_validator_commission_message") )
Source Files ¶
- account.go
- account_balance.go
- acknowledgement_message.go
- annual_provision.go
- authz_grant.go
- bandwidth.go
- block.go
- broker.go
- community_pool.go
- config.go
- create_validator_message.go
- cyberlink.go
- delegation.go
- delegation_message.go
- delegation_reward.go
- delegation_reward_message.go
- denom_trace.go
- distribution.go
- distribution_commission.go
- distribution_reward.go
- dmn.go
- edit_validator_message.go
- exec_message.go
- fee_allowance.go
- gov.go
- grant_allowance_message.go
- grant_message.go
- grid.go
- handle_validator_signature.go
- liquidity_pool.go
- message.go
- mint_params.go
- multi_send_message.go
- proposal.go
- proposal_deposit.go
- proposal_deposit_message.go
- proposal_tally_result.go
- proposal_vote_message.go
- proposer_reward.go
- publish_cancel_unbonding_delegation_message.go
- rank.go
- raw.go
- receive_packet_message.go
- redelegation.go
- redelegation_message.go
- resources.go
- revoke_allowance_message.go
- revoke_message.go
- send_message.go
- set_withdraw_adress_message.go
- slashing_params.go
- staking_params.go
- staking_pool.go
- submit_proposal_message.go
- supply.go
- swap.go
- topics.go
- transaction.go
- transfer_message.go
- unbonding_delegation.go
- unbonding_delegation_message.go
- unjail_message.go
- utils.go
- validator_comission.go
- validator_description.go
- validator_info.go
- validator_precommit.go
- validator_status.go
- validator_voting_power.go
- validators.go
- vote_weighted_message.go
- withdraw_validator_commission_message.go
Click to show internal directories.
Click to hide internal directories.