http

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InteractionResponsePongJSON is the JSON representation of a discordgo.InteractionResponsePong
	InteractionResponsePongJSON = `{"type":1}`
	// InteractionResponseDeferredChannelMessageWithSourceJSON is the JSON representation of a discordgo.InteractionResponseDeferredChannelMessageWithSource
	InteractionResponseDeferredChannelMessageWithSourceJSON = `{"type":5}`
)
View Source
const (
	MissingHandlerMessage = "**Error**: Unknown command"
	MissingServiceMessage = "**Error**: Failed to get service address"
	ForwardFailedMessage  = "**Error**: Failed to forward request"
	UpstreamErrorMessage  = "**Error**: Upstream server returned error `%d`: `%s`"
)

Variables

This section is empty.

Functions

func HandleHTTP

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

func Init

func Init(stop chan struct{}, cleanupGroup *sync.WaitGroup)

Types

This section is empty.

Jump to

Keyboard shortcuts

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