Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) AddTask(listID string, task todo.Task) error
- func (c *Client) GetList(id string) (*todo.List, error)
- func (c *Client) GetNewID() primitive.ObjectID
- func (c *Client) SaveList(list *todo.List) error
- func (c *Client) SetClient(mongoClient *mongo.Client)
- func (c *Client) SetDatabase(db *mongo.Database)
- func (c *Client) TaskDone(listID string, taskID string, done bool) error
Constants ¶
View Source
const COLLECTION_LIST string = "list"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SetDatabase ¶
Click to show internal directories.
Click to hide internal directories.