Documentation ¶
Overview ¶
Package arg2 contains tchannel thrift Arg2 interfaces for external use.
These interfaces are currently unstable, and aren't covered by the API backwards-compatibility guarantee.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValIterator ¶
type KeyValIterator struct {
// contains filtered or unexported fields
}
KeyValIterator is a iterator for reading tchannel-thrift Arg2 Scheme, which has key/value pairs (k~2 v~2). NOTE: to be optimized for performance, we try to limit the allocation done in the process of iteration.
func NewKeyValIterator ¶
func NewKeyValIterator(arg2Payload []byte) (KeyValIterator, error)
NewKeyValIterator inits a KeyValIterator with the buffer pointing at start of Arg2. Return io.EOF if no iterator is available. NOTE: tchannel-thrift Arg Scheme starts with number of key/value pair.
func (KeyValIterator) Next ¶
func (i KeyValIterator) Next() (KeyValIterator, error)
Next returns next iterator. Return io.EOF if no more key/value pair is available.