data

package
v0.0.0-...-631bc89 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Layout = &LayoutManager{
	tables:    map[string]*lynkui.DataLayout_VirtualTable{},
	instances: map[string]*lynkapi.DataInstance{},
	services:  map[string]lynkapi.DataService{},
	clients:   map[string]lynkapi.Client{},
}

Functions

func Init

func Init(file string) error

Types

type DataService

type DataService interface {
	Query(req *lynkapi.DataQuery) (*lynkapi.DataResult, error)
	Upsert(req *lynkapi.DataInsert) (*lynkapi.DataResult, error)
}

type LayoutManager

type LayoutManager struct {
	// contains filtered or unexported fields
}

func (*LayoutManager) Flush

func (it *LayoutManager) Flush() error

func (*LayoutManager) Query

func (it *LayoutManager) Query(req *lynkapi.DataQuery) (*lynkapi.DataResult, error)

func (*LayoutManager) RegisterService

func (it *LayoutManager) RegisterService(ds lynkapi.DataService) error

func (*LayoutManager) TableSpec

func (it *LayoutManager) TableSpec(name string) *lynkapi.TableSpec

func (*LayoutManager) Upsert

func (it *LayoutManager) Upsert(req *lynkapi.DataInsert) (*lynkapi.DataResult, error)

type TableActive

type TableActive struct {
	Spec *lynkapi.TableSpec
}

Jump to

Keyboard shortcuts

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