Documentation ¶
Index ¶
- Variables
- func AddInstanceObserver(key string, observers string) error
- func InsertFactory(f Factory) error
- func InsertInstance(i Instance) error
- func InsertServiceRegistry(s ServiceRegistry) error
- func UpdateFactory(key string, f Factory) error
- func UpdateInstance(i Instance) error
- func UpdateServiceRegistry(key string, s ServiceRegistry) error
- type Factory
- type Instance
- type ServiceRegistry
Constants ¶
This section is empty.
Variables ¶
View Source
var SqliteConn *gorm.DB
Functions ¶
func AddInstanceObserver ¶
func InsertFactory ¶
func InsertInstance ¶
func InsertServiceRegistry ¶
func InsertServiceRegistry(s ServiceRegistry) error
func UpdateFactory ¶
func UpdateInstance ¶
func UpdateServiceRegistry ¶
func UpdateServiceRegistry(key string, s ServiceRegistry) error
Types ¶
type Factory ¶
type Factory struct { Key string `gorm:"primary_key"` Name string Subject string Description string ContextDataSchema string ResultDataSchema string Expiration int64 Language string Definition string }
func GetFactory ¶
func ListFactories ¶
type Instance ¶
type Instance struct { Key string `gorm:"primary_key"` State int Name string Subject string Description string FactoryKey string Observers string // use `|` to split different observers ContextData string ResultData string History string }
func GetInstance ¶
func ListInstances ¶
type ServiceRegistry ¶
type ServiceRegistry struct { Key string Name string Description string Version string Status string }
func GetServiceRegistry ¶
func GetServiceRegistry(key string) (ServiceRegistry, error)
Click to show internal directories.
Click to hide internal directories.