Documentation ¶
Overview ¶
Index ¶
- Constants
- func Bool(v bool) *bool
- type Client
- type Driver
- type DriverImpl
- func (dri *DriverImpl) Comment(newCommentBody *model.NewCommentBody, postNum int) (string, error)
- func (dri *DriverImpl) Delete(postNum int) error
- func (dri *DriverImpl) Get(path string) (*model.Post, error)
- func (dri *DriverImpl) GetFromPageNum(pageNum int) (*model.Post, error)
- func (dri *DriverImpl) GetStats() (*model.Stats, error)
- func (dri *DriverImpl) GetTags(pageNum int) (*model.Tags, bool, error)
- func (dri *DriverImpl) List(path string, pageNum int, recursive bool) ([]*model.Post, bool, error)
- func (dri *DriverImpl) ListOrTagSearch(path string, pageNum int, recursive bool) ([]*model.Post, bool, error)
- func (dri *DriverImpl) Move(movePostBody *model.MovePostBody, postNum int, notice bool) error
- func (dri *DriverImpl) MoveCategory(from string, to string) error
- func (dri *DriverImpl) Post(newPostBody *model.NewPostBody, postNum int, notice bool) (string, error)
- func (dri *DriverImpl) Search(queryString string, pageNum int) ([]*model.Post, bool, error)
- func (dri *DriverImpl) Tag(tagPostBody *model.TagPostBody, postNum int, notice bool) error
- func (dri *DriverImpl) Wip(wipPostBody *model.WipPostBody, postNum int, notice bool) error
Constants ¶
View Source
const ( MaxPerPage = 50 TagsMaxPerPage = 1000 SkipNoticeMessage = "[skip notice]" )
View Source
const (
Endpoint = "api.esa.io"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
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 (*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) ListOrTagSearch ¶ added in v0.2.1
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) 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
Click to show internal directories.
Click to hide internal directories.