prettyprinter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalRegistry atomic.Pointer[Registry]

Functions

func PrettyPrintTo

func PrettyPrintTo(buf []byte, detail *anypb.Any) []byte

Types

type PrettyPrinter

type PrettyPrinter interface {
	PrettyPrintTo(buf []byte, detail *anypb.Any) []byte
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func (*Registry) Add

func (reg *Registry) Add(typeURL string, pp PrettyPrinter)

func (*Registry) Find

func (reg *Registry) Find(typeURL string) PrettyPrinter

func (*Registry) PrettyPrintTo

func (reg *Registry) PrettyPrintTo(buf []byte, detail *anypb.Any) []byte

func (*Registry) Remove

func (reg *Registry) Remove(typeURL string)

Jump to

Keyboard shortcuts

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