client

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decorator

type Decorator struct {
	// contains filtered or unexported fields
}

Decorator allows a plugins.Client to be decorated with middlewares.

func NewDecorator

func NewDecorator(client plugins.Client, middlewares ...plugins.ClientMiddleware) (*Decorator, error)

NewDecorator creates a new plugins.client decorator.

func (*Decorator) CallResource

func (*Decorator) CheckHealth

func (*Decorator) CollectMetrics

func (*Decorator) PublishStream

func (*Decorator) QueryData

func (*Decorator) RunStream

func (d *Decorator) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error

func (*Decorator) SubscribeStream

type Service

type Service struct {
	// contains filtered or unexported fields
}

func ProvideService

func ProvideService(pluginRegistry registry.Service, cfg *config.Cfg) *Service

func (*Service) CallResource

func (*Service) CheckHealth

func (*Service) CollectMetrics

func (*Service) PublishStream

func (*Service) QueryData

func (*Service) RunStream

func (s *Service) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error

func (*Service) SubscribeStream

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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