auth

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interceptor added in v1.10.0

type Interceptor struct {
	// contains filtered or unexported fields
}

func NewInterceptor added in v1.10.0

func NewInterceptor(
	logger *zap.Logger,
	conf *config.Config,
	clientStore *oauth.ClientStore,
	agentStore agent.AgentRepository,
) *Interceptor

func (*Interceptor) WrapStreamingClient added in v1.10.0

func (i *Interceptor) WrapStreamingClient(next connect.StreamingClientFunc) connect.StreamingClientFunc

func (*Interceptor) WrapStreamingHandler added in v1.10.0

func (*Interceptor) WrapUnary added in v1.10.0

func (i *Interceptor) WrapUnary(next connect.UnaryFunc) connect.UnaryFunc

type Middleware

type Middleware struct {
	// contains filtered or unexported fields
}

func WithStrategies

func WithStrategies(strategies ...Strategy) *Middleware

func (*Middleware) Handle

func (m *Middleware) Handle(c *gin.Context)

type Strategy

type Strategy interface {
	Handle(ctx *gin.Context) bool
	Evaluate(ctx *gin.Context) bool
}

Directories

Path Synopsis
strategy

Jump to

Keyboard shortcuts

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