noteslib

package module
v0.0.0-...-3fe7615 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

README

noteslib

Backend for Notes clients

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(title string, body string, newColor string, serverAddress string, username string, password string, templateNote Note) (err error)

func DecodeColorInt

func DecodeColorInt(color int64) (r int64, g int64, b int64, a int64)

func Del

func Del(serverAddress string, username string, uuid string, db *sql.DB) (err error)

func EncodeToColorInt

func EncodeToColorInt(r int64, g int64, b int64, a int64) int64

func Fetch

func Fetch(serverAddress string, username string) (jsonBody [][2]string, err error)

func List

func List(password string, jsonBody [2]string, notes *[]Note, wg *sync.WaitGroup) (err error)

func Load

func Load(db *sql.DB) (notes [][2]string, err error)

Types

type Note

type Note struct {
	Body  string `json:"body"`
	Color int64  `json:"color"`
	Date  string `json:"date"`
	ID    string `json:"id"`
	Title string `json:"title"`
}

Jump to

Keyboard shortcuts

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