provider

package
v0.0.397 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ProtocolVersion = "1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Message added in v0.0.108

type Message struct {
	Version                string  `json:"version"`
	SerializedInstanceJSON *string `json:"serialized_instance,omitempty"`
}

type Provider added in v0.0.108

type Provider[T any] struct {
	Context   ProviderContext
	Intent    T
	Resources *resources.Parsed
}

func MustPrepare

func MustPrepare[T any]() (context.Context, *Provider[T])

func (*Provider[T]) EmitResult added in v0.0.108

func (p *Provider[T]) EmitResult(instance any)

type ProviderContext added in v0.0.108

type ProviderContext struct {
	ProtocolVersion string `json:"protocol_version"`
}

Jump to

Keyboard shortcuts

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