systemevent

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetAllHttpHandler added in v0.2.0

func NewGetAllHttpHandler(db *psql.Store, c figmentclient.Client) *getAllHttpHandler

func NewGetAllUseCase added in v0.2.0

func NewGetAllUseCase(db *psql.Store) *getAllUseCase

func NewGetForAddressHttpHandler

func NewGetForAddressHttpHandler(db *psql.Store, c figmentclient.Client) *getForAddressHttpHandler

func NewGetForAddressUseCase

func NewGetForAddressUseCase(db *psql.Store) *getForAddressUseCase

Types

type GetAllRequest added in v0.2.0

type GetAllRequest struct {
	Page  uint `form:"page" binding:"required"`
	Limit uint `form:"limit" binding:"required"`
}

type GetForAddressRequest

type GetForAddressRequest struct {
	Address string                 `uri:"address" binding:"required"`
	After   *int64                 `form:"after" binding:"-"`
	Kind    *model.SystemEventKind `form:"kind" binding:"-"`
}

type ListItem

type ListItem struct {
	*model.ModelWithTimestamps

	Height int64       `json:"height"`
	Time   types.Time  `json:"time"`
	Actor  string      `json:"actor"`
	Kind   string      `json:"kind"`
	Data   types.Jsonb `json:"data"`
}

type ListView

type ListView struct {
	Items []ListItem `json:"items"`
}

func ToListView

func ToListView(validators []model.SystemEvent) *ListView

Jump to

Keyboard shortcuts

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