protoconnect

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// SysMLServiceGetServerInfoProcedure is the fully-qualified name of the SysMLService's
	// GetServerInfo RPC.
	SysMLServiceGetServerInfoProcedure = "/sysml.SysMLService/GetServerInfo"
	// SysMLServiceParseFileProcedure is the fully-qualified name of the SysMLService's ParseFile RPC.
	SysMLServiceParseFileProcedure = "/sysml.SysMLService/ParseFile"
	// SysMLServiceParseSourcesProcedure is the fully-qualified name of the SysMLService's ParseSources
	// RPC.
	SysMLServiceParseSourcesProcedure = "/sysml.SysMLService/ParseSources"
	// SysMLServiceGetSymbolProcedure is the fully-qualified name of the SysMLService's GetSymbol RPC.
	SysMLServiceGetSymbolProcedure = "/sysml.SysMLService/GetSymbol"
	// SysMLServiceGetDiagnosticsProcedure is the fully-qualified name of the SysMLService's
	// GetDiagnostics RPC.
	SysMLServiceGetDiagnosticsProcedure = "/sysml.SysMLService/GetDiagnostics"
	// SysMLServiceEvaluateProcedure is the fully-qualified name of the SysMLService's Evaluate RPC.
	SysMLServiceEvaluateProcedure = "/sysml.SysMLService/Evaluate"
	// SysMLServiceInstantiateProcedure is the fully-qualified name of the SysMLService's Instantiate
	// RPC.
	SysMLServiceInstantiateProcedure = "/sysml.SysMLService/Instantiate"
	// SysMLServiceExecuteActionProcedure is the fully-qualified name of the SysMLService's
	// ExecuteAction RPC.
	SysMLServiceExecuteActionProcedure = "/sysml.SysMLService/ExecuteAction"
	// SysMLServiceExecuteStateProcedure is the fully-qualified name of the SysMLService's ExecuteState
	// RPC.
	SysMLServiceExecuteStateProcedure = "/sysml.SysMLService/ExecuteState"
	// SysMLServiceConvertProcedure is the fully-qualified name of the SysMLService's Convert RPC.
	SysMLServiceConvertProcedure = "/sysml.SysMLService/Convert"
	// SysMLServiceMigrateProcedure is the fully-qualified name of the SysMLService's Migrate RPC.
	SysMLServiceMigrateProcedure = "/sysml.SysMLService/Migrate"
	// SysMLServiceApplyEditsProcedure is the fully-qualified name of the SysMLService's ApplyEdits RPC.
	SysMLServiceApplyEditsProcedure = "/sysml.SysMLService/ApplyEdits"
	// SysMLServiceVerifyConstraintProcedure is the fully-qualified name of the SysMLService's
	// VerifyConstraint RPC.
	SysMLServiceVerifyConstraintProcedure = "/sysml.SysMLService/VerifyConstraint"
	// SysMLServiceVerifyRequirementProcedure is the fully-qualified name of the SysMLService's
	// VerifyRequirement RPC.
	SysMLServiceVerifyRequirementProcedure = "/sysml.SysMLService/VerifyRequirement"
	// SysMLServiceVerifySatisfactionProcedure is the fully-qualified name of the SysMLService's
	// VerifySatisfaction RPC.
	SysMLServiceVerifySatisfactionProcedure = "/sysml.SysMLService/VerifySatisfaction"
	// SysMLServiceValidateInstanceProcedure is the fully-qualified name of the SysMLService's
	// ValidateInstance RPC.
	SysMLServiceValidateInstanceProcedure = "/sysml.SysMLService/ValidateInstance"
	// SysMLServiceEvaluateCalcProcedure is the fully-qualified name of the SysMLService's EvaluateCalc
	// RPC.
	SysMLServiceEvaluateCalcProcedure = "/sysml.SysMLService/EvaluateCalc"
	// SysMLServiceRunAnalysisProcedure is the fully-qualified name of the SysMLService's RunAnalysis
	// RPC.
	SysMLServiceRunAnalysisProcedure = "/sysml.SysMLService/RunAnalysis"
	// SysMLServiceCheckBehaviorProcedure is the fully-qualified name of the SysMLService's
	// CheckBehavior RPC.
	SysMLServiceCheckBehaviorProcedure = "/sysml.SysMLService/CheckBehavior"
	// SysMLServiceRunSweepProcedure is the fully-qualified name of the SysMLService's RunSweep RPC.
	SysMLServiceRunSweepProcedure = "/sysml.SysMLService/RunSweep"
	// SysMLServiceRunRunsProcedure is the fully-qualified name of the SysMLService's RunRuns RPC.
	SysMLServiceRunRunsProcedure = "/sysml.SysMLService/RunRuns"
	// SysMLServiceSelfCheckProcedure is the fully-qualified name of the SysMLService's SelfCheck RPC.
	SysMLServiceSelfCheckProcedure = "/sysml.SysMLService/SelfCheck"
	// SysMLServiceRecordRunProcedure is the fully-qualified name of the SysMLService's RecordRun RPC.
	SysMLServiceRecordRunProcedure = "/sysml.SysMLService/RecordRun"
	// SysMLServiceListEnginesProcedure is the fully-qualified name of the SysMLService's ListEngines
	// RPC.
	SysMLServiceListEnginesProcedure = "/sysml.SysMLService/ListEngines"
	// SysMLServiceQueryProcedure is the fully-qualified name of the SysMLService's Query RPC.
	SysMLServiceQueryProcedure = "/sysml.SysMLService/Query"
	// SysMLServiceRunDocumentQueryProcedure is the fully-qualified name of the SysMLService's
	// RunDocumentQuery RPC.
	SysMLServiceRunDocumentQueryProcedure = "/sysml.SysMLService/RunDocumentQuery"
	// SysMLServiceRenderDocumentProcedure is the fully-qualified name of the SysMLService's
	// RenderDocument RPC.
	SysMLServiceRenderDocumentProcedure = "/sysml.SysMLService/RenderDocument"
	// SysMLServiceRenderViewProcedure is the fully-qualified name of the SysMLService's RenderView RPC.
	SysMLServiceRenderViewProcedure = "/sysml.SysMLService/RenderView"
	// SysMLServiceExportGraphsProcedure is the fully-qualified name of the SysMLService's ExportGraphs
	// RPC.
	SysMLServiceExportGraphsProcedure = "/sysml.SysMLService/ExportGraphs"
	// SysMLServiceImportDataProcedure is the fully-qualified name of the SysMLService's ImportData RPC.
	SysMLServiceImportDataProcedure = "/sysml.SysMLService/ImportData"
	// SysMLServiceCompareResultsProcedure is the fully-qualified name of the SysMLService's
	// CompareResults RPC.
	SysMLServiceCompareResultsProcedure = "/sysml.SysMLService/CompareResults"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// SysMLServiceName is the fully-qualified name of the SysMLService service.
	SysMLServiceName = "sysml.SysMLService"
)

