Documentation ¶
Overview ¶
Package report is a generated GoMock package.
Index ¶
Constants ¶
View Source
const ( // HeapProfileFilenameFmt is the filename format for the heap profile. // pprof.<app>.<hostname>.alloc_objects.alloc_space.inuse_objects.inuse_space.<formattedTime>.pprof HeapProfileFilenameFmt = "pprof.%s.%s.alloc_objects.alloc_space.inuse_objects.inuse_space.%s.pprof" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockReporter ¶
type MockReporter struct {
// contains filtered or unexported fields
}
MockReporter is a mock of Reporter interface.
func NewMockReporter ¶
func NewMockReporter(ctrl *gomock.Controller) *MockReporter
NewMockReporter creates a new mock instance.
func (*MockReporter) EXPECT ¶
func (m *MockReporter) EXPECT() *MockReporterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReporter) ReportHeapProfile ¶
ReportHeapProfile mocks base method.
type MockReporterMockRecorder ¶
type MockReporterMockRecorder struct {
// contains filtered or unexported fields
}
MockReporterMockRecorder is the mock recorder for MockReporter.
func (*MockReporterMockRecorder) ReportHeapProfile ¶
func (mr *MockReporterMockRecorder) ReportHeapProfile(ctx, r, mi interface{}) *gomock.Call
ReportHeapProfile indicates an expected call of ReportHeapProfile.
type SlackReporter ¶
type SlackReporter struct {
// contains filtered or unexported fields
}
SlackReporter is the reporter to send the profiling report to the specific Slack channel.
func NewSlackReporter ¶
func NewSlackReporter(opt *SlackReporterOption) *SlackReporter
NewSlackReporter returns the new SlackReporter.
func (*SlackReporter) ReportHeapProfile ¶
ReportHeapProfile sends the heap profile report to the Slack.
type SlackReporterOption ¶
SlackReporterOption is the option for the Slack reporter.
Click to show internal directories.
Click to hide internal directories.