profiler

package
v0.0.0-...-1e8dc9b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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

type SinkMock struct {
	mock.Mock
}

SinkMock is an autogenerated mock type for the Sink type

func NewSinkMock

func NewSinkMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *SinkMock

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

func (_m *SinkMock) GetSinkName() string

GetSinkName provides a mock function with given fields:

func (*SinkMock) Stop

func (_m *SinkMock) Stop()

Stop 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

Stop is a helper method to define mock.On call

type SinkMock_GetSinkName_Call

type SinkMock_GetSinkName_Call struct {
	*mock.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 (*SinkMock_GetSinkName_Call) Run

func (*SinkMock_GetSinkName_Call) RunAndReturn

func (_c *SinkMock_GetSinkName_Call) RunAndReturn(run func() string) *SinkMock_GetSinkName_Call

type SinkMock_Stop_Call

type SinkMock_Stop_Call struct {
	*mock.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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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