present

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package present defines a presenter for formatting response types represented by the codec.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Presenter

type Presenter interface {
	// Format receives a response v and returns the formatted output as string.
	// Note that v is a type that belongs to the selected IDL.
	//
	// For example, v is a proto.Message if IDL is Protocol Buffers.
	Format(v interface{}) (string, error)
}

Presenter formats response types returned from the gRPC server for displaying it.

Directories

Path Synopsis
Package json provides a JSON presenter that formatting.
Package json provides a JSON presenter that formatting.
Package table provides a table like formatting.
Package table provides a table like formatting.

Jump to

Keyboard shortcuts

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