Variables

This section is empty.

Functions

func NewSysMLServiceHandler

func NewSysMLServiceHandler(svc SysMLServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSysMLServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type SysMLServiceClient

type SysMLServiceClient interface {
	// Report what this build of the service can do, so a client can require a
	// capability instead of guessing from a version string. A service that
	// predates this RPC answers UNIMPLEMENTED, which is itself the answer.
	GetServerInfo(context.Context, *connect.Request[proto.ServerInfoRequest]) (*connect.Response[proto.ServerInfoResponse], error)
	// Parse a SysML file and return model hash for subsequent queries
	ParseFile(context.Context, *connect.Request[proto.ParseFileRequest]) (*connect.Response[proto.ParseFileResponse], error)
	// Parse several documents as one model, so a name one document declares
	// resolves in another and an import between them is satisfied. Reported as
	// the "parse_sources" capability.
	ParseSources(context.Context, *connect.Request[proto.ParseSourcesRequest]) (*connect.Response[proto.ParseSourcesResponse], error)
	// Get symbol information by qualified name
	GetSymbol(context.Context, *connect.Request[proto.GetSymbolRequest]) (*connect.Response[proto.SymbolResponse], error)
	// Get all diagnostics for a parsed model
	GetDiagnostics(context.Context, *connect.Request[proto.DiagnosticsRequest]) (*connect.Response[proto.DiagnosticsResponse], error)
	// Runtime operations (Phase 4)
	Evaluate(context.Context, *connect.Request[proto.EvaluateRequest]) (*connect.Response[proto.EvaluateResponse], error)
	Instantiate(context.Context, *connect.Request[proto.InstantiateRequest]) (*connect.Response[proto.InstantiateResponse], error)
	ExecuteAction(context.Context, *connect.Request[proto.ExecuteActionRequest]) (*connect.Response[proto.ExecuteActionResponse], error)
	ExecuteState(context.Context, *connect.Request[proto.ExecuteStateRequest]) (*connect.Response[proto.ExecuteStateResponse], error)
	// Convert a model between the representations OpenSysML writes — SysML
	// textual notation and RDF Turtle — so a client can write a model back out
	// rather than only read it. A SysML v1 model is refused: it is migrated, not
	// converted (Migrate). Reported as the "convert" capability.
	Convert(context.Context, *connect.Request[proto.ConvertRequest]) (*connect.Response[proto.ConvertResponse], error)
	// Migrate a SysML v1 model — UML XMI with the SysML profile applied, an
	// Eclipse UML2 .uml file or a Cameo/MagicDraw .mdzip archive — to SysML v2,
	// written in one of the representations Convert writes. Migration is not a
	// lossless conversion: every v1 element is mapped, approximated or left
	// unmapped, and the response's report says which, element by element.
	// Reported as the "migrate" capability.
	Migrate(context.Context, *connect.Request[proto.MigrateRequest]) (*connect.Response[proto.MigrateResponse], error)
	// Apply edits to a parsed model's own source and return the edited notation,
	// so a client can change a model and write it back with its comments and
	// layout intact. Edits are byte ranges the service locates from the parsed
	// spans, and the result is re-parsed and validated before it is returned.
	// Reported as the "apply_edits" capability.
	ApplyEdits(context.Context, *connect.Request[proto.ApplyEditsRequest]) (*connect.Response[proto.ApplyEditsResponse], error)
	// Verification: the answers the REPL's %constraint, %requirement, %satisfy,
	// %calc and %analysis give, so "does this model satisfy its requirements?"
	// can be asked by a script. Each evaluates the same runtime paths the prompt
	// does and returns a verdict rather than formatted lines. Reported as the
	// "verification" capability.
	VerifyConstraint(context.Context, *connect.Request[proto.VerifyConstraintRequest]) (*connect.Response[proto.VerifyConstraintResponse], error)
	VerifyRequirement(context.Context, *connect.Request[proto.VerifyRequirementRequest]) (*connect.Response[proto.VerifyRequirementResponse], error)
	VerifySatisfaction(context.Context, *connect.Request[proto.VerifySatisfactionRequest]) (*connect.Response[proto.VerifySatisfactionResponse], error)
	// Validate an object as a whole, as the REPL's %validate and the CLI's
	// -validate=<object> do: every assertion about an object of the named part
	// and about the objects it holds — the asserted constraints of their types,
	// the requirements they carry and the satisfactions they are the subject of —
	// each answered on the concrete object it is about. Reported as the
	// "verification" capability.
	ValidateInstance(context.Context, *connect.Request[proto.ValidateInstanceRequest]) (*connect.Response[proto.ValidateInstanceResponse], error)
	EvaluateCalc(context.Context, *connect.Request[proto.EvaluateCalcRequest]) (*connect.Response[proto.EvaluateCalcResponse], error)
	RunAnalysis(context.Context, *connect.Request[proto.RunAnalysisRequest]) (*connect.Response[proto.RunAnalysisResponse], error)
	// CheckBehavior searches every schedule of an action or state machine, as
	// `sysml -check-property`/`-check-diverge` do: a violated property, a
	// deadlock, a failure or a divergent feature is witnessed and replayed.
	CheckBehavior(context.Context, *connect.Request[proto.CheckBehaviorRequest]) (*connect.Response[proto.CheckBehaviorResponse], error)
	// Run one analysis case or calc once per row of a parameter sweep, as the
	// CLI's -sweep and the REPL's %sweep do: each row is an ordinary run with the
	// swept parameter bound to that row's value. Reported as the "verification"
	// capability.
	RunSweep(context.Context, *connect.Request[proto.RunSweepRequest]) (*connect.Response[proto.RunSweepResponse], error)
	// Run an action, or a Simulation::MonteCarlo analysis case, a number of
	// times, each run seeded from the request's seed, and table what the runs
	// observed with each observable's distribution, as the CLI's -runs/-observe
	// do. Reported as the "runs" capability.
	RunRuns(context.Context, *connect.Request[proto.RunRunsRequest]) (*connect.Response[proto.RunRunsResponse], error)
	// SelfCheck applies the SysMLValidation constraints, and those of any rule
	// packages, reflectively to every element of the model, as `sysml -self-check`
	// does. Reported as the "self_check" capability.
	SelfCheck(context.Context, *connect.Request[proto.SelfCheckRequest]) (*connect.Response[proto.SelfCheckResponse], error)
	// RecordRun runs an analysis case — once, over the rows of a sweep, or as a
	// Monte Carlo sample — and records the runs into the model as AnalysisRecords
	// declarations, as `sysml -record-run` does. Reported as the "record_run"
	// capability.
	RecordRun(context.Context, *connect.Request[proto.RecordRunRequest]) (*connect.Response[proto.RecordRunResponse], error)
	// List the analysis engines this build registers, as the CLI's -engines and
	// the REPL's %engines do: each with the questions it answers, the strongest
	// evidence it can produce and whether it can run. Reported as the "engines"
	// capability, which also names the `engine` request fields and the `engine`,
	// `strength` and `bounds` response fields of the verification RPCs. The
	// engines registered from manifests are listed with their origin and whether
	// this service serves them; the "engines_external" capability is advertised
	// only when it was started to serve them.
	ListEngines(context.Context, *connect.Request[proto.ListEnginesRequest]) (*connect.Response[proto.ListEnginesResponse], error)
	// Run a SysML v2 API & Services Query over a parsed model: scope/select/where
	// as the standard defines them, so a client that speaks that API can filter a
	// model here. Reported as the "query" capability.
	Query(context.Context, *connect.Request[proto.QueryRequest]) (*connect.Response[proto.QueryResponse], error)
	// Run a named document query with parameter bindings, the answer the REPL's
	// %run-query gives, as typed rows rather than formatted lines. Reported as
	// the "document_query" capability.
	RunDocumentQuery(context.Context, *connect.Request[proto.RunDocumentQueryRequest]) (*connect.Response[proto.RunDocumentQueryResponse], error)
	// Render a named document to Markdown, as the CLI's -render-document does.
	// Reported as the "render_document" capability.
	RenderDocument(context.Context, *connect.Request[proto.RenderDocumentRequest]) (*connect.Response[proto.RenderDocumentResponse], error)
	// Render a named view or targeted pseudo-view as machine-readable diagram
	// data. Reported as the "render_view" capability.
	RenderView(context.Context, *connect.Request[proto.RenderViewRequest]) (*connect.Response[proto.RenderViewResponse], error)
	// Export the lowered graph of an action or a state machine — the subject's
	// and every behavior it performs — as the canonical `graphs:<version>` JSON
	// external analysis engines read. Reported as the "export_graphs" capability.
	ExportGraphs(context.Context, *connect.Request[proto.ExportGraphsRequest]) (*connect.Response[proto.ExportGraphsResponse], error)
	// Set the feature values a CSV, TSV, JSON or JSON Lines file assigns, one row
	// per element, as `sysml -import` does: a feature the element declares has its
	// value set, one it inherits is redefined with the value; a dry run reports the
	// values without changing the model. Reported as the "import_data" capability.
	ImportData(context.Context, *connect.Request[proto.ImportDataRequest]) (*connect.Response[proto.ImportDataResponse], error)
	// Run every configuration a SysML v1 tool's results sidecar indexes, as
	// `sysml -compare-results` does, and table the tool's and OpenSysML's min,
	// mean, p50, p90 and max of each observable with their relative difference.
	// Reported as the "compare_results" capability.
	CompareResults(context.Context, *connect.Request[proto.CompareResultsRequest]) (*connect.Response[proto.CompareResultsResponse], error)
}

SysMLServiceClient is a client for the sysml.SysMLService service.

func NewSysMLServiceClient

func NewSysMLServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SysMLServiceClient

NewSysMLServiceClient constructs a client for the sysml.SysMLService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type SysMLServiceHandler

type SysMLServiceHandler interface {
	// Report what this build of the service can do, so a client can require a
	// capability instead of guessing from a version string. A service that
	// predates this RPC answers UNIMPLEMENTED, which is itself the answer.
	GetServerInfo(context.Context, *connect.Request[proto.ServerInfoRequest]) (*connect.Response[proto.ServerInfoResponse], error)
	// Parse a SysML file and return model hash for subsequent queries
	ParseFile(context.Context, *connect.Request[proto.ParseFileRequest]) (*connect.Response[proto.ParseFileResponse], error)
	// Parse several documents as one model, so a name one document declares
	// resolves in another and an import between them is satisfied. Reported as
	// the "parse_sources" capability.
	ParseSources(context.Context, *connect.Request[proto.ParseSourcesRequest]) (*connect.Response[proto.ParseSourcesResponse], error)
	// Get symbol information by qualified name
	GetSymbol(context.Context, *connect.Request[proto.GetSymbolRequest]) (*connect.Response[proto.SymbolResponse], error)
	// Get all diagnostics for a parsed model
	GetDiagnostics(context.Context, *connect.Request[proto.DiagnosticsRequest]) (*connect.Response[proto.DiagnosticsResponse], error)
	// Runtime operations (Phase 4)
	Evaluate(context.Context, *connect.Request[proto.EvaluateRequest]) (*connect.Response[proto.EvaluateResponse], error)
	Instantiate(context.Context, *connect.Request[proto.InstantiateRequest]) (*connect.Response[proto.InstantiateResponse], error)
	ExecuteAction(context.Context, *connect.Request[proto.ExecuteActionRequest]) (*connect.Response[proto.ExecuteActionResponse], error)
	ExecuteState(context.Context, *connect.Request[proto.ExecuteStateRequest]) (*connect.Response[proto.ExecuteStateResponse], error)
	// Convert a model between the representations OpenSysML writes — SysML
	// textual notation and RDF Turtle — so a client can write a model back out
	// rather than only read it. A SysML v1 model is refused: it is migrated, not
	// converted (Migrate). Reported as the "convert" capability.
	Convert(context.Context, *connect.Request[proto.ConvertRequest]) (*connect.Response[proto.ConvertResponse], error)
	// Migrate a SysML v1 model — UML XMI with the SysML profile applied, an
	// Eclipse UML2 .uml file or a Cameo/MagicDraw .mdzip archive — to SysML v2,
	// written in one of the representations Convert writes. Migration is not a
	// lossless conversion: every v1 element is mapped, approximated or left
	// unmapped, and the response's report says which, element by element.
	// Reported as the "migrate" capability.
	Migrate(context.Context, *connect.Request[proto.MigrateRequest]) (*connect.Response[proto.MigrateResponse], error)
	// Apply edits to a parsed model's own source and return the edited notation,
	// so a client can change a model and write it back with its comments and
	// layout intact. Edits are byte ranges the service locates from the parsed
	// spans, and the result is re-parsed and validated before it is returned.
	// Reported as the "apply_edits" capability.
	ApplyEdits(context.Context, *connect.Request[proto.ApplyEditsRequest]) (*connect.Response[proto.ApplyEditsResponse], error)
	// Verification: the answers the REPL's %constraint, %requirement, %satisfy,
	// %calc and %analysis give, so "does this model satisfy its requirements?"
	// can be asked by a script. Each evaluates the same runtime paths the prompt
	// does and returns a verdict rather than formatted lines. Reported as the
	// "verification" capability.
	VerifyConstraint(context.Context, *connect.Request[proto.VerifyConstraintRequest]) (*connect.Response[proto.VerifyConstraintResponse], error)
	VerifyRequirement(context.Context, *connect.Request[proto.VerifyRequirementRequest]) (*connect.Response[proto.VerifyRequirementResponse], error)
	VerifySatisfaction(context.Context, *connect.Request[proto.VerifySatisfactionRequest]) (*connect.Response[proto.VerifySatisfactionResponse], error)
	// Validate an object as a whole, as the REPL's %validate and the CLI's
	// -validate=<object> do: every assertion about an object of the named part
	// and about the objects it holds — the asserted constraints of their types,
	// the requirements they carry and the satisfactions they are the subject of —
	// each answered on the concrete object it is about. Reported as the
	// "verification" capability.
	ValidateInstance(context.Context, *connect.Request[proto.ValidateInstanceRequest]) (*connect.Response[proto.ValidateInstanceResponse], error)
	EvaluateCalc(context.Context, *connect.Request[proto.EvaluateCalcRequest]) (*connect.Response[proto.EvaluateCalcResponse], error)
	RunAnalysis(context.Context, *connect.Request[proto.RunAnalysisRequest]) (*connect.Response[proto.RunAnalysisResponse], error)
	// CheckBehavior searches every schedule of an action or state machine, as
	// `sysml -check-property`/`-check-diverge` do: a violated property, a
	// deadlock, a failure or a divergent feature is witnessed and replayed.
	CheckBehavior(context.Context, *connect.Request[proto.CheckBehaviorRequest]) (*connect.Response[proto.CheckBehaviorResponse], error)
	// Run one analysis case or calc once per row of a parameter sweep, as the
	// CLI's -sweep and the REPL's %sweep do: each row is an ordinary run with the
	// swept parameter bound to that row's value. Reported as the "verification"
	// capability.
	RunSweep(context.Context, *connect.Request[proto.RunSweepRequest]) (*connect.Response[proto.RunSweepResponse], error)
	// Run an action, or a Simulation::MonteCarlo analysis case, a number of
	// times, each run seeded from the request's seed, and table what the runs
	// observed with each observable's distribution, as the CLI's -runs/-observe
	// do. Reported as the "runs" capability.
	RunRuns(context.Context, *connect.Request[proto.RunRunsRequest]) (*connect.Response[proto.RunRunsResponse], error)
	// SelfCheck applies the SysMLValidation constraints, and those of any rule
	// packages, reflectively to every element of the model, as `sysml -self-check`
	// does. Reported as the "self_check" capability.
	SelfCheck(context.Context, *connect.Request[proto.SelfCheckRequest]) (*connect.Response[proto.SelfCheckResponse], error)
	// RecordRun runs an analysis case — once, over the rows of a sweep, or as a
	// Monte Carlo sample — and records the runs into the model as AnalysisRecords
	// declarations, as `sysml -record-run` does. Reported as the "record_run"
	// capability.
	RecordRun(context.Context, *connect.Request[proto.RecordRunRequest]) (*connect.Response[proto.RecordRunResponse], error)
	// List the analysis engines this build registers, as the CLI's -engines and
	// the REPL's %engines do: each with the questions it answers, the strongest
	// evidence it can produce and whether it can run. Reported as the "engines"
	// capability, which also names the `engine` request fields and the `engine`,
	// `strength` and `bounds` response fields of the verification RPCs. The
	// engines registered from manifests are listed with their origin and whether
	// this service serves them; the "engines_external" capability is advertised
	// only when it was started to serve them.
	ListEngines(context.Context, *connect.Request[proto.ListEnginesRequest]) (*connect.Response[proto.ListEnginesResponse], error)
	// Run a SysML v2 API & Services Query over a parsed model: scope/select/where
	// as the standard defines them, so a client that speaks that API can filter a
	// model here. Reported as the "query" capability.
	Query(context.Context, *connect.Request[proto.QueryRequest]) (*connect.Response[proto.QueryResponse], error)
	// Run a named document query with parameter bindings, the answer the REPL's
	// %run-query gives, as typed rows rather than formatted lines. Reported as
	// the "document_query" capability.
	RunDocumentQuery(context.Context, *connect.Request[proto.RunDocumentQueryRequest]) (*connect.Response[proto.RunDocumentQueryResponse], error)
	// Render a named document to Markdown, as the CLI's -render-document does.
	// Reported as the "render_document" capability.
	RenderDocument(context.Context, *connect.Request[proto.RenderDocumentRequest]) (*connect.Response[proto.RenderDocumentResponse], error)
	// Render a named view or targeted pseudo-view as machine-readable diagram
	// data. Reported as the "render_view" capability.
	RenderView(context.Context, *connect.Request[proto.RenderViewRequest]) (*connect.Response[proto.RenderViewResponse], error)
	// Export the lowered graph of an action or a state machine — the subject's
	// and every behavior it performs — as the canonical `graphs:<version>` JSON
	// external analysis engines read. Reported as the "export_graphs" capability.
	ExportGraphs(context.Context, *connect.Request[proto.ExportGraphsRequest]) (*connect.Response[proto.ExportGraphsResponse], error)
	// Set the feature values a CSV, TSV, JSON or JSON Lines file assigns, one row
	// per element, as `sysml -import` does: a feature the element declares has its
	// value set, one it inherits is redefined with the value; a dry run reports the
	// values without changing the model. Reported as the "import_data" capability.
	ImportData(context.Context, *connect.Request[proto.ImportDataRequest]) (*connect.Response[proto.ImportDataResponse], error)
	// Run every configuration a SysML v1 tool's results sidecar indexes, as
	// `sysml -compare-results` does, and table the tool's and OpenSysML's min,
	// mean, p50, p90 and max of each observable with their relative difference.
	// Reported as the "compare_results" capability.
	CompareResults(context.Context, *connect.Request[proto.CompareResultsRequest]) (*connect.Response[proto.CompareResultsResponse], error)
}

SysMLServiceHandler is an implementation of the sysml.SysMLService service.

type UnimplementedSysMLServiceHandler

type UnimplementedSysMLServiceHandler struct{}

UnimplementedSysMLServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedSysMLServiceHandler) CheckBehavior added in v0.11.0

