luci: go.chromium.org/luci/logdog/client/butler/streamserver/localclient Index | Files

package localclient

import "go.chromium.org/luci/logdog/client/butler/streamserver/localclient"

Index

Package Files

local.go

func New Uses

func New(b *butler.Butler) streamclient.Client

New creates a new Client instance bound to a local Butler instance. This sidesteps the need for an actual server socket and negotiation protocol and directly registers streams via Butler API calls.

Internally, the Stream uses an io.PipeWriter and io.PipeReader to ferry data from the Stream's owner to the Butler.

Package localclient imports 4 packages (graph) and is imported by 1 packages. Updated 2018-08-20. Refresh now. Tools for package owners.