api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SpinnerSymbol int = 14
)
View Source
var (
	Timeout time.Duration = 3 * time.Second
)

Functions

This section is empty.

Types

type Page

type Page struct {
	Info      crowi.PageInfo
	LocalPath string
	Client    *crowi.Client
}

func NewPage

func NewPage(client *crowi.Client) *Page

func (Page) Attach

func (page Page) Attach(id, file string) (*crowi.Attachment, error)

func (Page) Create

func (page Page) Create(path, body string) (*crowi.Page, error)

func (Page) Images

func (page Page) Images(id string) (*crowi.Attachments, error)

func (Page) Sync

func (page Page) Sync() (err error)

func (Page) Update

func (page Page) Update(id, body string) (res *crowi.Page, err error)

type Spinner

type Spinner struct {
	*spinner.Spinner

	Text string
}

func NewSpinner

func NewSpinner(text string) *Spinner

func (*Spinner) Start

func (s *Spinner) Start()

func (*Spinner) Stop

func (s *Spinner) Stop()

Jump to

Keyboard shortcuts

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