Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
gorm.Model
EngineID string `gorm:"uniqueIndex"`
TenantID string `gorm:"index"`
// PodName is name of the pods where the engine is connecting to.
PodName string
// PodIP is the IP address of the pods where the engine is connecting to.
PodIP string
// Status is a marshaled data of the EngineStatus proto message.
Status []byte
IsReady bool
// LastStatusUpdatedAt is the Unix nanoseconds when the status was updated last time.
LastStatusUpdatedAt int64
}
Engine models the engine.
type S ¶
type S struct {
// contains filtered or unexported fields
}
S represents the data store.
func (*S) AutoMigrate ¶
AutoMigrate sets up the auto-migration task of the database.
func (*S) CreateOrUpdateEngine ¶
CreateOrUpdateEngine creates or updates the engine.
func (*S) DeleteEngine ¶
DeleteEngine deletes the engine of the ID.
Click to show internal directories.
Click to hide internal directories.