Documentation ¶
Index ¶
- Variables
- func CreateAll(ctx context.Context, userId string, weeks int, dailyOvertime int, ...) error
- func Delete(store store.Store) http.HandlerFunc
- func Get(store store.Store) http.HandlerFunc
- func InRange(store store.Store) http.HandlerFunc
- func Repeat(store store.Store) http.HandlerFunc
- func Running(store store.Store) http.HandlerFunc
- func Start(store store.Store) http.HandlerFunc
- func Stop(store store.Store) http.HandlerFunc
- func Tags(store store.Store) http.HandlerFunc
- func Update(store store.Store) http.HandlerFunc
- type Activity
Constants ¶
This section is empty.
Variables ¶
View Source
var Collection store.CollectionName = "activities"
Functions ¶
Types ¶
type Activity ¶
type Activity struct { Id primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"` UserId string `json:"userId,omitempty" bson:"userId,omitempty"` Name string `json:"name,omitempty" bson:"name,omitempty"` Start time.Time `json:"start,omitempty" bson:"start,omitempty"` End *time.Time `json:"end,omitempty" bson:"end,omitempty"` Tags []string `json:"tags,omitempty" bson:"tags,omitempty"` }
func NewWithStart ¶
func NewWithStartAndEnd ¶
func (*Activity) SetObjectId ¶
Click to show internal directories.
Click to hide internal directories.