system_event

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL