views

package
v0.16.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTableViewRoutes

func RegisterTableViewRoutes(r *gin.RouterGroup, db *sqlx.DB)

Types

type Filter added in v0.10.3

type Filter struct {
	FuncName  string      `json:"funcName,omitempty"`
	Key       string      `json:"key,omitempty"`
	Parameter interface{} `json:"parameter,omitempty"`
	Category  string      `json:"category,omitempty"`
}

TODO: delete when tables are switched to v2

type FilterClauses added in v0.10.3

type FilterClauses struct {
	And    []FilterClauses `json:"$and,omitempty"`
	Or     []FilterClauses `json:"$or,omitempty"`
	Filter *Filter         `json:"$filter,omitempty"`
}

TODO: delete when tables are switched to v2

type NewTableView

type NewTableView struct {
	View types.JSONText `json:"view" db:"view"`
	Page string         `json:"page" db:"page"`
}

type TableView

type TableView struct {
	Id        int            `json:"id" db:"id"`
	View      types.JSONText `json:"view" db:"view"`
	Page      string         `json:"page" db:"page"`
	ViewOrder *int32         `json:"viewOrder" db:"view_order"`
	Version   string         `json:"version" db:"version"`
}

type TableViewDetail added in v0.10.3

type TableViewDetail struct {
	Title   string        `json:"title"`
	Saved   bool          `json:"saved"`
	Columns []ViewColumn  `json:"columns"`
	Page    string        `json:"page"`
	SortBy  []ViewOrder   `json:"sortBy"`
	Id      int           `json:"id"`
	Filters FilterClauses `json:"filters"`
}

TODO: delete when tables are switched to v2

type TableViewJson added in v0.10.3

type TableViewJson struct {
	Id   int             `json:"id" db:"id"`
	View TableViewDetail `json:"view" db:"view"`
}

TODO: delete when tables are switched to v2

type TableViewOrder

type TableViewOrder struct {
	Id        int `json:"id" db:"id"`
	ViewOrder int `json:"viewOrder" db:"view_order"`
}

type TableViewResponse added in v0.15.0

type TableViewResponse struct {
	Forwards []TableView `json:"forwards"`
	Channel  []TableView `json:"channel"`
	Payments []TableView `json:"payments"`
	Invoices []TableView `json:"invoices"`
	OnChain  []TableView `json:"onChain"`
}

type UpdateTableView added in v0.15.0

type UpdateTableView struct {
	Id      int            `json:"id" db:"id"`
	View    types.JSONText `json:"view" db:"view"`
	Version string         `json:"version" db:"version"`
}

type ViewColumn added in v0.10.3

type ViewColumn struct {
	Key       string `json:"key"`
	Heading   string `json:"heading"`
	Type      string `json:"type"`
	ValueType string `json:"valueType"`
}

TODO: delete when tables are switched to v2

type ViewOrder added in v0.10.3

type ViewOrder struct {
	Value     string `json:"value"`
	Direction string `json:"direction"`
	Label     string `json:"label"`
}

TODO: delete when tables are switched to v2

Jump to

Keyboard shortcuts

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