Documentation ¶
Overview ¶
Package file implements "file" surfacer. This surfacer type is in experimental phase right now.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSurfacer ¶
type FileSurfacer struct {
// contains filtered or unexported fields
}
FileSurfacer structures for writing onto a GCE instance's serial port. Keeps track of an output file which the incoming data is serialized onto (one entry per line).
func New ¶
func New(config *configpb.SurfacerConf, l *logger.Logger) (*FileSurfacer, error)
New initializes a FileSurfacer for serializing data into a file (usually set as a GCE instance's serial port). This Surfacer does not utilize the Google cloud logger because it is unlikely to fail reportably after the call to New.
func (*FileSurfacer) Write ¶
func (s *FileSurfacer) Write(ctx context.Context, em *metrics.EventMetrics)
Write queues the incoming data into a channel. This channel is watched by a goroutine that actually writes data to a file ((usually set as a GCE instance's serial port).