yeapi

package
v0.0.0-...-c5cc7cd Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ProvideClient

func ProvideClient(
	rawURL ClientURL,
	logger *zap.SugaredLogger,
	tracerProvider *tracerProvider,
	plugins ...httpds.Plugin,
) *client

func ProvideTracerProvider

func ProvideTracerProvider(appEnvironment config.AppEnvironment) *tracerProvider

Types

type Client

type Client interface {
	GetQuote(ctx context.Context) (*GetQuoteResponse, error)
}

type ClientURL

type ClientURL string

type GetQuoteResponse

type GetQuoteResponse struct {
	Quote string `json:"quote"`
}

type HealthCheck

type HealthCheck healthgo.Config

func ProvideClientHealthCheck

func ProvideClientHealthCheck(url ClientURL) HealthCheck

Jump to

Keyboard shortcuts

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