servicelogs

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogFollower

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

func NewLogFollower

func NewLogFollower(runLog string) *LogFollower

NewLogFollower creates a log follower that tails a log file for the specified service

func (*LogFollower) Start

func (f *LogFollower) Start() <-chan LogLine

func (*LogFollower) Stop

func (f *LogFollower) Stop()

type LogLine

type LogLine struct {
	Name    string
	Time    time.Time
	Stream  string
	Message string
}

LogLine represents a line in an Edward service log

func ParseLogLine

func ParseLogLine(line string) (LogLine, error)

ParseLogLine parses the JSON representation of a log line into a LogLine

Jump to

Keyboard shortcuts

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