toolsgo

package module
v0.0.0-...-63b2792 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 9 Imported by: 0

README

toolsgo

介绍

个人go项目依赖文件

软件架构

软件架构说明

安装教程
  1. xxxx
  2. xxxx
  3. xxxx
使用说明
  1. xxxx
  2. xxxx
  3. xxxx
参与贡献
  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request
码云特技
  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. 码云官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解码云上的优秀开源项目
  4. GVP 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
  5. 码云官方提供的使用手册 https://gitee.com/help
  6. 码云封面人物是一档用来展示码云会员风采的栏目 https://gitee.com/gitee-stars/

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GET_METHOD    = "GET"
	POST_METHOD   = "POST"
	SENDTYPE_FROM = "from"
	SENDTYPE_JSON = "json"
)

Functions

func GetUrlBuild

func GetUrlBuild(link string, data map[string]string) string

Types

type Book

type Book struct {
	Name   string
	Author string
	BookID string
	Source string
	Status string
}

type Chapter

type Chapter struct {
	Name      string
	ChapterID string
}

type DownloadHandler

type DownloadHandler interface {
	Download(chapter string) string
}

type ExportHandler

type ExportHandler interface {
	ExportTxt(ids string) string
}

type HttpSend

type HttpSend struct {
	Link     string
	SendType string
	Header   map[string]string
	Body     map[string]string
	sync.RWMutex
}

func NewHttpSend

func NewHttpSend(link string) *HttpSend

func (*HttpSend) Get

func (h *HttpSend) Get() ([]byte, error)

func (*HttpSend) Post

func (h *HttpSend) Post() ([]byte, error)

func (*HttpSend) SetBody

func (h *HttpSend) SetBody(body map[string]string)

func (*HttpSend) SetHeader

func (h *HttpSend) SetHeader(header map[string]string)

func (*HttpSend) SetSendType

func (h *HttpSend) SetSendType(send_type string)

type ListHandler

type ListHandler interface {
	GetList(bookid string) []Chapter
}

type SearchHandler

type SearchHandler interface {
	Search(keywords string) []Book
}

Jump to

Keyboard shortcuts

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