esa

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

cf. https://docs.esa.io/posts/102

Index

Constants

View Source
const (
	MaxPerPage        = 50
	TagsMaxPerPage    = 1000
	SkipNoticeMessage = "[skip notice]"
)
View Source
const (
	Endpoint = "api.esa.io"
)

Variables

This section is empty.

Functions

func Bool added in v0.3.1

func Bool(v bool) *bool

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

type Driver

type Driver interface {
	Get(string) (*model.Post, error)
	GetFromPageNum(int) (*model.Post, error)
	List(string, int, bool) ([]*model.Post, bool, error)
	Search(string, int) ([]*model.Post, bool, error)
	ListOrTagSearch(string, int, bool) ([]*model.Post, bool, error)
	Post(*model.NewPostBody, int, bool) (string, error)
	Move(*model.MovePostBody, int, bool) error
	MoveCategory(string, string) error
	Delete(int) error
	Tag(*model.TagPostBody, int, bool) error
	Comment(*model.NewCommentBody, int) (string, error)
	GetTags(int) (*model.Tags, bool, error)
	GetStats() (*model.Stats, error)
	Wip(*model.WipPostBody, int, bool) error
}

type DriverImpl added in v0.2.1

type DriverImpl struct {
	// contains filtered or unexported fields
}

func NewDriver

func NewDriver(team string, token string, debug bool, version string) *DriverImpl

func (*DriverImpl) Comment added in v0.8.0

func (dri *DriverImpl) Comment(newCommentBody *model.NewCommentBody, postNum int) (string, error)

func (*DriverImpl) Delete added in v0.2.1

func (dri *DriverImpl) Delete(postNum int) error

func (*DriverImpl) Get added in v0.2.1

func (dri *DriverImpl) Get(path string) (*model.Post, error)

func (*DriverImpl) GetFromPageNum added in v0.2.1

func (dri *DriverImpl) GetFromPageNum(pageNum int) (*model.Post, error)

func (*DriverImpl) GetStats added in v0.9.10

func (dri *DriverImpl) GetStats() (*model.Stats, error)

func (*DriverImpl) GetTags added in v0.9.9

func (dri *DriverImpl) GetTags(pageNum int) (*model.Tags, bool, error)

func (*DriverImpl) List added in v0.2.1

func (dri *DriverImpl) List(path string, pageNum int, recursive bool) ([]*model.Post, bool, error)

func (*DriverImpl) ListOrTagSearch added in v0.2.1

func (dri *DriverImpl) ListOrTagSearch(path string, pageNum int, recursive bool) ([]*model.Post, bool, error)

func (*DriverImpl) Move added in v0.2.1

func (dri *DriverImpl) Move(movePostBody *model.MovePostBody, postNum int, notice bool) error

func (*DriverImpl) MoveCategory added in v0.2.1

func (dri *DriverImpl) MoveCategory(from string, to string) error

func (*DriverImpl) Post added in v0.2.1

func (dri *DriverImpl) Post(newPostBody *model.NewPostBody, postNum int, notice bool) (string, error)

func (*DriverImpl) Search added in v0.2.1

func (dri *DriverImpl) Search(queryString string, pageNum int) ([]*model.Post, bool, error)

func (*DriverImpl) Tag added in v0.4.2

func (dri *DriverImpl) Tag(tagPostBody *model.TagPostBody, postNum int, notice bool) error

func (*DriverImpl) Wip added in v1.5.0

func (dri *DriverImpl) Wip(wipPostBody *model.WipPostBody, postNum int, notice bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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