Files
isp-config-service/domain/response.go
T
2024-05-08 18:45:21 +03:00

61 lines
1.1 KiB
Go

package domain
import (
"time"
"github.com/txix-open/isp-kit/cluster"
"github.com/txix-open/isp-kit/json"
)
type DeleteResponse struct {
Deleted int
}
type ModuleInfo struct {
Id string
Name string
Active bool
LastConnectedAt *time.Time
LastDisconnectedAt *time.Time
ConfigSchema json.RawMessage
Status []Connection
CreatedAt time.Time
}
type Connection struct {
LibVersion string
Version string
Address cluster.AddressConfiguration
Endpoints []cluster.EndpointDescriptor
EstablishedAt time.Time
}
type Config struct {
Id string
Name string
ModuleId string
Valid bool
Data json.RawMessage
Version int
Active bool
CreatedAt time.Time
UpdatedAt time.Time
}
type ConfigVersion struct {
Id string
ConfigId string
ConfigVersion int
Data json.RawMessage
CreatedAt time.Time
}
type ConfigSchema struct {
Id string
Version string
ModuleId string
Schema json.RawMessage
CreatedAt time.Time
UpdatedAt time.Time
}