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 2 years ago
cmd/svc fix skip condition 2 years ago
contrib/systemd [fix] systemd service 2 years ago
pkg [feat] add cron type job 2 years ago
.drone.yml modify drone config 2 years ago
.gitignore [feat] add makefile 2 years ago
LICENSE Initial commit 2 years ago
Makefile [feat] remove cgo and add cmd stderr output 2 years ago [feat] modify readme 2 years ago
config.yml.sample add cron setting 2 years ago
go.mod [feat] add cron type job 2 years ago
go.sum add cron setting 2 years 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/