conversion

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package conversion contains shared utility functions for converting xDS resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MessageToStruct

func MessageToStruct(msg proto.Message) (*structpb.Struct, error)

MessageToStruct encodes a protobuf Message into a Struct. Hilariously, it uses JSON as the intermediary author:glen@turbinelabs.io

func StructToMessage

func StructToMessage(pbst *structpb.Struct, out proto.Message) error

StructToMessage decodes a protobuf Message from a Struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

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