server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DINGDING_ALERT_NAME = "dingding"

Variables

This section is empty.

Functions

func Authorizer

func Authorizer(req *http.Request) (string, bool, error)

func Start

func Start(ctx context.Context, cfg *Config) error

Types

type Config

type Config struct {
	Debug   bool          `default:"false" desc:"enable debug logging"`
	Timeout time.Duration `default:"60s" desc:"default timeout"`
	Listen  string        `default:":8088" desc:"listen address"`
}

Jump to

Keyboard shortcuts

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