client

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const NamespaceHeaderKey = "x-namespace-id"

NamespaceHeaderKey specify what namespace request is targeted for if not provided, default namespace is assumed

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, cfg Config) (compassv1beta1.CompassServiceClient, func(), error)

func SetMetadata

func SetMetadata(ctx context.Context, cfg Config, namespaceID string) context.Context

Types

type Config

type Config struct {
	Host                      string `mapstructure:"host" default:"localhost:8081"`
	ServerHeaderKeyUserUUID   string `yaml:"serverheaderkey_uuid" mapstructure:"serverheaderkey_uuid" default:"Compass-User-UUID"`
	ServerHeaderValueUserUUID string `yaml:"serverheadervalue_uuid" mapstructure:"serverheadervalue_uuid" default:"compass@raystack.com"`
}

Jump to

Keyboard shortcuts

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