Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGetForAddressHttpHandler ¶
func NewGetForAddressHttpHandler(c *client.Client, systemEventDb store.SystemEvents) *getForAddressHttpHandler
func NewGetForAddressUseCase ¶
func NewGetForAddressUseCase(systemEventDb store.SystemEvents) *getForAddressUseCase
Types ¶
type GetForAddressRequest ¶
type GetForAddressRequest struct { // Address // // required: true // in: path Address string `json:"address" uri:"address" binding:"required"` // After // // in: query After *int64 `json:"after" form:"after" binding:"-"` // Kind // // in: query // example: active_balance_change_1 Kind *model.SystemEventKind `json:"form" form:"kind" binding:"-"` }
swagger:parameters getSystemEventsForAddress
type ListView ¶
type ListView struct {
Items []SystemEventItem `json:"items"`
}
SystemEventsView is a list of system events swagger:response SystemEventsView
func ToListView ¶
func ToListView(events []model.SystemEvent) *ListView
type SystemEventItem ¶ added in v0.8.3
type SystemEventItem struct { *model.Model // Height is block height from when event was triggered Height int64 `json:"height"` // Time is block time from when event was triggered Time types.Time `json:"time"` // Actor is an account stash Actor string `json:"actor"` // Kind is system event kind // // example: active_balance_change_1 Kind string `json:"kind"` // Data contains event specific data for kind Data types.Jsonb `json:"data"` }
Click to show internal directories.
Click to hide internal directories.