func (UnimplementedSysMLServiceHandler) CompareResults added in v0.11.0

func (UnimplementedSysMLServiceHandler) ExportGraphs added in v0.10.0

func (UnimplementedSysMLServiceHandler) ImportData added in v0.11.0

func (UnimplementedSysMLServiceHandler) ListEngines added in v0.8.0

func (UnimplementedSysMLServiceHandler) Migrate added in v0.10.0

func (UnimplementedSysMLServiceHandler) ParseSources added in v0.4.2

func (UnimplementedSysMLServiceHandler) RecordRun added in v0.11.0

func (UnimplementedSysMLServiceHandler) RenderDocument added in v0.4.2

func (UnimplementedSysMLServiceHandler) RenderView added in v0.10.0

func (UnimplementedSysMLServiceHandler) RunAnalysis added in v0.6.0

func (UnimplementedSysMLServiceHandler) RunDocumentQuery added in v0.4.2

func (UnimplementedSysMLServiceHandler) RunRuns added in v0.11.0

func (UnimplementedSysMLServiceHandler) RunSweep added in v0.7.0

func (UnimplementedSysMLServiceHandler) SelfCheck added in v0.11.0

func (UnimplementedSysMLServiceHandler) ValidateInstance added in v0.9.0

Jump to

Keyboard shortcuts

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