Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNilLogChannel is returned when the log channel is nil ErrNilLogChannel = errors.New("log channel is nil") // ErrLogChannelClosed is returned when the log channel closes unexpectedly ErrLogChannelClosed = errors.New("log channel closed unexpectedly") // ErrPanicInLogHandler is returned when a panic occurs in the log handler ErrPanicInLogHandler = errors.New("panic in log stream handler") )
Functions ¶
This section is empty.
Types ¶
type Streamer ¶
type Streamer struct {
// contains filtered or unexported fields
}
Streamer handles log streaming from Kurtosis services
func NewStreamer ¶
func NewStreamer(enclaveName string, config StreamerConfig) *Streamer
NewStreamer creates a new log streamer
func (*Streamer) StreamLogs ¶
func (s *Streamer) StreamLogs(ctx context.Context, clientName string, clientType string, serviceClient client.ServiceWithLogs) error
StreamLogs starts streaming logs from the given client with retry logic
type StreamerConfig ¶
type StreamerConfig struct {
// Retry configuration
MaxRetries int
InitialBackoff time.Duration
MaxBackoff time.Duration
BackoffFactor float64
// Logging
Logger logrus.FieldLogger
}
StreamerConfig contains configuration for the log streamer
func DefaultConfig ¶
func DefaultConfig() StreamerConfig
DefaultConfig returns a default configuration for the log streamer
Click to show internal directories.
Click to hide internal directories.