rpc

package
v0.0.0-nightly.20260813 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SessionServiceListSessionsProcedure is the fully-qualified name of the SessionService's
	// ListSessions RPC.
	SessionServiceListSessionsProcedure = "/aiscan.rpc.chat.SessionService/ListSessions"
	// SessionServiceGetSessionProcedure is the fully-qualified name of the SessionService's GetSession
	// RPC.
	SessionServiceGetSessionProcedure = "/aiscan.rpc.chat.SessionService/GetSession"
	// SessionServiceResetSessionProcedure is the fully-qualified name of the SessionService's
	// ResetSession RPC.
	SessionServiceResetSessionProcedure = "/aiscan.rpc.chat.SessionService/ResetSession"
	// SessionServiceDeleteSessionProcedure is the fully-qualified name of the SessionService's
	// DeleteSession RPC.
	SessionServiceDeleteSessionProcedure = "/aiscan.rpc.chat.SessionService/DeleteSession"
	// SessionServiceListCommandsProcedure is the fully-qualified name of the SessionService's
	// ListCommands RPC.
	SessionServiceListCommandsProcedure = "/aiscan.rpc.chat.SessionService/ListCommands"
	// SessionServiceListEventsProcedure is the fully-qualified name of the SessionService's ListEvents
	// RPC.
	SessionServiceListEventsProcedure = "/aiscan.rpc.chat.SessionService/ListEvents"
)

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 (
	// ConfigServiceGetConfigProcedure is the fully-qualified name of the ConfigService's GetConfig RPC.
	ConfigServiceGetConfigProcedure = "/aiscan.rpc.config.ConfigService/GetConfig"
	// ConfigServiceUpdateConfigProcedure is the fully-qualified name of the ConfigService's
	// UpdateConfig RPC.
	ConfigServiceUpdateConfigProcedure = "/aiscan.rpc.config.ConfigService/UpdateConfig"
	// ConfigServiceActivateProfileProcedure is the fully-qualified name of the ConfigService's
	// ActivateProfile RPC.
	ConfigServiceActivateProfileProcedure = "/aiscan.rpc.config.ConfigService/ActivateProfile"
	// ConfigServiceTestLLMProcedure is the fully-qualified name of the ConfigService's TestLLM RPC.
	ConfigServiceTestLLMProcedure = "/aiscan.rpc.config.ConfigService/TestLLM"
	// ConfigServiceListModelsProcedure is the fully-qualified name of the ConfigService's ListModels
	// RPC.
	ConfigServiceListModelsProcedure = "/aiscan.rpc.config.ConfigService/ListModels"
	// ConfigServiceTestConnectionProcedure is the fully-qualified name of the ConfigService's
	// TestConnection RPC.
	ConfigServiceTestConnectionProcedure = "/aiscan.rpc.config.ConfigService/TestConnection"
)

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 (
	// ScanServiceSubmitScanProcedure is the fully-qualified name of the ScanService's SubmitScan RPC.
	ScanServiceSubmitScanProcedure = "/aiscan.rpc.scan.ScanService/SubmitScan"
	// ScanServiceGetScanProcedure is the fully-qualified name of the ScanService's GetScan RPC.
	ScanServiceGetScanProcedure = "/aiscan.rpc.scan.ScanService/GetScan"
	// ScanServiceListScansProcedure is the fully-qualified name of the ScanService's ListScans RPC.
	ScanServiceListScansProcedure = "/aiscan.rpc.scan.ScanService/ListScans"
	// ScanServiceCancelScanProcedure is the fully-qualified name of the ScanService's CancelScan RPC.
	ScanServiceCancelScanProcedure = "/aiscan.rpc.scan.ScanService/CancelScan"
	// ScanServiceGetScanReportProcedure is the fully-qualified name of the ScanService's GetScanReport
	// RPC.
	ScanServiceGetScanReportProcedure = "/aiscan.rpc.scan.ScanService/GetScanReport"
)

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 (
	// SCOServiceListNodesProcedure is the fully-qualified name of the SCOService's ListNodes RPC.
	SCOServiceListNodesProcedure = "/aiscan.rpc.sco.SCOService/ListNodes"
	// SCOServiceGetNodeProcedure is the fully-qualified name of the SCOService's GetNode RPC.
	SCOServiceGetNodeProcedure = "/aiscan.rpc.sco.SCOService/GetNode"
	// SCOServiceGetStatsProcedure is the fully-qualified name of the SCOService's GetStats RPC.
	SCOServiceGetStatsProcedure = "/aiscan.rpc.sco.SCOService/GetStats"
	// SCOServiceDeleteNodesProcedure is the fully-qualified name of the SCOService's DeleteNodes RPC.
	SCOServiceDeleteNodesProcedure = "/aiscan.rpc.sco.SCOService/DeleteNodes"
	// SCOServiceImportNodesProcedure is the fully-qualified name of the SCOService's ImportNodes RPC.
	SCOServiceImportNodesProcedure = "/aiscan.rpc.sco.SCOService/ImportNodes"
	// SCOServiceListArtifactsProcedure is the fully-qualified name of the SCOService's ListArtifacts
	// RPC.
	SCOServiceListArtifactsProcedure = "/aiscan.rpc.sco.SCOService/ListArtifacts"
)

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 (
	// AOPServiceConnectProcedure is the fully-qualified name of the AOPService's Connect RPC.
	AOPServiceConnectProcedure = "/aiscan.rpc.aop.AOPService/Connect"
)

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 (
	// AOPServiceName is the fully-qualified name of the AOPService service.
	AOPServiceName = "aiscan.rpc.aop.AOPService"
)
View Source
const (
	// AgentServiceListAgentsProcedure is the fully-qualified name of the AgentService's ListAgents RPC.
	AgentServiceListAgentsProcedure = "/aiscan.rpc.agent.AgentService/ListAgents"
)

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 (
	// AgentServiceName is the fully-qualified name of the AgentService service.
	AgentServiceName = "aiscan.rpc.agent.AgentService"
)
View Source
const (
	// ConfigServiceName is the fully-qualified name of the ConfigService service.
	ConfigServiceName = "aiscan.rpc.config.ConfigService"
)
View Source
const (
	// SCOServiceName is the fully-qualified name of the SCOService service.
	SCOServiceName = "aiscan.rpc.sco.SCOService"
)
View Source
const (
	// ScanServiceName is the fully-qualified name of the ScanService service.
	ScanServiceName = "aiscan.rpc.scan.ScanService"
)
View Source
const (
	// SessionServiceName is the fully-qualified name of the SessionService service.
	SessionServiceName = "aiscan.rpc.chat.SessionService"
)
View Source
const (
	// SystemServiceGetStatusProcedure is the fully-qualified name of the SystemService's GetStatus RPC.
	SystemServiceGetStatusProcedure = "/aiscan.rpc.system.SystemService/GetStatus"
)

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 (
	// SystemServiceName is the fully-qualified name of the SystemService service.
	SystemServiceName = "aiscan.rpc.system.SystemService"
)

