internal

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: Apache-2.0 Imports: 10 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

Overview

Package internal is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPaginatedItems

func GetPaginatedItems[T any, R interface {
	GetItems() []T
	GetLinks() map[string]ldapi.Link
}](ctx context.Context, projectKey string, href *string, fetchFunc func(context.Context, string, *int64, *int64) (R, error)) ([]T, error)

func Retry429s

func Retry429s[T any](requester func() (T, *http.Response, error)) (result T, err error)

Types

type MockMockableTime

type MockMockableTime struct {
	// contains filtered or unexported fields
}

MockMockableTime is a mock of MockableTime interface.

func NewMockMockableTime

func NewMockMockableTime(ctrl *gomock.Controller) *MockMockableTime

NewMockMockableTime creates a new mock instance.

func (*MockMockableTime) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockMockableTime) Now

func (m *MockMockableTime) Now() time.Time

Now mocks base method.

func (*MockMockableTime) Sleep

func (m *MockMockableTime) Sleep(arg0 time.Duration)

Sleep mocks base method.

type MockMockableTimeMockRecorder

type MockMockableTimeMockRecorder struct {
	// contains filtered or unexported fields
}

MockMockableTimeMockRecorder is the mock recorder for MockMockableTime.

func (*MockMockableTimeMockRecorder) Now

Now indicates an expected call of Now.

func (*MockMockableTimeMockRecorder) Sleep

func (mr *MockMockableTimeMockRecorder) Sleep(arg0 any) *gomock.Call

Sleep indicates an expected call of Sleep.

type MockableTime

type MockableTime interface {
	Sleep(duration time.Duration)
	Now() time.Time
}

Jump to

Keyboard shortcuts

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