models

package
v0.0.0-...-12890be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectedTask

type ConnectedTask struct {
	TasksId      string
	TaskUpdate   *time.Time
	NotionId     string
	NotionUpdate *time.Time
	ConnectionId string
}

type Connection

type Connection struct {
	NotionDatabaseId string
	TasksListId      string
}

type Service

type Service interface {
	Insert(connectionId string, details *TaskDetails) (string, *time.Time, error)
	Update(connectionId string, id string, details *TaskDetails) (*time.Time, error)
	GetTaskDetails(connectionId string, id string) (*TaskDetails, *time.Time, error)
	GetConnectedTaskById(id string) (*ConnectedTask, error)
}

type TaskDetails

type TaskDetails struct {
	Title   string
	DueDate *time.Time
	Done    bool
	Notes   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL