storeid

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStreamingInterceptor

func NewStreamingInterceptor() grpc.StreamServerInterceptor

NewStreamingInterceptor creates a grpc.StreamServerInterceptor which injects store_id metadata into the RPC context if an RPC message is received with a GetStoreId method.

func NewUnaryInterceptor

func NewUnaryInterceptor() grpc.UnaryServerInterceptor

NewUnaryInterceptor creates a grpc.UnaryServerInterceptor which injects store_id metadata into the RPC context if an RPC message is received with a GetStoreId method.

func SetStoreIDInContext

func SetStoreIDInContext(ctx context.Context, req interface{})

func StoreIDFromContext

func StoreIDFromContext(ctx context.Context) (string, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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