Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogEntry ¶
type LogEntry struct {
Level string `json:"level"`
Instance string `json:"instance"`
Message string `json:"message"`
Region string `json:"region"`
Timestamp string `json:"timestamp"`
Meta Meta `json:"meta"`
}
type LogOptions ¶
type LogOptions struct {
W io.Writer
MaxBackoff time.Duration
AppName string
VMID string
RegionCode string
NoTail bool
}
type LogStream ¶
type LogStream interface {
Err() error
Stream(ctx context.Context, opts *LogOptions) <-chan LogEntry
}
func NewNatsStream ¶
func NewNatsStream(ctx context.Context, apiClient WebClient, opts *LogOptions) (LogStream, error)
func NewPollingStream ¶
func NewPollingStream(client WebClient) LogStream
Click to show internal directories.
Click to hide internal directories.