views

package
v0.0.0-...-b68b127 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GraphQLErrorMessage

func GraphQLErrorMessage(w http.ResponseWriter, msg []byte, error_code string, code int)

func GraphQLSmartErrorMessage

func GraphQLSmartErrorMessage(w http.ResponseWriter, msg interface{}, code int)

Types

type AuthView

type AuthView struct {
	Context *core2.HContext
}

func (*AuthView) ServeHTTP

func (authView *AuthView) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DynamicView

type DynamicView struct {
	Context *core2.HContext
}

func (*DynamicView) ServeHTTP

func (dView *DynamicView) ServeHTTP(w http.ResponseWriter, r *http.Request)

type GraphQLView

type GraphQLView struct {
	Context *core2.HContext
}

func (*GraphQLView) ServeHTTP

func (gqlView *GraphQLView) ServeHTTP(w http.ResponseWriter, r *http.Request)

type LiveView

type LiveView struct {
	Context *core2.HContext
}

func (*LiveView) ServeHTTP

func (lView *LiveView) ServeHTTP(w http.ResponseWriter, r *http.Request)

type WebSocketUpgradeView

type WebSocketUpgradeView struct {
	Context *core2.HContext
}

func (*WebSocketUpgradeView) InstallProtocolSelector

func (wsu *WebSocketUpgradeView) InstallProtocolSelector()

Any JWT token with bearer is selected as protocol This is a hack to pass jwt token using Sec-WebSocket-Protocol header

func (*WebSocketUpgradeView) ServeHTTP

func (wsu *WebSocketUpgradeView) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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