Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NameRegex = regexp.MustCompile(`^[a-zA-Z0-9-_]+$`) UnixEpoch = time.Unix(0, 0) ErrAlreadyCommitted = errors.New("already committed") )
Functions ¶
func CheckAndSetDefaults ¶
Types ¶
type Aborter ¶
type Aborter interface {
Abort() error
}
Aborter is the interface that wraps the basic Abort method.
Abort may return an error if the operation cannot be aborted.
type Committer ¶
type Committer interface {
Commit() error
}
Committer is the interface that wraps the basic Commit method.
Commit may return an error if the operation cannot be committed.
type ExecCtx ¶
type ExecCtx interface {
Logger() *zap.SugaredLogger
}
type File ¶
type File interface { Name() string AcquireReader() (FileReader, error) AcquireWriter(inPlace bool) (FileWriter, error) }
type FileReader ¶
Click to show internal directories.
Click to hide internal directories.