Documentation
¶
Index ¶
Constants ¶
View Source
const OverwriteJournal = "dutyRosterOverwrites"
OverwriteJournal is used to keep track of emergency-duty-overwrites.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { // CreateOverwrite configures an emergency doctor-on-duty overwrite for the // given date. CreateOverwrite(ctx context.Context, creatorId string, from, to time.Time, user, phone, displayName string) (structs.Overwrite, error) // GetOverwrite returns the currently active overwrite for the given date/time. GetActiveOverwrite(ctx context.Context, date time.Time) (*structs.Overwrite, error) // GetOverwrite returns a single overwrite identified by id. Even entries that are marked as deleted // will be returned. GetOverwrite(ctx context.Context, id string) (*structs.Overwrite, error) // GetOverwrites returns all overwrites that have start or time between from and to. GetOverwrites(ctx context.Context, from, to time.Time, includeDeleted bool) ([]*structs.Overwrite, error) // DeleteOverwrite deletes the roster overwrite for the given // day. DeleteActiveOverwrite(ctx context.Context, date time.Time) error // DeleteOverwrite deletes the roster overwrite with the given ID DeleteOverwrite(ctx context.Context, id string) error }
Database is the database interface for the duty rosters.
Click to show internal directories.
Click to hide internal directories.