apiserver

package
v0.0.0-...-816e526 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RootHandler

func RootHandler(w http.ResponseWriter, r *http.Request)

func RunServer

func RunServer(ctx context.Context, opts *Options) error

func WebhookHandlerWrapper

func WebhookHandlerWrapper(addr, token string) func(w http.ResponseWriter, r *http.Request)

Types

type Options

type Options struct {
	Port         int
	NomadAddress string
	NomadToken   string

	Log *logrus.Entry
}

Jump to

Keyboard shortcuts

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