logger

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package logger providers an implementation of the Grid Logger reader.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GridLogger added in v1.5.4

type GridLogger struct {
	loggerv1alpha1.LoggerAPIClient
	// contains filtered or unexported fields
}

GridLogger is a client for the Grid Logger.

func DialContext

func DialContext(
	ctx context.Context,
	endpoint string,
	privateKey *ecdsa.PrivateKey,
	opts ...grpc.DialOption,
) (l *GridLogger, conn *grpc.ClientConn, err error)

DialContext connects to the Grid Logger gRPC API and returns a client.

The context.Context is only used for the Dial. Subsequent calls require a new context.

func (*GridLogger) WatchLogs added in v1.5.4

func (l *GridLogger) WatchLogs(
	ctx context.Context,
	jobID [32]byte,
) (types.LogStream, error)

WatchLogs returns a stream of logs for a given job.

Jump to

Keyboard shortcuts

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