Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
publishes status of each app, reporting when the log tailer has matched it's pattern and the app is warmed up and ready to serve, or an error message if the tailer fails.
type Status ¶
type Status struct { Ready bool `json:"ready"` At *time.Time `json:"at,omitempty"` Error string `json:"error"` }
status reported for each app
type Tailer ¶
type Tailer struct { Ctx context.Context Name string ID string Since time.Duration Patterns []*regexp.Regexp AwaitStartup time.Duration AwaitReady time.Duration Publisher *Publisher Client *docker.Client Driver *tail.Tail Reader io.ReadCloser Writer *os.File Logger *log.Logger Done chan bool }
performs the log monitoring and status publishing for one service container
func (*Tailer) ProcessLine ¶
handle processing each log line, publish result if error or match occurs
Click to show internal directories.
Click to hide internal directories.