Documentation ¶
Index ¶
- Constants
- func WithAccountCache(accCache cacheI[string, int64]) func(b *Broker)
- func WithValidatorCache(valCache cacheI[string, int64]) func(b *Broker)
- func WithValidatorCommissionCache(valCommissionCache cacheI[string, int64]) func(b *Broker)
- func WithValidatorDescriptionCache(valDescriptionCache cacheI[string, int64]) func(b *Broker)
- func WithValidatorInfoCache(valInfoCache cacheI[string, int64]) func(b *Broker)
- func WithValidatorStatusCache(valStatusCache cacheI[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) PublishAnnualProvision(ctx context.Context, ap model.AnnualProvision) error
- func (b *Broker) PublishAuthzGrant(ctx context.Context, grant model.AuthzGrant) error
- func (b *Broker) PublishBlock(ctx context.Context, block model.Block) error
- func (b *Broker) PublishCancelUnbondingDelegationMessage(_ context.Context, description model.CancelUnbondingDelegationMessage) error
- func (b *Broker) PublishCommunityPool(ctx context.Context, cp model.CommunityPool) error
- func (b *Broker) PublishCreateValidatorMessage(_ context.Context, cvm model.CreateValidatorMessage) 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) 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) 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) 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) 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) 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) PublishSendMessage(ctx context.Context, sm model.SendMessage) error
- func (b *Broker) PublishSetWithdrawAddressMessage(_ context.Context, swm model.SetWithdrawAddressMessage) 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) PublishTransaction(ctx context.Context, tx model.Transaction) 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) 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) PublishValidatorStatus(ctx context.Context, status model.ValidatorStatus) error
- func (b *Broker) PublishVoteWeightedMessage(_ context.Context, vwm model.VoteWeightedMessage) error
- func (b *Broker) PublishWithdrawValidatorCommissionMessage(_ context.Context, wvcm 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 = "cant create producer connection to broker: %w " MsgErrCreateAdminClient = "cant create admin client connection to broker: %w" MsgErrCreateTopics = "cant create topics in broker: %w" MsgErrCreatePartitions = "cant create partitions in broker: %w" )
Variables ¶
This section is empty.
Functions ¶
func WithAccountCache ¶
func WithValidatorCache ¶
func WithValidatorInfoCache ¶
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
func (*Broker) PublishAccount ¶
func (*Broker) PublishAccountBalance ¶
func (*Broker) PublishAnnualProvision ¶
func (*Broker) PublishAuthzGrant ¶
func (*Broker) PublishBlock ¶
func (*Broker) PublishCancelUnbondingDelegationMessage ¶
func (*Broker) PublishCommunityPool ¶
func (*Broker) PublishCreateValidatorMessage ¶
func (*Broker) PublishDelegation ¶
func (*Broker) PublishDelegationMessage ¶
func (*Broker) PublishDelegationReward ¶
func (*Broker) PublishDelegationRewardMessage ¶
func (*Broker) PublishDistributionCommission ¶
func (*Broker) PublishDistributionParams ¶
func (*Broker) PublishDistributionReward ¶
func (*Broker) PublishEditValidatorMessage ¶
func (*Broker) PublishExecMessage ¶
func (*Broker) PublishFeeAllowance ¶
func (*Broker) PublishGovParams ¶
func (*Broker) PublishGrantAllowanceMessage ¶
func (*Broker) PublishGrantMessage ¶
func (*Broker) PublishMessage ¶
func (*Broker) PublishMintParams ¶
func (*Broker) PublishMultiSendMessage ¶
func (*Broker) PublishProposal ¶
func (*Broker) PublishProposalDeposit ¶
func (*Broker) PublishProposalDepositMessage ¶
func (*Broker) PublishProposalTallyResult ¶
func (*Broker) PublishProposalVoteMessage ¶
func (*Broker) PublishProposerReward ¶
func (*Broker) PublishRedelegation ¶
func (*Broker) PublishRedelegationMessage ¶
func (*Broker) PublishRevokeAllowanceMessage ¶
func (*Broker) PublishRevokeMessage ¶
func (*Broker) PublishSendMessage ¶
func (*Broker) PublishSetWithdrawAddressMessage ¶
func (*Broker) PublishStakingParams ¶
func (*Broker) PublishStakingPool ¶
func (*Broker) PublishSubmitProposalMessage ¶
func (*Broker) PublishSupply ¶
func (*Broker) PublishTransaction ¶
func (*Broker) PublishUnbondingDelegation ¶
func (*Broker) PublishUnbondingDelegationMessage ¶
func (*Broker) PublishValidator ¶
func (*Broker) PublishValidatorCommission ¶
func (*Broker) PublishValidatorDescription ¶
func (*Broker) PublishValidatorInfo ¶
func (*Broker) PublishValidatorStatus ¶
func (*Broker) PublishVoteWeightedMessage ¶
func (*Broker) PublishWithdrawValidatorCommissionMessage ¶
type Topic ¶
type Topic *string
var ( Account Topic = newTopic("account") AuthzGrant Topic = newTopic("authz_grant") AccountBalance Topic = newTopic("account_balance") AnnualProvision Topic = newTopic("annual_provision") Block Topic = newTopic("block") CancelUnbondingDelegationMessage Topic = newTopic("cancel_unbonding_delegation_message") CommunityPool Topic = newTopic("community_pool") CreateValidatorMessage Topic = newTopic("create_validator_message") DistributionCommission Topic = newTopic("distribution_commission") DistributionReward Topic = newTopic("distribution_reward") DistributionParams Topic = newTopic("distribution_params") DelegationReward Topic = newTopic("delegation_reward") DelegationRewardMessage Topic = newTopic("delegation_reward_message") Delegation Topic = newTopic("delegation") DelegationMessage Topic = newTopic("delegation_message") EditValidatorMessage Topic = newTopic("edit_validator_message") ExecMessage Topic = newTopic("exec_message") FeeAllowance Topic = newTopic("fee_allowance") GovParams Topic = newTopic("gov_params") GrantMessage Topic = newTopic("grant_message") GrantAllowanceMessage Topic = newTopic("grant_allowance_message") Message Topic = newTopic("message") MintParams Topic = newTopic("mint_params") MultiSendMessage Topic = newTopic("multisend_message") Proposal Topic = newTopic("proposal") ProposalVoteMessage Topic = newTopic("proposal_vote_message") ProposalTallyResult Topic = newTopic("proposal_tally_result") ProposalDeposit Topic = newTopic("proposal_deposit") ProposalDepositMessage Topic = newTopic("proposal_deposit_message") ProposerReward Topic = newTopic("proposer_reward") RevokeAllowanceMessage Topic = newTopic("revoke_allowance_message") Redelegation Topic = newTopic("redelegation") RedelegationMessage Topic = newTopic("redelegation_message") RevokeMessage Topic = newTopic("revoke_message") SendMessage Topic = newTopic("send_message") SetWithdrawAddressMessage Topic = newTopic("set_withdraw_address_message") StakingParams Topic = newTopic("staking_params") StakingPool Topic = newTopic("staking_pool") SubmitProposalMessage Topic = newTopic("submit_proposal_message") Supply Topic = newTopic("supply") Transaction Topic = newTopic("transaction") UnbondingDelegation Topic = newTopic("unbonding_delegation") UnbondingDelegationMessage Topic = newTopic("unbonding_delegation_message") Validator Topic = newTopic("validator") ValidatorInfo Topic = newTopic("validator_info") ValidatorStatus Topic = newTopic("validator_status") ValidatorDescription Topic = newTopic("validator_description") ValidatorCommission Topic = newTopic("validator_commission") VoteWeightedMessage Topic = newTopic("vote_weighted_message") WithdrawValidatorCommissionMessage Topic = newTopic("withdraw_validator_commission_message") )
Source Files ¶
- account.go
- account_balance.go
- annual_provision.go
- authz_grant.go
- block.go
- broker.go
- community_pool.go
- config.go
- create_validator_message.go
- delegation.go
- delegation_message.go
- delegation_reward.go
- delegation_reward_message.go
- distribution.go
- distribution_commission.go
- distribution_reward.go
- edit_validator_message.go
- exec_message.go
- fee_allowance.go
- gov.go
- grant_allowance_message.go
- grant_message.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
- redelegation.go
- redelegation_message.go
- revoke_allowance_message.go
- revoke_message.go
- send_message.go
- set_withdraw_adress_message.go
- staking_params.go
- staking_pool.go
- submit_proposal_message.go
- supply.go
- topics.go
- transaction.go
- unbonding_delegation.go
- unbonding_delegation_message.go
- utils.go
- validator_comission.go
- validator_description.go
- validator_info.go
- validator_status.go
- validators.go
- vote_weighted_message.go
- withdraw_validator_commission_message.go
Click to show internal directories.
Click to hide internal directories.