terminal

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package terminal provides the GRPC terminal implementations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UIPlugin

type UIPlugin struct {
	plugin.NetRPCUnsupportedPlugin

	Impl    terminal.UI       // Impl is the concrete implementation
	Mappers []*argmapper.Func // Mappers
	Logger  hclog.Logger      // Logger
}

UIPlugin implements plugin.Plugin (specifically GRPCPlugin) for the terminal.UI interface.

func (*UIPlugin) GRPCClient

func (p *UIPlugin) GRPCClient(
	ctx context.Context,
	_ *plugin.GRPCBroker,
	c *grpc.ClientConn,
) (interface{}, error)

GRPCClient returns the GRPC client

func (*UIPlugin) GRPCServer

func (p *UIPlugin) GRPCServer(_ *plugin.GRPCBroker, s *grpc.Server) error

GRPCServer returns the GRPC server

Jump to

Keyboard shortcuts

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