client

package
v1.1.49-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TenantID      string      `mapstructure:"tenant_id"`
	Host          string      `mapstructure:"host"`
	Port          uint32      `mapstructure:"port"`
	Insecure      bool        `mapstructure:"insecure"`
	Auth          auth.Config `mapstructure:"auth"`
	TopicSelfLink string      `mapstructure:"topic_self_link"`
	Level         string      `mapstructure:"log_level"`
	Format        string      `mapstructure:"log_format"`
}

Config the configuration for the Watch client

type WatchClient

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

WatchClient - stream client for connecting to the Watch Controller

func NewWatchClient

func NewWatchClient(config *Config, logger logrus.FieldLogger) (*WatchClient, error)

NewWatchClient creates a WatchClient

func (WatchClient) Watch

func (w WatchClient) Watch()

Watch starts a two-way stream with the Watch Controller

Jump to

Keyboard shortcuts

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