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 ¶
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
func (m *MockCheckedBytesWrapperPool) EXPECT() *MockCheckedBytesWrapperPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCheckedBytesWrapperPool) Get ¶ added in v1.6.0
func (m *MockCheckedBytesWrapperPool) Get(arg0 []byte) checked.Bytes
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
func (mr *MockCheckedBytesWrapperPoolMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init.