Documentation ¶
Index ¶
- Variables
- func ParseFile(file string) (*model.Status, error)
- type JSONDB
- func (s *JSONDB) Close() error
- func (s *JSONDB) Compact(original string) error
- func (s *JSONDB) FindByRequestID(dagFile string, requestID string) (*model.StatusFile, error)
- func (s *JSONDB) Open(dagFile string, t time.Time, requestID string) error
- func (s *JSONDB) ReadStatusRecent(dagFile string, n int) []*model.StatusFile
- func (s *JSONDB) ReadStatusToday(dagFile string) (*model.Status, error)
- func (s *JSONDB) RemoveAll(dagFile string) error
- func (s *JSONDB) RemoveOld(dagFile string, retentionDays int) error
- func (s *JSONDB) Rename(oldID, newID string) error
- func (s *JSONDB) Update(dagFile, requestID string, status *model.Status) error
- func (s *JSONDB) Write(status *model.Status) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrWriterClosed = errors.New("writer is closed") ErrWriterNotOpen = errors.New("writer is not open") )
Functions ¶
Types ¶
type JSONDB ¶ added in v1.0.6
type JSONDB struct {
// contains filtered or unexported fields
}
JSONDB manages DAGs status files in local storage.
func (*JSONDB) FindByRequestID ¶ added in v1.0.6
func (*JSONDB) ReadStatusRecent ¶ added in v1.0.6
func (s *JSONDB) ReadStatusRecent(dagFile string, n int) []*model.StatusFile
func (*JSONDB) ReadStatusToday ¶ added in v1.0.6
Click to show internal directories.
Click to hide internal directories.