luci: Index | Files

package runnerbutler

import ""


Package Files

logdog.go logdog_posix.go

type Server Uses

type Server struct {
    WorkDir         string
    Authenticator   *auth.Authenticator
    CoordinatorHost string
    Project         types.ProjectName
    Prefix          types.StreamName
    GlobalTags      map[string]string

    // Write logs to a local file at this path instead of sending to cloud.
    // Overrides Auth, Host, Project and Prefix.
    LocalFile string

    // value for butler.Config.StreamRegistrationCallback. See its docs.
    StreamRegistrationCallback func(*logpb.LogStreamDescriptor) bundler.StreamChunkCallback

    Client *streamclient.Client
    // contains filtered or unexported fields

Server is a LogDog local server (aka butler).

func (*Server) SetInEnviron Uses

func (l *Server) SetInEnviron(env environ.Env) error

SetInEnviron modifies env to export location of this local LogDog server into the environment, so a subprocesses can stream logs.

func (*Server) Start Uses

func (l *Server) Start(ctx context.Context) error

Start starts the server. Disables gRPC logging. The caller is responsible for calling Stop().

func (*Server) Stop Uses

func (l *Server) Stop() error

Stop stops the server.

Package runnerbutler imports 20 packages (graph) and is imported by 4 packages. Updated 2019-08-25. Refresh now. Tools for package owners.