...

Package tagencoding

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

Overview ▾

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

type Values

Values represent the encoded buffer for the values.

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

func (*Values) Bytes

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

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

func (*Values) ReadValue

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

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

func (*Values) WriteValue

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

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