Documentation ¶
Index ¶
Constants ¶
View Source
const ( ApplicationName = "TestFunctionName" FunctionName = "TestFunctionName" ApplicationID = "aws:lambda:TestRegion:guest:TestFunctionName" LogStreamName = "2018/01/01/[$LATEST]1234567890" ApplicationInstanceID = "1234567890" FunctionVersion = "$Version" ApplicationStage = "TestStage" Region = "TestRegion" MemoryLimit = 512 LogGroupName = "TestLogGroupName" )
Variables ¶
This section is empty.
Functions ¶
func CleanEnvironment ¶
func CleanEnvironment()
func PrepareEnvironment ¶
func PrepareEnvironment()
Types ¶
type MockReporter ¶
type MockReporter struct { mock.Mock MessageQueue []plugin.MonitoringDataWrapper ReportedFlag *uint32 }
MockReporter is used in tests for mock reporter
func NewMockReporter ¶
func NewMockReporter() *MockReporter
NewMockReporter returns a new MockReporter
func (*MockReporter) ClearData ¶
func (r *MockReporter) ClearData()
func (*MockReporter) Collect ¶
func (r *MockReporter) Collect(messages []plugin.MonitoringDataWrapper)
func (*MockReporter) FlushFlag ¶
func (r *MockReporter) FlushFlag()
func (*MockReporter) Report ¶
func (r *MockReporter) Report()
func (*MockReporter) Reported ¶
func (r *MockReporter) Reported() *uint32
Click to show internal directories.
Click to hide internal directories.