pertoken

package
v1.32.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MiddlewareForTesting

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

MiddlewareForTesting is used to create a unique datastore for each token. It is intended for use in the testserver only.

func NewMiddleware

func NewMiddleware(configFilePaths []string) *MiddlewareForTesting

NewMiddleware returns a new per-token datastore middleware that initializes each datastore with the data in the config files.

func (*MiddlewareForTesting) StreamServerInterceptor

func (m *MiddlewareForTesting) StreamServerInterceptor() grpc.StreamServerInterceptor

StreamServerInterceptor returns a new stream server interceptor that sets a separate in-memory datastore per token

func (*MiddlewareForTesting) UnaryServerInterceptor

func (m *MiddlewareForTesting) UnaryServerInterceptor() grpc.UnaryServerInterceptor

UnaryServerInterceptor returns a new unary server interceptor that sets a separate in-memory datastore per token

Jump to

Keyboard shortcuts

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