defs

package
v0.0.100 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Category added in v0.0.100

func Category(name string) func(*schema.SerializedInvocation)

func Consumes added in v0.0.100

func Consumes(name string) func(*schema.SerializedInvocation)

func DependsOn added in v0.0.100

func DependsOn(name string) func(*schema.SerializedInvocation)

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 ...func(*schema.SerializedInvocation))

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)
}

Jump to

Keyboard shortcuts

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