api

package
v0.0.0-...-0945bf5 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Link struct {
	Title string
	Tag   string
}

type Page

type Page struct {
	// BaseUrl string
	Title_  string
	Content string
	Links   []Link

	Sbox *Scrapbox
	// contains filtered or unexported fields
}

func MakePage

func MakePage(s *Scrapbox, title string) Page

func (Page) Description

func (p Page) Description() string

func (Page) FilterValue

func (p Page) FilterValue() string
func (p Page) GetNhopLinks() ([]Link, error)

func (*Page) Read

func (p *Page) Read(mainColor lipgloss.Color) (*Page, error)

func (Page) Title

func (p Page) Title() string

type Paginate

type Paginate struct {
	Skip  int
	Limit int
}

type Scrapbox

type Scrapbox struct {
	Project  string
	Pages    []Page
	Paginate Paginate
}

** struct **

func (*Scrapbox) Read

func (s *Scrapbox) Read() []Page

func (*Scrapbox) Write

func (s *Scrapbox) Write(title string, body string)

Jump to

Keyboard shortcuts

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