Variables

View Source
var File_rpc_agent_proto protoreflect.FileDescriptor
View Source
var File_rpc_aop_proto protoreflect.FileDescriptor
View Source
var File_rpc_chat_proto protoreflect.FileDescriptor
View Source
var File_rpc_config_proto protoreflect.FileDescriptor
View Source
var File_rpc_scan_proto protoreflect.FileDescriptor
View Source
var File_rpc_sco_proto protoreflect.FileDescriptor
View Source
var File_rpc_system_proto protoreflect.FileDescriptor

Functions

func NewAOPServiceHandler

func NewAOPServiceHandler(svc AOPServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAOPServiceHandler 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.

func NewAgentServiceHandler

func NewAgentServiceHandler(svc AgentServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewAgentServiceHandler 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.

func NewConfigServiceHandler

func NewConfigServiceHandler(svc ConfigServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewConfigServiceHandler 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.

func NewSCOServiceHandler

func NewSCOServiceHandler(svc SCOServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSCOServiceHandler 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.

func NewScanServiceHandler

func NewScanServiceHandler(svc ScanServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewScanServiceHandler 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.

func NewSessionServiceHandler

func NewSessionServiceHandler(svc SessionServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSessionServiceHandler 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.

func NewSystemServiceHandler

func NewSystemServiceHandler(svc SystemServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewSystemServiceHandler 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 AOPServiceClient

type AOPServiceClient interface {
	Connect(context.Context) *connect.BidiStreamForClient[aop.Envelope, aop.Envelope]
}

AOPServiceClient is a client for the aiscan.rpc.aop.AOPService service.

func NewAOPServiceClient

func NewAOPServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AOPServiceClient

NewAOPServiceClient constructs a client for the aiscan.rpc.aop.AOPService 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 AOPServiceHandler

type AOPServiceHandler interface {
	Connect(context.Context, *connect.BidiStream[aop.Envelope, aop.Envelope]) error
}

AOPServiceHandler is an implementation of the aiscan.rpc.aop.AOPService service.

type AgentServiceClient

type AgentServiceClient interface {
	ListAgents(context.Context, *connect.Request[types.ListAgentsRequest]) (*connect.Response[types.ListAgentsResponse], error)
}

AgentServiceClient is a client for the aiscan.rpc.agent.AgentService service.

func NewAgentServiceClient

func NewAgentServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AgentServiceClient

NewAgentServiceClient constructs a client for the aiscan.rpc.agent.AgentService 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 AgentServiceHandler

type AgentServiceHandler interface {
	ListAgents(context.Context, *connect.Request[types.ListAgentsRequest]) (*connect.Response[types.ListAgentsResponse], error)
}

AgentServiceHandler is an implementation of the aiscan.rpc.agent.AgentService service.

type ConfigServiceClient

ConfigServiceClient is a client for the aiscan.rpc.config.ConfigService service.

func NewConfigServiceClient

func NewConfigServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ConfigServiceClient

NewConfigServiceClient constructs a client for the aiscan.rpc.config.ConfigService 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 SCOServiceClient

SCOServiceClient is a client for the aiscan.rpc.sco.SCOService service.

func NewSCOServiceClient

func NewSCOServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SCOServiceClient

NewSCOServiceClient constructs a client for the aiscan.rpc.sco.SCOService 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 ScanServiceClient

ScanServiceClient is a client for the aiscan.rpc.scan.ScanService service.

func NewScanServiceClient

func NewScanServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ScanServiceClient

NewScanServiceClient constructs a client for the aiscan.rpc.scan.ScanService 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 SessionServiceClient

SessionServiceClient is a client for the aiscan.rpc.chat.SessionService service.

func NewSessionServiceClient

func NewSessionServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SessionServiceClient

NewSessionServiceClient constructs a client for the aiscan.rpc.chat.SessionService 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 SystemServiceClient

type SystemServiceClient interface {
	GetStatus(context.Context, *connect.Request[types.GetStatusRequest]) (*connect.Response[types.GetStatusResponse], error)
}

SystemServiceClient is a client for the aiscan.rpc.system.SystemService service.

func NewSystemServiceClient

func NewSystemServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SystemServiceClient

NewSystemServiceClient constructs a client for the aiscan.rpc.system.SystemService 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 SystemServiceHandler

type SystemServiceHandler interface {
	GetStatus(context.Context, *connect.Request[types.GetStatusRequest]) (*connect.Response[types.GetStatusResponse], error)
}

SystemServiceHandler is an implementation of the aiscan.rpc.system.SystemService service.

type UnimplementedAOPServiceHandler

type UnimplementedAOPServiceHandler struct{}

UnimplementedAOPServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedAOPServiceHandler) Connect

type UnimplementedAgentServiceHandler

type UnimplementedAgentServiceHandler struct{}

UnimplementedAgentServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedConfigServiceHandler

type UnimplementedConfigServiceHandler struct{}

UnimplementedConfigServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedSCOServiceHandler

type UnimplementedSCOServiceHandler struct{}

UnimplementedSCOServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedScanServiceHandler

type UnimplementedScanServiceHandler struct{}

UnimplementedScanServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedSessionServiceHandler

type UnimplementedSessionServiceHandler struct{}

UnimplementedSessionServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedSystemServiceHandler

type UnimplementedSystemServiceHandler struct{}

UnimplementedSystemServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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