middlewares

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMiddlewaresForService

func GetMiddlewaresForService(ctx context.Context, cfg *config.Config, logger *zerolog.Logger) ([]grpc.ServerOption, error)

Types

type PolicyInstanceMiddleware

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

func NewInstanceMiddleware

func NewInstanceMiddleware(cfg *config.Config, logger *zerolog.Logger) *PolicyInstanceMiddleware

func (*PolicyInstanceMiddleware) Stream

passthrough as Is call is Unary type operation.

func (*PolicyInstanceMiddleware) Unary

If the unary operation is an Is request attach configured instance information to request.

type TenantIDIDMiddleware

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

func NewTenantIDMiddleware

func NewTenantIDMiddleware(cfg *config.Config) *TenantIDIDMiddleware

func (*TenantIDIDMiddleware) Stream

func (*TenantIDIDMiddleware) Unary

Jump to

Keyboard shortcuts

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