Documentation ¶
Index ¶
- Variables
- func ForLocationsGenCode(ctx context.Context, out pkggraph.MutableModule, env cfg.Context, ...) error
- func ForLocationsGenProto(ctx context.Context, out pkggraph.MutableModule, env cfg.Context, ...) error
- func ForNodeForLanguage(ctx context.Context, pkg *pkggraph.Package, available []*schema.Node) ([]*schema.SerializedInvocation, error)
- func ForServer(pkg *pkggraph.Package, available []*schema.Node) ([]*schema.SerializedInvocation, error)
- func ForServerAndDeps(ctx context.Context, server planning.Server) ([]*schema.SerializedInvocation, error)
- func ProtosForNode(pkg *pkggraph.Package) ([]*schema.SerializedInvocation, error)
- func Register()
- type OpGenNode
- func (*OpGenNode) Descriptor() ([]byte, []int)deprecated
- func (x *OpGenNode) GetNode() *schema.Node
- func (x *OpGenNode) GetProtos() *protos.FileDescriptorSetAndDeps
- func (*OpGenNode) ProtoMessage()
- func (x *OpGenNode) ProtoReflect() protoreflect.Message
- func (x *OpGenNode) Reset()
- func (x *OpGenNode) String() string
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 ForServerAndDeps ¶
func ProtosForNode ¶
func ProtosForNode(pkg *pkggraph.Package) ([]*schema.SerializedInvocation, error)
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) GetProtos ¶
func (x *OpGenNode) GetProtos() *protos.FileDescriptorSetAndDeps
func (*OpGenNode) ProtoMessage ¶
func (*OpGenNode) ProtoMessage()
func (*OpGenNode) ProtoReflect ¶
func (x *OpGenNode) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.