grpcdecode

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyReflectionTarget = errors.New("grpcdecode: empty reflection target")

ErrEmptyReflectionTarget is returned by FromReflection when an empty target string is supplied.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	Decode(reqBody, resBody []byte, ev *model.Event) error
}

func FromDescriptorsFile

func FromDescriptorsFile(path string) (Decoder, error)

func FromReflection

func FromReflection(target string) (Decoder, error)

FromReflection is optional; for now it returns a decoder that marks decoded=false if no descriptors are available. Hooking real reflection can be added later.

Jump to

Keyboard shortcuts

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