auth

package
v1.2.803 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 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 AuthCallback) 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) StreamServerInterceptor

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

func (*Auth) UnaryServerInterceptor

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

type AuthCallback

type AuthCallback func(ctx context.Context, r *http.Request) (nextCtx context.Context, valid bool)

type DefaultError added in v1.2.803

type DefaultError struct {
	Error   bool        `json:"error"`
	Message interface{} `json:"message"`
}

type ErrorLogs

type ErrorLogs struct {
	Code string      `json:"Grpc-Status"`
	Msg  interface{} `json:"Grpc-Message"`
}

Jump to

Keyboard shortcuts

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