client

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Overview

Package client contains clients for the Stream Health analyzer public API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

Types

type APIError

type APIError struct {
	StatusCode int
	Errors     []string
}

func (APIError) Error

func (h APIError) Error() string

type Analyzer

type Analyzer interface {
	GetStreamHealth(ctx context.Context, streamID string) (*data.HealthStatus, error)
}

Analyzer abstracts the stream health analyzer APIs.

func NewAnalyzer

func NewAnalyzer(baseUrl, authToken, userAgent string, timeout time.Duration) Analyzer

NewAnalyzer creates a client for the stream health analyzer service.

Jump to

Keyboard shortcuts

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