proto

package
v0.10.11 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package proto provides a filler implementation for Protocol Buffers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InteractiveFiller

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

InteractiveFiller is an implementation of fill.InteractiveFiller. It let you input request fields interactively.

func NewInteractiveFiller

func NewInteractiveFiller(prompt prompt.Prompt, prefixFormat string) *InteractiveFiller

NewInteractiveFiller instantiates a new filler that fills each field interactively.

func (*InteractiveFiller) Fill

func (f *InteractiveFiller) Fill(v interface{}, opts fill.InteractiveFillerOpts) error

Fill receives v that is an instance of *dynamic.Message. Fill let you input each field interactively by using a prompt. v will be set field values inputted by a prompt.

Note that Fill resets the previous state when it is called again.

Jump to

Keyboard shortcuts

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