Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectionMoney ¶
func CollectionMoney(ctx context.Context) (*mongo.Collection, error)
func CollectionTime ¶ added in v1.2.0
func CollectionTime(ctx context.Context) (*mongo.Collection, error)
func CollectionTodo ¶ added in v1.0.5
func CollectionTodo(ctx context.Context) (*mongo.Collection, error)
Types ¶
type Money ¶
type Money struct { ID primitive.ObjectID `bson:"_id" json:"id"` Amount string `bson:"amount" json:"amount"` Partner string `bson:"partner" json:"partner"` Currency string `bson:"currency" json:"currency"` Description string `bson:"description" json:"description"` Group *MoneyGroup `bson:"group,omitempty" json:"group,omitempty"` Created time.Time `bson:"created" json:"created"` }
type MoneyGroup ¶
type Todo ¶ added in v1.0.5
type Todo struct { ID primitive.ObjectID `bson:"_id" json:"id"` Group string `bson:"group" json:"group"` Description string `bson:"description" json:"description"` Priority string `bson:"priority" json:"priority"` Deadline *time.Time `bson:"deadline,omitempty" json:"deadline,omitempty"` FinishedAt *time.Time `bson:"finishedAt,omitempty" json:"finishedAt,omitempty"` Finished bool `bson:"finished" json:"finished"` Created time.Time `bson:"created" json:"created"` }
Click to show internal directories.
Click to hide internal directories.