auth

package
v1.0.1004 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(listener interfaces.Listener, callback Callback) interfaces.Interceptor

Types

type Auth

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

func (*Auth) Handler

func (c *Auth) Handler(h http.Handler) http.Handler

func (*Auth) Name

func (c *Auth) Name() string

func (*Auth) StreamServerInterceptor

func (c *Auth) StreamServerInterceptor() grpc.StreamServerInterceptor

func (*Auth) UnaryServerInterceptor

func (c *Auth) UnaryServerInterceptor() grpc.UnaryServerInterceptor

type Callback added in v1.0.1002

type Callback func(ctx context.Context, r *http.Request) (nextCtx context.Context, res *Response)

type Response added in v1.0.1002

type Response struct {
	Valid   bool
	Message string
	Status  codes.Code
}

Jump to

Keyboard shortcuts

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