controller

package
v0.0.0-...-7a1e884 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HabiticaBaseURL string = "https://habitica.com/api/v3/"
	// AppID is the unique app id for this app
	AppID           string    = "b0fbabc9-32be-49c7-8b3e-f05578f61388-Todoist-Habitica-Task-Redeemer"
	ItemCompleted   EventName = "item:completed"
	ItemUncompleted EventName = "item:uncompleted"
)

Variables

This section is empty.

Functions

Types

type EventData

type EventData struct {
	ID      string `json:"id"`
	Content string `json:"content"`
}

type EventName

type EventName string

type HabiticaResponse

type HabiticaResponse struct {
	Success bool        `json:"success"`
	Data    interface{} `json:"data"`
}

type HabiticaTask

type HabiticaTask struct {
	ID   string `json:"id"`
	Text string `json:"text"`
}

type TodoistEvent

type TodoistEvent struct {
	EventName EventName `json:"event_name"`
	UserID    string    `json:"user_id"`
	EventData EventData `json:"event_data"`
}

Jump to

Keyboard shortcuts

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