client

package
v1.1.81 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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