interceptor

package
v0.0.0-...-0a1b35b Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

package interceptor creates interceptor for inter-service communication for example mod-disco is a client to sys-account

Index

Constants

View Source
const (
	DEFAULT_REFRESH_DURATION = 15 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSide

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

func NewClientSideInterceptor

func NewClientSideInterceptor(client pkg.AuthServiceClient, access, refresh string, routesToAttach []string, logger logging.Logger) (*ClientSide, error)

func (*ClientSide) Stream

Stream => returns grpc.StreamClientInterceptor

func (*ClientSide) Unary

Unary => returns grpc.UnaryClientInterceptor

Jump to

Keyboard shortcuts

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