Documentation ¶
Index ¶
- Variables
- func New(ctx context.Context, row history.Effect) (result hal.Pageable, err error)
- type AccountCreated
- type AccountCredited
- type AccountDebited
- type AccountFlagsUpdated
- type AccountHomeDomainUpdated
- type AccountThresholdsUpdated
- type Base
- type SignerCreated
- type SignerRemoved
- type SignerUpdated
- type Trade
- type TrustlineAuthorized
- type TrustlineCreated
- type TrustlineDeauthorized
- type TrustlineRemoved
- type TrustlineUpdated
Constants ¶
This section is empty.
Variables ¶
View Source
var TypeNames = map[history.EffectType]string{ history.EffectAccountCreated: "account_created", history.EffectAccountRemoved: "account_removed", history.EffectAccountCredited: "account_credited", history.EffectAccountDebited: "account_debited", history.EffectAccountThresholdsUpdated: "account_thresholds_updated", history.EffectAccountHomeDomainUpdated: "account_home_domain_updated", history.EffectAccountFlagsUpdated: "account_flags_updated", history.EffectAccountInflationDestinationUpdated: "account_inflation_destination_updated", history.EffectSignerCreated: "signer_created", history.EffectSignerRemoved: "signer_removed", history.EffectSignerUpdated: "signer_updated", history.EffectTrustlineCreated: "trustline_created", history.EffectTrustlineRemoved: "trustline_removed", history.EffectTrustlineUpdated: "trustline_updated", history.EffectTrustlineAuthorized: "trustline_authorized", history.EffectTrustlineDeauthorized: "trustline_deauthorized", history.EffectOfferCreated: "offer_created", history.EffectOfferRemoved: "offer_removed", history.EffectOfferUpdated: "offer_updated", history.EffectTrade: "trade", history.EffectDataCreated: "data_created", history.EffectDataRemoved: "data_removed", history.EffectDataUpdated: "data_updated", }
Functions ¶
Types ¶
type AccountCreated ¶
type AccountCredited ¶
type AccountFlagsUpdated ¶
type Base ¶
type Base struct { Links struct { Operation hal.Link `json:"operation"` Succeeds hal.Link `json:"succeeds"` Precedes hal.Link `json:"precedes"` } `json:"_links"` ID string `json:"id"` PT string `json:"paging_token"` Account string `json:"account"` Type string `json:"type"` TypeI int32 `json:"type_i"` }
Base provides the common structure for any effect resource effect.
func (Base) PagingToken ¶
PagingToken implements `hal.Pageable`
type SignerCreated ¶
type SignerCreated struct { Base Weight int32 `json:"weight"` PublicKey string `json:"public_key"` Key string `json:"key"` }
func (*SignerCreated) Rehydrate ¶
func (sc *SignerCreated) Rehydrate() error
Rehydrate implements base.Rehydratable interface
type SignerRemoved ¶
type SignerRemoved struct { Base Weight int32 `json:"weight"` PublicKey string `json:"public_key"` Key string `json:"key"` }
func (*SignerRemoved) Rehydrate ¶
func (sr *SignerRemoved) Rehydrate() error
Rehydrate implements base.Rehydratable interface
type SignerUpdated ¶
type SignerUpdated struct { Base Weight int32 `json:"weight"` PublicKey string `json:"public_key"` Key string `json:"key"` }
func (*SignerUpdated) Rehydrate ¶
func (su *SignerUpdated) Rehydrate() error
Rehydrate implements base.Rehydratable interface
type Trade ¶
type Trade struct { Base Seller string `json:"seller"` OfferID int64 `json:"offer_id"` SoldAmount string `json:"sold_amount"` SoldAssetType string `json:"sold_asset_type"` SoldAssetCode string `json:"sold_asset_code,omitempty"` SoldAssetIssuer string `json:"sold_asset_issuer,omitempty"` BoughtAmount string `json:"bought_amount"` BoughtAssetType string `json:"bought_asset_type"` BoughtAssetCode string `json:"bought_asset_code,omitempty"` BoughtAssetIssuer string `json:"bought_asset_issuer,omitempty"` }
type TrustlineAuthorized ¶
type TrustlineCreated ¶
type TrustlineDeauthorized ¶
type TrustlineDeauthorized struct {}
type TrustlineRemoved ¶
Click to show internal directories.
Click to hide internal directories.