gateway

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartGateway

func StartGateway(alias string, port string)

Types

type Application

type Application struct {
	Name        string
	DataHubHome string // datahub storing application definition
	DataSetName string // dataset storing application definition
}

type Catalog

type Catalog struct {
	DatahubHome   string   // relates to one of the datahubs listed above
	ModelDatasets []string // list of the datasets in the hub that contain data models
}

type Config

type Config struct {
	DataHubs []*DataHub
	Services []*Service
}

type DataHub

type DataHub struct {
	Name       string
	Endpoint   string
	ClientId   string
	PrivateKey string
	PublicKey  string
}

type DatasetItemView

type DatasetItemView struct {
	Id   string
	Name string
}

type EntityListItemView

type EntityListItemView struct {
	Id       string
	Deleted  bool
	Recorded string
}

type EntityListView

type EntityListView struct {
	Items             []EntityListItemView
	ContinuationToken string
	DatasetId         string
}

type EntityRef

type EntityRef struct {
	URI   string
	Label string
}

type EntityTable

type EntityTable struct {
	Rows []*Row
}

type EntityTableView

type EntityTableView struct {
	EntityId    string
	EntityTable *EntityTable
}

type Row

type Row struct {
	Values [][]*Value
}

type Service

type Service struct {
	Name       string
	Endpoint   string
	ClientId   string
	PrivateKey string
	PublicKey  string
}

type Table

type Table struct {
	Headers []*EntityRef
	Rows    []*Row
}

type TableView

type TableView struct {
	DatasetId         string
	Table             *Table
	ContinuationToken string
}

type TemplateRenderer

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

func (*TemplateRenderer) Render

func (t *TemplateRenderer) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Render renders a template document

type Value

type Value struct {
	IsRef bool
	Label string
	Value string
	URI   string
}

Jump to

Keyboard shortcuts

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