Go to file
Jay 1577456cb6
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
[feat] add cron type job
2021-07-07 23:51:10 +08:00
cmd/svc [feat] add cron type job 2021-07-07 23:51:10 +08:00
contrib/systemd [fix] systemd service 2021-06-15 00:20:36 +08:00
pkg [feat] add cron type job 2021-07-07 23:51:10 +08:00
.drone.yml modify drone config 2021-07-02 10:33:33 +08:00
.gitignore [feat] add makefile 2021-06-13 23:08:34 +08:00
config.yml.sample add cron setting 2021-07-02 17:00:18 +08:00
go.mod [feat] add cron type job 2021-07-07 23:51:10 +08:00
go.sum add cron setting 2021-07-02 17:00:18 +08:00
LICENSE Initial commit 2021-06-13 11:36:49 +00:00
Makefile [feat] remove cgo and add cmd stderr output 2021-06-14 22:58:39 +08:00
README.md [feat] add readme 2021-06-13 23:03:52 +08:00

auto-deploy-service

Config struct

server:
  port: 10230 # server listen port
listens:
  - http:
      method: get # http method only support get and post
      path: /test # http register path
      headers: # header check map[string]string 
        x-validate-key: '123'
      script: /tmp/run.sh # script location required execute permission
  - http:
      method: post
      path: /test-post
      headers: {}
      script: /tmp/run.sh