bridge

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 13

Documentation

Overview

Used internally for the RPC protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReturnTypeError

func ReturnTypeError(expected string) error

func UnwrapHeaders added in v0.7.0

func UnwrapHeaders(st *structpb.Struct) map[string][]string

func WrapByteString added in v0.10.0

func WrapByteString(s []byte) *kong_plugin_protocol.ByteString

func WrapHeaders added in v0.7.0

func WrapHeaders(h map[string][]string) (*structpb.Struct, error)

func WrapString added in v0.7.0

func WrapString(s string) *kong_plugin_protocol.String

Types

type PdkBridge

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

func New

func New(conn net.Conn) PdkBridge

func (PdkBridge) Ask

func (b PdkBridge) Ask(method string, args proto.Message, out proto.Message) error

func (PdkBridge) AskInt

func (b PdkBridge) AskInt(method string, args proto.Message) (int, error)

func (PdkBridge) AskNumber added in v0.7.0

func (b PdkBridge) AskNumber(method string, args proto.Message) (float64, error)

func (PdkBridge) AskString

func (b PdkBridge) AskString(method string, args proto.Message) (string, error)

func (PdkBridge) AskValue added in v0.7.0

func (b PdkBridge) AskValue(method string, args proto.Message) (interface{}, error)

func (PdkBridge) Close added in v0.7.0

func (b PdkBridge) Close() error

type StepData

type StepData struct {
	Method string
	Args   []interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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