grpcserviceutils

package
v0.0.0-...-d2a8444 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUserID

func GetUserID(ctx context.Context) (uuid.UUID, error)

func LoadMetadataValuesToContext

func LoadMetadataValuesToContext(ctx context.Context, keys ...string) (context.Context, error)

func WithUserID

func WithUserID(ctx context.Context, id uuid.UUID) context.Context

Types

type GRPCServiceConfig

type GRPCServiceConfig struct {
	ServicePort    int  `mapstructure:"SERVICE_PORT"`
	GRPCReflection bool `mapstructure:"GRPC_REFLECTION"`
}

ServiceConfig is the configuration required for the service runtime itself

func ProvideGRPCServiceConfig

func ProvideGRPCServiceConfig(cl *utils.ConfigLocation) (*GRPCServiceConfig, error)

Jump to

Keyboard shortcuts

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