go.opencensus.io: go.opencensus.io/internal/tagencoding Index | Files

package tagencoding

import "go.opencensus.io/internal/tagencoding"

Package tagencoding contains the tag encoding used interally by the stats collector.


Package Files


type Values Uses

type Values struct {
    Buffer     []byte
    WriteIndex int
    ReadIndex  int

Values represent the encoded buffer for the values.

func (*Values) Bytes Uses

func (vb *Values) Bytes() []byte

Bytes returns a reference to already written bytes in the Buffer.

func (*Values) ReadValue Uses

func (vb *Values) ReadValue() []byte

ReadValue is the helper method to decode Values to a map[Key][]byte.

func (*Values) WriteValue Uses

func (vb *Values) WriteValue(v []byte)

WriteValue is the helper method to encode Values from map[Key][]byte.

Package tagencoding is imported by 2 packages. Updated 2019-03-16. Refresh now. Tools for package owners.