defs

package
v0.0.361 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Make

func Make[V MakeDefinition](ops ...V) ([]*schema.SerializedInvocation, error)

Types

type DefList

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

func (*DefList) Add

func (d *DefList) Add(description string, impl proto.Message, scope ...schema.PackageName)

func (*DefList) AddExt added in v0.0.100

func (d *DefList) AddExt(description string, impl proto.Message, transformers ...Transformer)

func (*DefList) AddProgram added in v0.0.139

func (d *DefList) AddProgram(p DefList)

func (*DefList) Serialize

func (d *DefList) Serialize() ([]*schema.SerializedInvocation, error)

type MakeDefinition

type MakeDefinition interface {
	ToDefinition(...schema.PackageName) (*schema.SerializedInvocation, error)
}

func Static

func Static(description string, impl proto.Message) MakeDefinition

type MakeExtension

type MakeExtension interface {
	ToDefinition() (*schema.DefExtension, error)
}

type Transformer added in v0.0.139

type Transformer func(*schema.SerializedInvocation)

func Category added in v0.0.100

func Category(names ...string) Transformer

func Consumes added in v0.0.100

func Consumes(name string) Transformer

func DependsOn added in v0.0.100

func DependsOn(names ...string) Transformer

func MinimumVersion added in v0.0.124

func MinimumVersion(version int32) Transformer

Jump to

Keyboard shortcuts

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