Documentation ¶
Overview ¶
Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2024 Datadog, Inc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sink ¶
type Sink interface { GetSinkName() string Stop() }
Sink describes a profiler
func GetSink ¶
func GetSink(log *zap.SugaredLogger, driver types.SinkDriver) (Sink, error)
GetSink returns an initiated profiler sink
type SinkMock ¶
SinkMock is an autogenerated mock type for the Sink type
func NewSinkMock ¶
NewSinkMock creates a new instance of SinkMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SinkMock) EXPECT ¶
func (_m *SinkMock) EXPECT() *SinkMock_Expecter
func (*SinkMock) GetSinkName ¶
GetSinkName provides a mock function with given fields:
type SinkMock_Expecter ¶
type SinkMock_Expecter struct {
// contains filtered or unexported fields
}
func (*SinkMock_Expecter) GetSinkName ¶
func (_e *SinkMock_Expecter) GetSinkName() *SinkMock_GetSinkName_Call
GetSinkName is a helper method to define mock.On call
func (*SinkMock_Expecter) Stop ¶
func (_e *SinkMock_Expecter) Stop() *SinkMock_Stop_Call
Stop is a helper method to define mock.On call
type SinkMock_GetSinkName_Call ¶
SinkMock_GetSinkName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSinkName'
func (*SinkMock_GetSinkName_Call) Return ¶
func (_c *SinkMock_GetSinkName_Call) Return(_a0 string) *SinkMock_GetSinkName_Call
func (*SinkMock_GetSinkName_Call) Run ¶
func (_c *SinkMock_GetSinkName_Call) Run(run func()) *SinkMock_GetSinkName_Call
func (*SinkMock_GetSinkName_Call) RunAndReturn ¶
func (_c *SinkMock_GetSinkName_Call) RunAndReturn(run func() string) *SinkMock_GetSinkName_Call
type SinkMock_Stop_Call ¶
SinkMock_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*SinkMock_Stop_Call) Return ¶
func (_c *SinkMock_Stop_Call) Return() *SinkMock_Stop_Call
func (*SinkMock_Stop_Call) Run ¶
func (_c *SinkMock_Stop_Call) Run(run func()) *SinkMock_Stop_Call
func (*SinkMock_Stop_Call) RunAndReturn ¶
func (_c *SinkMock_Stop_Call) RunAndReturn(run func()) *SinkMock_Stop_Call