defs

package
v0.0.77 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 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) 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