json

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal added in v1.0.0

func Marshal(out io.Writer, pb proto.Message) error

func ReadAttribute

func ReadAttribute(iter *jsoniter.Iterator) otlpcommon.KeyValue

ReadAttribute Unmarshal JSON data and return otlpcommon.KeyValue

func ReadEnumValue

func ReadEnumValue(iter *jsoniter.Iterator, valueMap map[string]int32) int32

ReadEnumValue returns the enum integer value representation. Accepts both enum names and enum integer values. See https://developers.google.com/protocol-buffers/docs/proto3#json.

func ReadFloat64

func ReadFloat64(iter *jsoniter.Iterator) float64

func ReadInt32

func ReadInt32(iter *jsoniter.Iterator) int32

ReadInt32 unmarshalls JSON data into an int32. Accepts both numbers and strings decimal. See https://developers.google.com/protocol-buffers/docs/proto3#json.

func ReadInt64

func ReadInt64(iter *jsoniter.Iterator) int64

ReadInt64 unmarshalls JSON data into an int64. Accepts both numbers and strings decimal. See https://developers.google.com/protocol-buffers/docs/proto3#json.

func ReadResource added in v0.60.0

func ReadResource(iter *jsoniter.Iterator, resource *otlpresource.Resource)

func ReadScope

func ReadScope(iter *jsoniter.Iterator, scope *otlpcommon.InstrumentationScope)

func ReadUint32

func ReadUint32(iter *jsoniter.Iterator) uint32

ReadUint32 unmarshalls JSON data into an uint32. Accepts both numbers and strings decimal. See https://developers.google.com/protocol-buffers/docs/proto3#json.

func ReadUint64

func ReadUint64(iter *jsoniter.Iterator) uint64

ReadUint64 unmarshalls JSON data into an uint64. Accepts both numbers and strings decimal. See https://developers.google.com/protocol-buffers/docs/proto3#json.

func ReadValue added in v0.60.0

func ReadValue(iter *jsoniter.Iterator, val *otlpcommon.AnyValue)

ReadValue Unmarshal JSON data and return otlpcommon.AnyValue

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL