frozen_throne_server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(next http.Handler) http.Handler

func DefaultHandler

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

func FreezeHandler

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

func Main

func Main()

func ThawHandler added in v1.1.0

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

func WebhookHandler

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

Types

type Config

type Config struct {
	WebhookSecret       string `envconfig:"WEBHOOK_SECRET" required:"true"`
	GithubAppID         int64  `envconfig:"GITHUB_APP_ID" required:"true"`
	GithubAppPrivateKey string `envconfig:"GITHUB_APP_PRIVATE_KEY" required:"true"`
}

type StatusResponse

type StatusResponse struct {
	Frozen bool  `json:"frozen"`
	Error  error `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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