pathreflect

package
v0.0.0-...-623d1b0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllPaths

func AllPaths[T RootPathBuilder[U], U ~[]protopath.Step](root T) []protopath.Path

Returns a list of all possible paths from the given root path builder.

func Value

func Value[T RootPathBuilder[U], U ~[]protopath.Step](msg T, path protopath.Path) protoreflect.Value

Returns the value at the given path in the message. This only supports the step kinds implemented by code generated from the path builder generator.

Types

type RootPathBuilder

type RootPathBuilder[T ~[]protopath.Step] interface {
	proto.Message
	ProtoPath() T
}

Jump to

Keyboard shortcuts

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