support

package
v0.0.0-...-d606b87 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Supports = make(map[string]AutoRun, 0)

支持的类型

Functions

func GeekhubYamlKey

func GeekhubYamlKey() string

func GetAppleTuanYaml

func GetAppleTuanYaml() map[string]string

func GetAppleTuanYamlKey

func GetAppleTuanYamlKey() string

func GetChinaGYamlKey

func GetChinaGYamlKey() string

func GetGeekhubYaml

func GetGeekhubYaml() map[string]string

GetGeekhubYaml 获取Geekhub yaml配置

func GetLd246YamlKey

func GetLd246YamlKey() string

func GetPagodaWxMiniYamlKey

func GetPagodaWxMiniYamlKey() string

func GetV2exYamlKey

func GetV2exYamlKey() string

func Register

func Register(cronName string, support AutoRun)

Register 将支持的类型进行注册

Types

type AppleTuan

type AppleTuan struct {
	Support
}

func (AppleTuan) DoRun

func (tuan AppleTuan) DoRun() error

type AutoRun

type AutoRun interface {
	Run()
}

AutoRun 用于继承Cron

type ChinaG

type ChinaG struct {
	Support
}

func (ChinaG) DoRun

func (g ChinaG) DoRun() error

type Famijia

type Famijia struct {
	Support
}

func (Famijia) DoRun

func (f Famijia) DoRun() error

type Geekhub

type Geekhub struct {
	Support
}

Geekhub 支持Geekhub

func (Geekhub) DoRun

func (g Geekhub) DoRun() error

DoRun 开始签到

type ISupport

type ISupport interface {
	DoRun() error
}

ISupport 实际签到

type Ld246

type Ld246 struct {
	Support
}

func (Ld246) DoRun

func (ld Ld246) DoRun() error

type PagodaWxMini

type PagodaWxMini struct {
	Support
}

func (PagodaWxMini) DoRun

func (m PagodaWxMini) DoRun() error

type PagodaWxMiniYamlJson

type PagodaWxMiniYamlJson struct {
	Url     string            `json:"url"`
	Headers map[string]string `json:"headers"`
}

func GetPagodaWxMiniYaml

func GetPagodaWxMiniYaml() PagodaWxMiniYamlJson

type Support

type Support struct {
	Name string
	// AutoRun Cron调用
	AutoRun
	// ISupport 后置
	// 需要注册
	// hub := Geekhub{}
	//	hub.ISupport = hub
	ISupport
}

Support 支持的类型 承上启下作用

func (Support) Run

func (s Support) Run()

Run Cron执行

type V2ex

type V2ex struct {
	Support
}

func (V2ex) DoRun

func (v V2ex) DoRun() error

Jump to

Keyboard shortcuts

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