controller

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 74 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginFunc

func LoginFunc(c *gin.Context)

Types

type Auth

type Auth struct {
	IController
}

func NewAuth

func NewAuth(callbackEndpoint string) *Auth

func (*Auth) Bind

func (a *Auth) Bind(engine *gin.Engine, loginMiddleware gin.HandlerFunc)

func (*Auth) Close

func (a *Auth) Close()

type IController

type IController interface {
	Bind(engine *gin.Engine, loginMiddleware gin.HandlerFunc)
	Close()
}

type LoadBalancer

type LoadBalancer struct {
	IController
	// contains filtered or unexported fields
}

func NewLoadBalancer

func NewLoadBalancer(endpoints []url.URL, path string, auth bool) *LoadBalancer

func (*LoadBalancer) Bind

func (l *LoadBalancer) Bind(engine *gin.Engine, loginMiddleware gin.HandlerFunc)

func (*LoadBalancer) Close

func (l *LoadBalancer) Close()

type Static

type Static struct {
	IController
	// contains filtered or unexported fields
}

func NewStatic

func NewStatic(staticsDir, htmlTemplatesDir string) *Static

func (Static) Bind

func (s Static) Bind(engine *gin.Engine, _ gin.HandlerFunc)

func (Static) Close

func (s Static) Close()

type UserObject

type UserObject struct {
	Id   string    `json:"id"`
	User goth.User `json:"user"`
}

Jump to

Keyboard shortcuts

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