You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jay f3e1b37b2d Merge pull request 'develop' (#7) from develop into master 1 year ago
cmd/svc fix skip condition 1 year ago
contrib/systemd [fix] systemd service 1 year ago
pkg [feat] add cron type job 1 year ago
.drone.yml modify drone config 1 year ago
.gitignore [feat] add makefile 1 year ago
LICENSE Initial commit 1 year ago
Makefile [feat] remove cgo and add cmd stderr output 1 year ago [feat] modify readme 1 year ago
config.yml.sample add cron setting 1 year ago
go.mod [feat] add cron type job 1 year ago
go.sum add cron setting 1 year ago


Config struct

  port: 10230 # server listen port
  - 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/ # script location required execute permission
  - http:
      method: post
      path: /test-post
      headers: {}
      script: /tmp/

# cron job setting
  - cron_time: '* * * * *'
    script: /tmp/