model

package
v0.12.10 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnInterface

type ConnInterface interface {
	LoadConfig(config interface{}) error
	Init() error
	Stop()
	GetConnection() interface{}
	GetState() string
}

type Constructor

type Constructor func(name string, config interface{}) ConnInterface

type Instance

type Instance struct {
	ID         string
	Name       string        // name of the instance
	Plugin     string        // name of connector
	Connection ConnInterface `json:"-"`
	Config     interface{}
}

type InstanceView

type InstanceView struct {
	ID     string
	Name   string // name of the instance
	Plugin string // name of connector
	State  string
	Config interface{}
}

type Plugin

type Plugin struct {
	Constructor Constructor `json:"-"`
	Config      interface{}
}

Jump to

Keyboard shortcuts

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