Documentation ¶
Index ¶
- Variables
- func Init(file string) error
- type DataService
- type LayoutManager
- func (it *LayoutManager) Flush() error
- func (it *LayoutManager) Query(req *lynkapi.DataQuery) (*lynkapi.DataResult, error)
- func (it *LayoutManager) RegisterService(ds lynkapi.DataService) error
- func (it *LayoutManager) TableSpec(name string) *lynkapi.TableSpec
- func (it *LayoutManager) Upsert(req *lynkapi.DataInsert) (*lynkapi.DataResult, error)
- type TableActive
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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.