gateway

package
v0.0.0-...-55db854 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownOneofFieldName = errors.New("unknown oneof field name")
	ErrUnknownEnumName       = errors.New("unknown enum name")
	EORF                     = errors.New("end of repeated field")
)

Functions

This section is empty.

Types

type DynamicBuilder

type DynamicBuilder struct{}

func NewDynamicBuilder

func NewDynamicBuilder() *DynamicBuilder

func (*DynamicBuilder) NewMessage

func (b *DynamicBuilder) NewMessage(m entity.Message) proto.Message

type GRPCClient

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

func NewGRPCClient

func NewGRPCClient(config *config.Config) (*GRPCClient, error)

func (*GRPCClient) Invoke

func (c *GRPCClient) Invoke(ctx context.Context, fqrn string, req, res interface{}) error

type JSONFileInputter

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

func NewJSONFileInputter

func NewJSONFileInputter(in io.Reader) *JSONFileInputter

func (*JSONFileInputter) Input

func (i *JSONFileInputter) Input(reqType entity.Message) (proto.Message, error)

type Prompt

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

func NewPrompt

func NewPrompt(config *config.Config, env entity.Environment) *Prompt

mixin go-prompt

func (*Prompt) Input

func (i *Prompt) Input(reqType entity.Message) (proto.Message, error)

impl of port.Inputter

type RealPrompter

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

func (*RealPrompter) Input

func (p *RealPrompter) Input() string

func (*RealPrompter) Select

func (p *RealPrompter) Select(msg string, opts []string) (string, error)

func (*RealPrompter) SetPrefix

func (p *RealPrompter) SetPrefix(prefix string)

func (*RealPrompter) SetPrefixColor

func (p *RealPrompter) SetPrefixColor(color prompt.Color) error

Jump to

Keyboard shortcuts

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