ginapp

package
v0.0.0-...-786594a Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 33 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandlers

type AuthHandlers struct {
	*GinApp
	// contains filtered or unexported fields
}

func (*AuthHandlers) LoginPOST

func (app *AuthHandlers) LoginPOST(c *gin.Context)

Login endpoint

func (*AuthHandlers) LogoutPOST

func (app *AuthHandlers) LogoutPOST(c *gin.Context)

Logout endpoint

func (*AuthHandlers) SessionGET

func (app *AuthHandlers) SessionGET(c *gin.Context)

Session endpoint

type GinApp

type GinApp struct {
	*gin.Engine
	// contains filtered or unexported fields
}

func NewGinApp

func NewGinApp(cfg *config.Config) (*GinApp, error)

Create new kubetail Gin app

func (*GinApp) Shutdown

func (app *GinApp) Shutdown()

type GraphQLHandlers

type GraphQLHandlers struct {
	*GinApp
}

func (*GraphQLHandlers) EndpointHandler

func (app *GraphQLHandlers) EndpointHandler(cfg *rest.Config, grpcDispatcher *grpcdispatcher.Dispatcher, allowedNamespaces []string, csrfProtect func(http.Handler) http.Handler) gin.HandlerFunc

GET|POST "/graphql": GraphQL query endpoint

type LoginForm

type LoginForm struct {
	Token string `form:"token" binding:"required" errors_required:"Please enter your token"`
}

type WebsiteHandlers

type WebsiteHandlers struct {
	*GinApp
	// contains filtered or unexported fields
}

func (*WebsiteHandlers) EndpointHandler

func (app *WebsiteHandlers) EndpointHandler(cfg *config.Config) gin.HandlerFunc

func (*WebsiteHandlers) InitStaticHandlers

func (app *WebsiteHandlers) InitStaticHandlers(root *gin.RouterGroup)

Jump to

Keyboard shortcuts

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