Documentation ¶
Index ¶
- Constants
- Variables
- func PullHandler() echo.HandlerFunc
- func PushAction() (err error)
- func RegPull() error
- type Config
- type Pull
- type Push
- type RequestFunc
- type Requester
- func (r *Requester) Option() *grequests.RequestOptions
- func (r *Requester) Request(method int) (err error)
- func (r *Requester) RequestFunc() RequestFunc
- func (r *Requester) SetOption(option *grequests.RequestOptions)
- func (r *Requester) SetRequestFunc(requestFunc RequestFunc)
- func (r *Requester) SetUrl(url string)
- func (r *Requester) Url() string
- type RequestsDoFunc
- type Soft
Constants ¶
View Source
const ( UserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" GET int = iota POST PUT DELETE )
Variables ¶
Functions ¶
func PullHandler ¶
func PullHandler() echo.HandlerFunc
func PushAction ¶
func PushAction() (err error)
Types ¶
type Config ¶
type RequestFunc ¶
type Requester ¶
type Requester struct {
// contains filtered or unexported fields
}
func NewRequester ¶
func NewRequester() *Requester
func (*Requester) Option ¶
func (r *Requester) Option() *grequests.RequestOptions
func (*Requester) RequestFunc ¶
func (r *Requester) RequestFunc() RequestFunc
func (*Requester) SetOption ¶
func (r *Requester) SetOption(option *grequests.RequestOptions)
func (*Requester) SetRequestFunc ¶
func (r *Requester) SetRequestFunc(requestFunc RequestFunc)
type RequestsDoFunc ¶
Click to show internal directories.
Click to hide internal directories.