fakesdl

package
v0.9.10 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fakesdl provides a fake for Stackdriver Logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	GRPC   *fakegrpc.Fake
	Server *Server
	Client *logging.Client
}

Fake contains a server and client.

func New

func New() (*Fake, func())

New creates a new Fake.

type Server

type Server struct {
	// embed the GRPCLoggingServiceV2Server interface for non-implemented methods.
	lgrpcpb.LoggingServiceV2Server

	// Logs that have been sent to the server.
	Logs []*lpb.WriteLogEntriesRequest

	Entries []*lepb.LogEntry
}

Server is a fake logging server.

func (*Server) ListLogEntries added in v0.8.8

func (*Server) WriteLogEntries

WriteLogEntries stores the logs.

Jump to

Keyboard shortcuts

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