middlewares

package
v0.0.0-...-8b1ae4f Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationInterceptor

type AuthenticationInterceptor struct {
	HMACSecret string
	// contains filtered or unexported fields
}

func NewAuthenticationInterceptor

func NewAuthenticationInterceptor(logger *zap.Logger, hmacSecret string, deviceRepository repository.IDeviceRepository) AuthenticationInterceptor

func (AuthenticationInterceptor) Authentication

func (AuthenticationInterceptor) AuthenticationStream

func (i AuthenticationInterceptor) AuthenticationStream() grpc.StreamServerInterceptor

type AuthorizationInterceptor

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

func NewAuthorizationInterceptor

func NewAuthorizationInterceptor(
	logger *zap.Logger,
	deviceRepository repository.IDeviceRepository,
	clientRepository repository.IClientRepository,
) AuthorizationInterceptor

func (AuthorizationInterceptor) Authorization

func (AuthorizationInterceptor) AuthorizationStream

func (i AuthorizationInterceptor) AuthorizationStream() grpc.StreamServerInterceptor

type LoggingInterceptor

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

func NewLoggingInterceptor

func NewLoggingInterceptor(logger *zap.Logger) LoggingInterceptor

func (LoggingInterceptor) Logger

func (i LoggingInterceptor) Logger() logging.Logger

Jump to

Keyboard shortcuts

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