Documentation ¶
Overview ¶
Package serialize is a generated GoMock package.
Index ¶
- type MockTagDecoder
- func (m *MockTagDecoder) Close()
- func (m *MockTagDecoder) Current() ident.Tag
- func (m *MockTagDecoder) CurrentIndex() int
- func (m *MockTagDecoder) Duplicate() ident.TagIterator
- func (m *MockTagDecoder) EXPECT() *MockTagDecoderMockRecorder
- func (m *MockTagDecoder) Err() error
- func (m *MockTagDecoder) Len() int
- func (m *MockTagDecoder) Next() bool
- func (m *MockTagDecoder) Remaining() int
- func (m *MockTagDecoder) Reset(arg0 checked.Bytes)
- type MockTagDecoderMockRecorder
- func (mr *MockTagDecoderMockRecorder) Close() *gomock.Call
- func (mr *MockTagDecoderMockRecorder) Current() *gomock.Call
- func (mr *MockTagDecoderMockRecorder) CurrentIndex() *gomock.Call
- func (mr *MockTagDecoderMockRecorder) Duplicate() *gomock.Call
- func (mr *MockTagDecoderMockRecorder) Err() *gomock.Call
- func (mr *MockTagDecoderMockRecorder) Len() *gomock.Call
- func (mr *MockTagDecoderMockRecorder) Next() *gomock.Call
- func (mr *MockTagDecoderMockRecorder) Remaining() *gomock.Call
- func (mr *MockTagDecoderMockRecorder) Reset(arg0 interface{}) *gomock.Call
- type MockTagDecoderPool
- type MockTagDecoderPoolMockRecorder
- type MockTagEncoder
- type MockTagEncoderMockRecorder
- type MockTagEncoderPool
- type MockTagEncoderPoolMockRecorder
- type TagDecoder
- type TagDecoderOptions
- type TagDecoderPool
- type TagEncoder
- type TagEncoderOptions
- type TagEncoderPool
- type TagSerializationLimits
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTagDecoder ¶
type MockTagDecoder struct {
// contains filtered or unexported fields
}
MockTagDecoder is a mock of TagDecoder interface
func NewMockTagDecoder ¶
func NewMockTagDecoder(ctrl *gomock.Controller) *MockTagDecoder
NewMockTagDecoder creates a new mock instance
func (*MockTagDecoder) Current ¶
func (m *MockTagDecoder) Current() ident.Tag
Current mocks base method
func (*MockTagDecoder) CurrentIndex ¶ added in v0.4.0
func (m *MockTagDecoder) CurrentIndex() int
CurrentIndex mocks base method
func (*MockTagDecoder) Duplicate ¶
func (m *MockTagDecoder) Duplicate() ident.TagIterator
Duplicate mocks base method
func (*MockTagDecoder) EXPECT ¶
func (m *MockTagDecoder) EXPECT() *MockTagDecoderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTagDecoder) Len ¶ added in v0.4.0
func (m *MockTagDecoder) Len() int
Len mocks base method
func (*MockTagDecoder) Remaining ¶
func (m *MockTagDecoder) Remaining() int
Remaining mocks base method
func (*MockTagDecoder) Reset ¶
func (m *MockTagDecoder) Reset(arg0 checked.Bytes)
Reset mocks base method
type MockTagDecoderMockRecorder ¶
type MockTagDecoderMockRecorder struct {
// contains filtered or unexported fields
}
MockTagDecoderMockRecorder is the mock recorder for MockTagDecoder
func (*MockTagDecoderMockRecorder) Close ¶
func (mr *MockTagDecoderMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockTagDecoderMockRecorder) Current ¶
func (mr *MockTagDecoderMockRecorder) Current() *gomock.Call
Current indicates an expected call of Current
func (*MockTagDecoderMockRecorder) CurrentIndex ¶ added in v0.4.0
func (mr *MockTagDecoderMockRecorder) CurrentIndex() *gomock.Call
CurrentIndex indicates an expected call of CurrentIndex
func (*MockTagDecoderMockRecorder) Duplicate ¶
func (mr *MockTagDecoderMockRecorder) Duplicate() *gomock.Call
Duplicate indicates an expected call of Duplicate
func (*MockTagDecoderMockRecorder) Err ¶
func (mr *MockTagDecoderMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err
func (*MockTagDecoderMockRecorder) Len ¶ added in v0.4.0
func (mr *MockTagDecoderMockRecorder) Len() *gomock.Call
Len indicates an expected call of Len
func (*MockTagDecoderMockRecorder) Next ¶
func (mr *MockTagDecoderMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next
func (*MockTagDecoderMockRecorder) Remaining ¶
func (mr *MockTagDecoderMockRecorder) Remaining() *gomock.Call
Remaining indicates an expected call of Remaining
func (*MockTagDecoderMockRecorder) Reset ¶
func (mr *MockTagDecoderMockRecorder) Reset(arg0 interface{}) *gomock.Call
Reset indicates an expected call of Reset
type MockTagDecoderPool ¶
type MockTagDecoderPool struct {
// contains filtered or unexported fields
}
MockTagDecoderPool is a mock of TagDecoderPool interface
func NewMockTagDecoderPool ¶
func NewMockTagDecoderPool(ctrl *gomock.Controller) *MockTagDecoderPool
NewMockTagDecoderPool creates a new mock instance
func (*MockTagDecoderPool) EXPECT ¶
func (m *MockTagDecoderPool) EXPECT() *MockTagDecoderPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTagDecoderPool) Get ¶
func (m *MockTagDecoderPool) Get() TagDecoder
Get mocks base method
func (*MockTagDecoderPool) Put ¶
func (m *MockTagDecoderPool) Put(arg0 TagDecoder)
Put mocks base method
type MockTagDecoderPoolMockRecorder ¶
type MockTagDecoderPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockTagDecoderPoolMockRecorder is the mock recorder for MockTagDecoderPool
func (*MockTagDecoderPoolMockRecorder) Get ¶
func (mr *MockTagDecoderPoolMockRecorder) Get() *gomock.Call
Get indicates an expected call of Get
func (*MockTagDecoderPoolMockRecorder) Init ¶
func (mr *MockTagDecoderPoolMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init
func (*MockTagDecoderPoolMockRecorder) Put ¶
func (mr *MockTagDecoderPoolMockRecorder) Put(arg0 interface{}) *gomock.Call
Put indicates an expected call of Put
type MockTagEncoder ¶
type MockTagEncoder struct {
// contains filtered or unexported fields
}
MockTagEncoder is a mock of TagEncoder interface
func NewMockTagEncoder ¶
func NewMockTagEncoder(ctrl *gomock.Controller) *MockTagEncoder
NewMockTagEncoder creates a new mock instance
func (*MockTagEncoder) Data ¶
func (m *MockTagEncoder) Data() (checked.Bytes, bool)
Data mocks base method
func (*MockTagEncoder) EXPECT ¶
func (m *MockTagEncoder) EXPECT() *MockTagEncoderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTagEncoder) Encode ¶
func (m *MockTagEncoder) Encode(arg0 ident.TagIterator) error
Encode mocks base method
type MockTagEncoderMockRecorder ¶
type MockTagEncoderMockRecorder struct {
// contains filtered or unexported fields
}
MockTagEncoderMockRecorder is the mock recorder for MockTagEncoder
func (*MockTagEncoderMockRecorder) Data ¶
func (mr *MockTagEncoderMockRecorder) Data() *gomock.Call
Data indicates an expected call of Data
func (*MockTagEncoderMockRecorder) Encode ¶
func (mr *MockTagEncoderMockRecorder) Encode(arg0 interface{}) *gomock.Call
Encode indicates an expected call of Encode
func (*MockTagEncoderMockRecorder) Finalize ¶
func (mr *MockTagEncoderMockRecorder) Finalize() *gomock.Call
Finalize indicates an expected call of Finalize
func (*MockTagEncoderMockRecorder) Reset ¶
func (mr *MockTagEncoderMockRecorder) Reset() *gomock.Call
Reset indicates an expected call of Reset
type MockTagEncoderPool ¶
type MockTagEncoderPool struct {
// contains filtered or unexported fields
}
MockTagEncoderPool is a mock of TagEncoderPool interface
func NewMockTagEncoderPool ¶
func NewMockTagEncoderPool(ctrl *gomock.Controller) *MockTagEncoderPool
NewMockTagEncoderPool creates a new mock instance
func (*MockTagEncoderPool) EXPECT ¶
func (m *MockTagEncoderPool) EXPECT() *MockTagEncoderPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockTagEncoderPool) Get ¶
func (m *MockTagEncoderPool) Get() TagEncoder
Get mocks base method
func (*MockTagEncoderPool) Put ¶
func (m *MockTagEncoderPool) Put(arg0 TagEncoder)
Put mocks base method
type MockTagEncoderPoolMockRecorder ¶
type MockTagEncoderPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockTagEncoderPoolMockRecorder is the mock recorder for MockTagEncoderPool
func (*MockTagEncoderPoolMockRecorder) Get ¶
func (mr *MockTagEncoderPoolMockRecorder) Get() *gomock.Call
Get indicates an expected call of Get
func (*MockTagEncoderPoolMockRecorder) Init ¶
func (mr *MockTagEncoderPoolMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init
func (*MockTagEncoderPoolMockRecorder) Put ¶
func (mr *MockTagEncoderPoolMockRecorder) Put(arg0 interface{}) *gomock.Call
Put indicates an expected call of Put
type TagDecoder ¶
type TagDecoder interface { ident.TagIterator // Reset resets internal state to iterate over the provided bytes. // NB: the TagDecoder takes ownership of the provided checked.Bytes. Reset(checked.Bytes) }
TagDecoder decodes an encoded byte stream to a TagIterator.
type TagDecoderOptions ¶
type TagDecoderOptions interface { // SetCheckedBytesWrapperPool sets the checked.Bytes wrapper pool. SetCheckedBytesWrapperPool(v xpool.CheckedBytesWrapperPool) TagDecoderOptions // CheckedBytesWrapperPool returns the checked.Bytes wrapper pool. CheckedBytesWrapperPool() xpool.CheckedBytesWrapperPool // SetTagSerializationLimits sets the TagSerializationLimits. SetTagSerializationLimits(v TagSerializationLimits) TagDecoderOptions // TagSerializationLimits returns the TagSerializationLimits. TagSerializationLimits() TagSerializationLimits }
TagDecoderOptions sets the knobs for TagDecoders.
func NewTagDecoderOptions ¶
func NewTagDecoderOptions() TagDecoderOptions
NewTagDecoderOptions returns a new TagDecoderOptions.
type TagDecoderPool ¶
type TagDecoderPool interface { // Init initializes the pool. Init() // Get returns a decoder. NB: calling Finalize() on the // returned TagDecoder puts it back in the pool. Get() TagDecoder // Put puts the decoder back in the pool. Put(TagDecoder) }
TagDecoderPool pools TagDecoders.
func NewTagDecoderPool ¶
func NewTagDecoderPool( dopts TagDecoderOptions, opts pool.ObjectPoolOptions, ) TagDecoderPool
NewTagDecoderPool returns a new TagDecoderPool.
type TagEncoder ¶
type TagEncoder interface { // Encode encodes the provided iterator into its internal byte stream. // NB: leaves the original iterator un-modified. Encode(ident.TagIterator) error // Data returns the encoded bytes. // NB: The bytes returned as still owned by the TagEncoder. i.e. They are // only safe for use until Reset/Finalize is called upon the original // TagEncoder. Data() (checked.Bytes, bool) // Reset resets the internal state to allow reuse of the encoder. Reset() // Finalize releases any held resources. Finalize() }
TagEncoder encodes provided Tag iterators.
type TagEncoderOptions ¶
type TagEncoderOptions interface { // SetInitialCapacity sets the initial capacity of the bytes underlying // the TagEncoder. SetInitialCapacity(v int) TagEncoderOptions // InitialCapacity returns the initial capacity of the bytes underlying // the TagEncoder. InitialCapacity() int // SetTagSerializationLimits sets the TagSerializationLimits. SetTagSerializationLimits(v TagSerializationLimits) TagEncoderOptions // TagSerializationLimits returns the TagSerializationLimits. TagSerializationLimits() TagSerializationLimits }
TagEncoderOptions sets the knobs for TagEncoder limits.
func NewTagEncoderOptions ¶
func NewTagEncoderOptions() TagEncoderOptions
NewTagEncoderOptions returns a new TagEncoderOptions.
type TagEncoderPool ¶
type TagEncoderPool interface { // Init initializes the pool. Init() // Get returns an encoder. NB: calling Finalize() on the // returned TagEncoder puts it back in the pool. Get() TagEncoder // Put puts the encoder back in the pool. Put(TagEncoder) }
TagEncoderPool pools TagEncoders.
func NewTagEncoderPool ¶
func NewTagEncoderPool(topts TagEncoderOptions, opts pool.ObjectPoolOptions) TagEncoderPool
NewTagEncoderPool returns a new TagEncoderPool.
type TagSerializationLimits ¶
type TagSerializationLimits interface { // SetMaxNumberTags sets the maximum number of tags allowed. SetMaxNumberTags(uint16) TagSerializationLimits // MaxNumberTags returns the maximum number of tags allowed. MaxNumberTags() uint16 // SetMaxTagLiteralLength sets the maximum length of a tag Name/Value. SetMaxTagLiteralLength(uint16) TagSerializationLimits // MaxTagLiteralLength returns the maximum length of a tag Name/Value. MaxTagLiteralLength() uint16 }
TagSerializationLimits sets the limits around tag serialization.
func NewTagSerializationLimits ¶
func NewTagSerializationLimits() TagSerializationLimits
NewTagSerializationLimits returns a new TagSerializationLimits object.