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
Click to show internal directories.
Click to hide internal directories.