supervisor

package
v0.0.0-...-23becbe Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableSnapshot = "supervisor_snapshots"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(db *gorm.DB) *Repository

func (*Repository) SaveSnapshot

func (r *Repository) SaveSnapshot(ctx context.Context, s core.Snapshot) error

type SnapshotPersistent

type SnapshotPersistent struct {
	domain.BasePersistent
	domain.BaseEntity

	PID     string `gorm:"column:pid"`
	State   string
	Event   string
	Action  string
	Payload string
}

func NewSnapshotPersistent

func NewSnapshotPersistent(s core.Snapshot) SnapshotPersistent

Jump to

Keyboard shortcuts

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