client

package
v0.0.0-...-b2d6a3e Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLogsClient

func DefaultLogsClient(ctx context.Context, overrideApiAddr string) (pb.LogsClient, error)

func DefaultResultsClient

func DefaultResultsClient(ctx context.Context, overrideApiAddr string) (pb.ResultsClient, error)

DefaultResultsClient creates a new results client. Will dial overrideApiAddr if overrideApiAddr is not empty

Types

type ClientFactory

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

func NewDefaultFactory

func NewDefaultFactory() (*ClientFactory, error)

func (*ClientFactory) LogClient

func (f *ClientFactory) LogClient(ctx context.Context, overrideApiAddr string) (pb.LogsClient, error)

LogClient creates a new Results gRPC client for the given factory settings. TODO: Refactor this with watcher client code?

func (*ClientFactory) ResultsClient

func (f *ClientFactory) ResultsClient(ctx context.Context, overrideApiAddr string) (pb.ResultsClient, error)

ResultsClient creates a new Results gRPC client for the given factory settings. TODO: Refactor this with watcher client code?

Jump to

Keyboard shortcuts

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