Help us shape the future of Go! Take the 2026 Go Developer Survey

bind

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package bind links code symbols to contract operations (OpenAPI / GraphQL / gRPC) via best-effort heuristics.

Index

Constants

View Source
const (
	MatchOperationID = "operation_id"
	MatchPathLiteral = "path_literal"
)

Match reasons stored on implements/consumes edge props["match"] (SYN-17).

Variables

This section is empty.

Functions

func Bind

func Bind(opts Options) error

Bind clears the overlay (if any), then writes implements/consumes edges.

Types

type Member

type Member struct {
	Name  string
	Root  string // filesystem root for re-reading sources
	Store graph.Store
}

Member is one indexed workspace repo available to the binder.

type Options

type Options struct {
	Members []Member
	// Overlay holds cross-repo implements/consumes edges (IDs = repo:// URIs).
	// Nil is fine for single-repo same-store binding only.
	Overlay graph.Store
}

Options configure Bind.

Jump to

Keyboard shortcuts

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