fake_doppler

package
v74.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: Apache-2.0, BSD-3-Clause, 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 FakeDoppler

type FakeDoppler struct {
	GrpcEndpoint string

	SubscriptionRequests     chan *plumbing.SubscriptionRequest
	ContainerMetricsRequests chan *plumbing.ContainerMetricsRequest
	RecentLogsRequests       chan *plumbing.RecentLogsRequest
	SubscribeServers         chan plumbing.Doppler_SubscribeServer

	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func New() *FakeDoppler

func (*FakeDoppler) CloseLogMessageStream

func (fakeDoppler *FakeDoppler) CloseLogMessageStream()

func (*FakeDoppler) ContainerMetrics

func (fakeDoppler *FakeDoppler) ContainerMetrics(ctx context.Context, request *plumbing.ContainerMetricsRequest) (*plumbing.ContainerMetricsResponse, error)

func (*FakeDoppler) RecentLogs

func (fakeDoppler *FakeDoppler) RecentLogs(ctx context.Context, request *plumbing.RecentLogsRequest) (*plumbing.RecentLogsResponse, error)

func (*FakeDoppler) SendLogMessage

func (fakeDoppler *FakeDoppler) SendLogMessage(messageBody []byte)

func (*FakeDoppler) Start

func (fakeDoppler *FakeDoppler) Start() error

func (*FakeDoppler) Stop

func (fakeDoppler *FakeDoppler) Stop()

func (*FakeDoppler) Subscribe

func (fakeDoppler *FakeDoppler) Subscribe(request *plumbing.SubscriptionRequest, server plumbing.Doppler_SubscribeServer) error

Jump to

Keyboard shortcuts

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