inspect

package
v0.1.51 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TablesPath      = "/tables"
	IndexesPath     = "/indexes"
	EntryFieldsPath = "/entryFields"
	QueryPath       = "/query"
)

Variables

This section is empty.

Functions

func NewInspectCLI

func NewInspectCLI(init func(path string) (Inspect, error)) *cli.Command

func NewInspectHandler

func NewInspectHandler(inspect Inspect) http.HandlerFunc

Types

type Inspect

type Inspect interface {
	Tables() ([]string, error)
	Indexes(table string) ([]string, error)
	EntryFields(table string) (map[string]string, error)

	Query(ctx context.Context, table string, index string, indexSelector map[string]interface{}, filter map[string]interface{}, limit uint64, after map[string]interface{}) ([]map[string]interface{}, error)
}

func NewInspect

func NewInspect(ti []bond.TableInfo) (Inspect, error)

func NewInspectRemote

func NewInspectRemote(url string, headers map[string]string) Inspect

Jump to

Keyboard shortcuts

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