fake

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeLogSender

type FakeLogSender struct {
	ReturnError   error
	ReturnChainer log_sender.LogChainer
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewFakeLogSender

func NewFakeLogSender() *FakeLogSender

func (*FakeLogSender) GetLogMessages

func (fls *FakeLogSender) GetLogMessages() []LogMessage

func (*FakeLogSender) GetLogs

func (fls *FakeLogSender) GetLogs() []Log

func (*FakeLogSender) LogMessage

func (fls *FakeLogSender) LogMessage(msg []byte, msgType events.LogMessage_MessageType) log_sender.LogChainer

func (*FakeLogSender) Reset

func (fls *FakeLogSender) Reset()

func (*FakeLogSender) ScanErrorLogStream

func (fls *FakeLogSender) ScanErrorLogStream(appId, sourceType, sourceInstance string, reader io.Reader)

func (*FakeLogSender) ScanLogStream

func (fls *FakeLogSender) ScanLogStream(appId, sourceType, sourceInstance string, reader io.Reader)

func (*FakeLogSender) SendAppErrorLog

func (fls *FakeLogSender) SendAppErrorLog(appId, message, sourceType, sourceInstance string) error

func (*FakeLogSender) SendAppLog

func (fls *FakeLogSender) SendAppLog(appId, message, sourceType, sourceInstance string) error

type Log

type Log struct {
	AppId          string
	Message        string
	SourceType     string
	SourceInstance string
	MessageType    string
}

type LogMessage

type LogMessage struct {
	Message     []byte
	MessageType events.LogMessage_MessageType
}

Jump to

Keyboard shortcuts

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