genpackage

package
v0.0.224 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_codegen_genpackage_op_proto protoreflect.FileDescriptor

Functions

func ForLocationsGenCode

func ForLocationsGenCode(ctx context.Context, out pkggraph.MutableModule, env cfg.Context, locs []fnfs.Location, onError func(fnerrors.CodegenError)) error

ForLocationsGenCode generates code for all packages in `locs`. At this stage we assume protos are already generated.

func ForLocationsGenProto

func ForLocationsGenProto(ctx context.Context, out pkggraph.MutableModule, env cfg.Context, locs []fnfs.Location, onError func(fnerrors.CodegenError)) error

ForNodeLocations generates protos for Extensions and Services. Locations in `locs` are sorted in a topological order.

func ForNodeForLanguage

func ForNodeForLanguage(ctx context.Context, pkg *pkggraph.Package, available []*schema.Node) ([]*schema.SerializedInvocation, error)

func ForServer

func ForServer(pkg *pkggraph.Package, available []*schema.Node) ([]*schema.SerializedInvocation, error)

func ForServerAndDeps

func ForServerAndDeps(ctx context.Context, server planning.Server) ([]*schema.SerializedInvocation, error)

func ProtosForNode

func ProtosForNode(pkg *pkggraph.Package) ([]*schema.SerializedInvocation, error)

func Register

func Register()

Types

type OpGenNode

type OpGenNode struct {
	Node   *schema.Node                     `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	Protos *protos.FileDescriptorSetAndDeps `protobuf:"bytes,2,opt,name=protos,proto3" json:"protos,omitempty"`
	// contains filtered or unexported fields
}

func (*OpGenNode) Descriptor deprecated

func (*OpGenNode) Descriptor() ([]byte, []int)

Deprecated: Use OpGenNode.ProtoReflect.Descriptor instead.

func (*OpGenNode) GetNode

func (x *OpGenNode) GetNode() *schema.Node

func (*OpGenNode) GetProtos

func (x *OpGenNode) GetProtos() *protos.FileDescriptorSetAndDeps

func (*OpGenNode) ProtoMessage

func (*OpGenNode) ProtoMessage()

func (*OpGenNode) ProtoReflect

func (x *OpGenNode) ProtoReflect() protoreflect.Message

func (*OpGenNode) Reset

func (x *OpGenNode) Reset()

func (*OpGenNode) String

func (x *OpGenNode) String() string

Jump to

Keyboard shortcuts

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