xpool

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 4 Imported by: 35

Documentation

Overview

Package xpool is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckedBytesWrapperPool

type CheckedBytesWrapperPool interface {
	Init()

	Get([]byte) checked.Bytes
}

CheckedBytesWrapperPool allows users to wrap []byte which have been allocated by other libraries (e.g. thrift/t-channel) with a checked.Bytes abstraction. This is to ensure we reference count usage, and more importantly, can interop with the rest of the M3DB codebase (which requires checked.Bytes). NB: This pool doesn't require a Put method, as Finalizing the bytes returned from Get does the Put internally.

func NewCheckedBytesWrapperPool

func NewCheckedBytesWrapperPool(popts pool.ObjectPoolOptions) CheckedBytesWrapperPool

NewCheckedBytesWrapperPool returns a new CheckedBytesWrapperPool with the defined size.

type MockCheckedBytesWrapperPool added in v1.6.0

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

MockCheckedBytesWrapperPool is a mock of CheckedBytesWrapperPool interface.

func NewMockCheckedBytesWrapperPool added in v1.6.0

func NewMockCheckedBytesWrapperPool(ctrl *gomock.Controller) *MockCheckedBytesWrapperPool

NewMockCheckedBytesWrapperPool creates a new mock instance.

func (*MockCheckedBytesWrapperPool) EXPECT added in v1.6.0

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

func (*MockCheckedBytesWrapperPool) Get added in v1.6.0

Get mocks base method.

func (*MockCheckedBytesWrapperPool) Init added in v1.6.0

func (m *MockCheckedBytesWrapperPool) Init()

Init mocks base method.

type MockCheckedBytesWrapperPoolMockRecorder added in v1.6.0

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

MockCheckedBytesWrapperPoolMockRecorder is the mock recorder for MockCheckedBytesWrapperPool.

func (*MockCheckedBytesWrapperPoolMockRecorder) Get added in v1.6.0

func (mr *MockCheckedBytesWrapperPoolMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCheckedBytesWrapperPoolMockRecorder) Init added in v1.6.0

Init indicates an expected call of Init.

Jump to

Keyboard shortcuts

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