config

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version     = "v1.5.0"
	Author      = "barry"
	Email       = "freeit@126.com"
	Name        = "github-webhook"
	Copyright   = "@2020 github.com/yezihack/github-webhook"
	Usage       = "This is a github web hooks tools"
	DefaultPort = 2020
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ScriptBash string // script bash path
	Port       int
	Secret     string // secret
	Quiet      bool   // only print info, errors
	Verbose    bool   // print verbose
}

func New

func New(scriptBash, secret string, port int, quiet, verbose bool) (cfg Config, err error)

Jump to

Keyboard shortcuts

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