Documentation ¶
Index ¶
- func Migrate(db *gorm.DB, logger process.Logger) error
- type GormStore
- func (s *GormStore) GetProcess(ctx context.Context, id string) (process.Process, error)
- func (s *GormStore) ListProcesses(ctx context.Context, query process.Process) ([]process.Process, error)
- func (s *GormStore) LogProcess(ctx context.Context, p process.Process) error
- func (s *GormStore) LogProcessEvent(ctx context.Context, p process.ProcessEvent) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GormStore ¶
type GormStore struct {
// contains filtered or unexported fields
}
GormStore is a notification store using Gorm for data persistence.
func (*GormStore) GetProcess ¶
GetProcess returns the list of active processes.
func (*GormStore) ListProcesses ¶
func (s *GormStore) ListProcesses(ctx context.Context, query process.Process) ([]process.Process, error)
ListProcesses returns the list of active processes.
func (*GormStore) LogProcess ¶
LogProcess logs a process entry
func (*GormStore) LogProcessEvent ¶
LogProcessEvent logs a process event
Click to show internal directories.
Click to hide internal directories.