presharedkey_interceptor

package
v0.0.0-...-f4b5f2c Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientInterceptor

type ClientInterceptor struct {
	RequireTLS bool
	Key        string
}

func (*ClientInterceptor) GetRequestMetadata

func (t *ClientInterceptor) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error)

func (*ClientInterceptor) RequireTransportSecurity

func (t *ClientInterceptor) RequireTransportSecurity() bool

type ServerInterceptor

type ServerInterceptor struct {
	Keys []string
}

func (*ServerInterceptor) Stream

func (*ServerInterceptor) StreamServerInterceptor

func (t *ServerInterceptor) StreamServerInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

func (*ServerInterceptor) Unary

func (*ServerInterceptor) UnaryServerInterceptor

func (t *ServerInterceptor) UnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)

Jump to

Keyboard shortcuts

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