injectors

package
v0.0.0-...-2486f02 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvideDetailsClient

func ProvideDetailsClient(opts *DetailsClientOptions) (detailsservice.Client, error)

ProvideDetailsClient provide details client 1、init xds manager: only init once 2、enable xds 3、enable opentelemetry

func ProvideRatingsClient

func ProvideRatingsClient(opts *RatingsClientOptions) (ratingservice.Client, error)

ProvideRatingsClient provide ratings client 1、init xds manager: only init once 2、enable xds 3、enable opentelemetry

func ProvideReviewClient

func ProvideReviewClient(opts *ReviewClientOptions) (reviewsservice.Client, error)

ProvideReviewClient Provide review client 1、init xds manager: only init once 2、enable xds 3、enable opentelemetry

Types

type DetailsClientOptions

type DetailsClientOptions struct {
	Endpoint  string `mapstructure:"endpoint"`
	EnableXDS bool   `mapstructure:"enableXDS"`
	XDSAddr   string `mapstructure:"xdsAddr"`
	XDSAuth   bool   `mapstructure:"xdsAuth"`
}

DetailsClientOptions detail client options

func DefaultDetailsClientOptions

func DefaultDetailsClientOptions() *DetailsClientOptions

DefaultDetailsClientOptions default options

type RatingsClientOptions

type RatingsClientOptions struct {
	Endpoint  string `mapstructure:"endpoint"`
	EnableXDS bool   `mapstructure:"enableXDS"`
	XDSAddr   string `mapstructure:"xdsAddr"`
	XDSAuth   bool   `mapstructure:"xdsAuth"`
}

RatingsClientOptions client options

func DefaultRatingsClientOptions

func DefaultRatingsClientOptions() *RatingsClientOptions

type ReviewClientOptions

type ReviewClientOptions struct {
	Endpoint  string `mapstructure:"endpoint"`
	EnableXDS bool   `mapstructure:"enableXDS"`
	XDSAddr   string `mapstructure:"xdsAddr"`
	XDSAuth   bool   `mapstructure:"xdsAuth"`
}

ReviewClientOptions client options

func DefaultReviewClientOptions

func DefaultReviewClientOptions() *ReviewClientOptions

DefaultReviewClientOptions default options

Jump to

Keyboard shortcuts

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