local_inttest_latest_guest

package
v0.4.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NilDecode   = errors.New("cannot decode into a nil root struct")
	InvalidEnum = errors.New("invalid enum value")
)

Functions

func New

func New(impl Interface) extension.Extension

Types

type Example

type Example interface {
	Hello(*Stringval) (Stringval, error)
}

type Host

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

type Interface

type Interface interface {
	New(params *Stringval) (Example, error)

	World(params *Stringval) (Stringval, error)
}

Interface must be implemented by the host.

type Stringval

type Stringval struct {
	Value string
}

func DecodeStringval

func DecodeStringval(x *Stringval, b []byte) (*Stringval, error)

func NewStringval

func NewStringval() *Stringval

func (*Stringval) Encode

func (x *Stringval) Encode(b *polyglot.Buffer)

Jump to

Keyboard shortcuts

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