85 lines
1.7 KiB
Go
85 lines
1.7 KiB
Go
package cfg
|
|
|
|
import (
|
|
"github.com/integration-system/isp-lib/v2/config/schema"
|
|
"github.com/integration-system/isp-lib/v2/structure"
|
|
"time"
|
|
)
|
|
|
|
type getModuleByUuidAndNameRequest struct {
|
|
ModuleName string
|
|
Uuid string
|
|
}
|
|
|
|
type getSchemaByModuleIdRequest struct {
|
|
ModuleId string
|
|
}
|
|
|
|
type Config struct {
|
|
Id string
|
|
Name string
|
|
CommonConfigs []string
|
|
Description string
|
|
ModuleId string
|
|
Version int32
|
|
Active bool
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
Data map[string]interface{}
|
|
Unsafe bool
|
|
}
|
|
|
|
type CommonConfig struct {
|
|
Id string
|
|
Name string
|
|
Description string
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
Data map[string]interface{}
|
|
}
|
|
|
|
type Connection struct {
|
|
LibVersion string
|
|
Version string
|
|
Address structure.AddressConfiguration
|
|
Endpoints []structure.EndpointConfig `json:",omitempty"`
|
|
EstablishedAt time.Time
|
|
}
|
|
|
|
type ModuleInfo struct {
|
|
Id string
|
|
Name string
|
|
Active bool
|
|
CreatedAt time.Time
|
|
LastConnectedAt time.Time
|
|
LastDisconnectedAt time.Time
|
|
Configs []Config `json:",omitempty"`
|
|
ConfigSchema *schema.Schema `json:",omitempty"`
|
|
Status []Connection `json:",omitempty"`
|
|
}
|
|
|
|
type ConfigSchema struct {
|
|
Id string
|
|
Version string
|
|
ModuleId string
|
|
Schema schema.Schema
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
}
|
|
|
|
type Deleted struct {
|
|
Deleted bool
|
|
Links Links
|
|
}
|
|
|
|
type Links map[string][]string
|
|
|
|
type identityRequest struct {
|
|
Id string
|
|
}
|
|
|
|
type CompileConfigs struct {
|
|
Data map[string]interface{}
|
|
CommonConfigsIdList []string
|
|
}
|