insightsconnect

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InsightsCreateInsightProcedure is the fully-qualified name of the Insights's CreateInsight RPC.
	InsightsCreateInsightProcedure = "/api.v1alpha1.insights.Insights/CreateInsight"
	// InsightsListInsightsProcedure is the fully-qualified name of the Insights's ListInsights RPC.
	InsightsListInsightsProcedure = "/api.v1alpha1.insights.Insights/ListInsights"
	// InsightsListInsightsStreamProcedure is the fully-qualified name of the Insights's
	// ListInsightsStream RPC.
	InsightsListInsightsStreamProcedure = "/api.v1alpha1.insights.Insights/ListInsightsStream"
	// InsightsListOrgInsightsProcedure is the fully-qualified name of the Insights's ListOrgInsights
	// RPC.
	InsightsListOrgInsightsProcedure = "/api.v1alpha1.insights.Insights/ListOrgInsights"
	// InsightsUpdateInsightProcedure is the fully-qualified name of the Insights's UpdateInsight RPC.
	InsightsUpdateInsightProcedure = "/api.v1alpha1.insights.Insights/UpdateInsight"
	// InsightsDeleteInsightProcedure is the fully-qualified name of the Insights's DeleteInsight RPC.
	InsightsDeleteInsightProcedure = "/api.v1alpha1.insights.Insights/DeleteInsight"
	// InsightsGetInsightProcedure is the fully-qualified name of the Insights's GetInsight RPC.
	InsightsGetInsightProcedure = "/api.v1alpha1.insights.Insights/GetInsight"
	// InsightsCreateCommonsInsightProcedure is the fully-qualified name of the Insights's
	// CreateCommonsInsight RPC.
	InsightsCreateCommonsInsightProcedure = "/api.v1alpha1.insights.Insights/CreateCommonsInsight"
	// InsightsUpdateCommonsInsightProcedure is the fully-qualified name of the Insights's
	// UpdateCommonsInsight RPC.
	InsightsUpdateCommonsInsightProcedure = "/api.v1alpha1.insights.Insights/UpdateCommonsInsight"
	// InsightsDeleteCommonsInsightProcedure is the fully-qualified name of the Insights's
	// DeleteCommonsInsight RPC.
	InsightsDeleteCommonsInsightProcedure = "/api.v1alpha1.insights.Insights/DeleteCommonsInsight"
	// InsightsGetVfsSchemaProcedure is the fully-qualified name of the Insights's GetVfsSchema RPC.
	InsightsGetVfsSchemaProcedure = "/api.v1alpha1.insights.Insights/GetVfsSchema"
	// InsightsListVfsesProcedure is the fully-qualified name of the Insights's ListVfses RPC.
	InsightsListVfsesProcedure = "/api.v1alpha1.insights.Insights/ListVfses"
	// InsightsListVfsSchemasProcedure is the fully-qualified name of the Insights's ListVfsSchemas RPC.
	InsightsListVfsSchemasProcedure = "/api.v1alpha1.insights.Insights/ListVfsSchemas"
	// InsightsPublishInsightProcedure is the fully-qualified name of the Insights's PublishInsight RPC.
	InsightsPublishInsightProcedure = "/api.v1alpha1.insights.Insights/PublishInsight"
	// InsightsCreateOutputConfigurationProcedure is the fully-qualified name of the Insights's
	// CreateOutputConfiguration RPC.
	InsightsCreateOutputConfigurationProcedure = "/api.v1alpha1.insights.Insights/CreateOutputConfiguration"
	// InsightsListOutputConfigurationsProcedure is the fully-qualified name of the Insights's
	// ListOutputConfigurations RPC.
	InsightsListOutputConfigurationsProcedure = "/api.v1alpha1.insights.Insights/ListOutputConfigurations"
	// InsightsUpdateOutputConfigurationProcedure is the fully-qualified name of the Insights's
	// UpdateOutputConfiguration RPC.
	InsightsUpdateOutputConfigurationProcedure = "/api.v1alpha1.insights.Insights/UpdateOutputConfiguration"
	// InsightsDeleteOutputConfigurationProcedure is the fully-qualified name of the Insights's
	// DeleteOutputConfiguration RPC.
	InsightsDeleteOutputConfigurationProcedure = "/api.v1alpha1.insights.Insights/DeleteOutputConfiguration"
	// InsightsGetOutputConfigurationProcedure is the fully-qualified name of the Insights's
	// GetOutputConfiguration RPC.
	InsightsGetOutputConfigurationProcedure = "/api.v1alpha1.insights.Insights/GetOutputConfiguration"
	// InsightsSetDefaultOutputConfigurationProcedure is the fully-qualified name of the Insights's
	// SetDefaultOutputConfiguration RPC.
	InsightsSetDefaultOutputConfigurationProcedure = "/api.v1alpha1.insights.Insights/SetDefaultOutputConfiguration"
	// InsightsGetDefaultOutputConfigurationProcedure is the fully-qualified name of the Insights's
	// GetDefaultOutputConfiguration RPC.
	InsightsGetDefaultOutputConfigurationProcedure = "/api.v1alpha1.insights.Insights/GetDefaultOutputConfiguration"
)

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 (
	// InsightsName is the fully-qualified name of the Insights service.
	InsightsName = "api.v1alpha1.insights.Insights"
)

Variables

This section is empty.

Functions

func NewInsightsHandler

func NewInsightsHandler(svc InsightsHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewInsightsHandler 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 InsightsClient

type InsightsClient interface {
	// CreateInsight creates a new insight
	CreateInsight(context.Context, *connect_go.Request[insights.CreateInsightRequest]) (*connect_go.Response[insights.CreateInsightResponse], error)
	// ListInsights lists insights
	ListInsights(context.Context, *connect_go.Request[insights.ListInsightsRequest]) (*connect_go.Response[insights.ListInsightsResponse], error)
	// ListInsightsStream lists insights with streaming
	ListInsightsStream(context.Context, *connect_go.Request[insights.ListInsightsRequest]) (*connect_go.ServerStreamForClient[insights.ListInsightsStreamResponse], error)
	// ListOrgInsights lists insights for an org. Used for support app.
	ListOrgInsights(context.Context, *connect_go.Request[insights.ListOrgInsightsRequest]) (*connect_go.Response[insights.ListOrgInsightsResponse], error)
	// UpdateInsight updates an existing insight
	UpdateInsight(context.Context, *connect_go.Request[insights.UpdateInsightRequest]) (*connect_go.Response[insights.UpdateInsightResponse], error)
	// DeleteInsight deletes a insight
	DeleteInsight(context.Context, *connect_go.Request[insights.DeleteInsightRequest]) (*connect_go.Response[insights.DeleteInsightResponse], error)
	// GetInsight gets a insight by id
	GetInsight(context.Context, *connect_go.Request[insights.GetInsightRequest]) (*connect_go.Response[insights.GetInsightResponse], error)
	// CreateCommonsInsight is deprecated.
	CreateCommonsInsight(context.Context, *connect_go.Request[insights.CreateInsightRequest]) (*connect_go.Response[insights.CreateInsightResponse], error)
	// UpdateCommonsInsight is deprecated.
	UpdateCommonsInsight(context.Context, *connect_go.Request[insights.UpdateInsightRequest]) (*connect_go.Response[insights.UpdateInsightResponse], error)
	// DeleteCommonsInsight is deprecated.
	DeleteCommonsInsight(context.Context, *connect_go.Request[insights.DeleteInsightRequest]) (*connect_go.Response[insights.DeleteInsightResponse], error)
	// GetVfsSchema gets schema for a vfs
	GetVfsSchema(context.Context, *connect_go.Request[insights.GetVfsSchemaRequest]) (*connect_go.Response[insights.GetVfsSchemaResponse], error)
	// ListVfses lists exported vfs aliases
	ListVfses(context.Context, *connect_go.Request[insights.ListVfsesRequest]) (*connect_go.Response[insights.ListVfsesResponse], error)
	// ListVfses lists exported vfs aliases
	ListVfsSchemas(context.Context, *connect_go.Request[insights.ListVfsSchemasRequest]) (*connect_go.Response[insights.ListVfsSchemasResponse], error)
	// PublishInsight publishes an insight
	PublishInsight(context.Context, *connect_go.Request[insights.PublishInsightRequest]) (*connect_go.Response[insights.PublishInsightResponse], error)
	// CreateOutputConfiguration creates an output configuration
	CreateOutputConfiguration(context.Context, *connect_go.Request[insights.CreateOutputConfigurationRequest]) (*connect_go.Response[insights.CreateOutputConfigurationResponse], error)
	// ListOutputConfigurations lists output configurations for an insight
	ListOutputConfigurations(context.Context, *connect_go.Request[insights.ListOutputConfigurationsRequest]) (*connect_go.Response[insights.ListOutputConfigurationsResponse], error)
	// UpdateOutputConfiguration updates an output configuration
	UpdateOutputConfiguration(context.Context, *connect_go.Request[insights.UpdateOutputConfigurationRequest]) (*connect_go.Response[insights.UpdateOutputConfigurationResponse], error)
	// DeleteOutputConfiguration deletes an output configuration
	DeleteOutputConfiguration(context.Context, *connect_go.Request[insights.DeleteOutputConfigurationRequest]) (*connect_go.Response[insights.DeleteOutputConfigurationResponse], error)
	// GetOutputConfiguration gets an output configuration
	GetOutputConfiguration(context.Context, *connect_go.Request[insights.GetOutputConfigurationRequest]) (*connect_go.Response[insights.GetOutputConfigurationResponse], error)
	// SetDefaultOutputConfiguration sets the specified output configuration to default
	SetDefaultOutputConfiguration(context.Context, *connect_go.Request[insights.SetDefaultOutputConfigurationRequest]) (*connect_go.Response[insights.SetDefaultOutputConfigurationResponse], error)
	// GetDefaultOutputConfiguration gets the default output configuration for an insight
	GetDefaultOutputConfiguration(context.Context, *connect_go.Request[insights.GetDefaultOutputConfigurationRequest]) (*connect_go.Response[insights.GetDefaultOutputConfigurationResponse], error)
}

InsightsClient is a client for the api.v1alpha1.insights.Insights service.

func NewInsightsClient

func NewInsightsClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) InsightsClient

NewInsightsClient constructs a client for the api.v1alpha1.insights.Insights 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 InsightsHandler

type InsightsHandler interface {
	// CreateInsight creates a new insight
	CreateInsight(context.Context, *connect_go.Request[insights.CreateInsightRequest]) (*connect_go.Response[insights.CreateInsightResponse], error)
	// ListInsights lists insights
	ListInsights(context.Context, *connect_go.Request[insights.ListInsightsRequest]) (*connect_go.Response[insights.ListInsightsResponse], error)
	// ListInsightsStream lists insights with streaming
	ListInsightsStream(context.Context, *connect_go.Request[insights.ListInsightsRequest], *connect_go.ServerStream[insights.ListInsightsStreamResponse]) error
	// ListOrgInsights lists insights for an org. Used for support app.
	ListOrgInsights(context.Context, *connect_go.Request[insights.ListOrgInsightsRequest]) (*connect_go.Response[insights.ListOrgInsightsResponse], error)
	// UpdateInsight updates an existing insight
	UpdateInsight(context.Context, *connect_go.Request[insights.UpdateInsightRequest]) (*connect_go.Response[insights.UpdateInsightResponse], error)
	// DeleteInsight deletes a insight
	DeleteInsight(context.Context, *connect_go.Request[insights.DeleteInsightRequest]) (*connect_go.Response[insights.DeleteInsightResponse], error)
	// GetInsight gets a insight by id
	GetInsight(context.Context, *connect_go.Request[insights.GetInsightRequest]) (*connect_go.Response[insights.GetInsightResponse], error)
	// CreateCommonsInsight is deprecated.
	CreateCommonsInsight(context.Context, *connect_go.Request[insights.CreateInsightRequest]) (*connect_go.Response[insights.CreateInsightResponse], error)
	// UpdateCommonsInsight is deprecated.
	UpdateCommonsInsight(context.Context, *connect_go.Request[insights.UpdateInsightRequest]) (*connect_go.Response[insights.UpdateInsightResponse], error)
	// DeleteCommonsInsight is deprecated.
	DeleteCommonsInsight(context.Context, *connect_go.Request[insights.DeleteInsightRequest]) (*connect_go.Response[insights.DeleteInsightResponse], error)
	// GetVfsSchema gets schema for a vfs
	GetVfsSchema(context.Context, *connect_go.Request[insights.GetVfsSchemaRequest]) (*connect_go.Response[insights.GetVfsSchemaResponse], error)
	// ListVfses lists exported vfs aliases
	ListVfses(context.Context, *connect_go.Request[insights.ListVfsesRequest]) (*connect_go.Response[insights.ListVfsesResponse], error)
	// ListVfses lists exported vfs aliases
	ListVfsSchemas(context.Context, *connect_go.Request[insights.ListVfsSchemasRequest]) (*connect_go.Response[insights.ListVfsSchemasResponse], error)
	// PublishInsight publishes an insight
	PublishInsight(context.Context, *connect_go.Request[insights.PublishInsightRequest]) (*connect_go.Response[insights.PublishInsightResponse], error)
	// CreateOutputConfiguration creates an output configuration
	CreateOutputConfiguration(context.Context, *connect_go.Request[insights.CreateOutputConfigurationRequest]) (*connect_go.Response[insights.CreateOutputConfigurationResponse], error)
	// ListOutputConfigurations lists output configurations for an insight
	ListOutputConfigurations(context.Context, *connect_go.Request[insights.ListOutputConfigurationsRequest]) (*connect_go.Response[insights.ListOutputConfigurationsResponse], error)
	// UpdateOutputConfiguration updates an output configuration
	UpdateOutputConfiguration(context.Context, *connect_go.Request[insights.UpdateOutputConfigurationRequest]) (*connect_go.Response[insights.UpdateOutputConfigurationResponse], error)
	// DeleteOutputConfiguration deletes an output configuration
	DeleteOutputConfiguration(context.Context, *connect_go.Request[insights.DeleteOutputConfigurationRequest]) (*connect_go.Response[insights.DeleteOutputConfigurationResponse], error)
	// GetOutputConfiguration gets an output configuration
	GetOutputConfiguration(context.Context, *connect_go.Request[insights.GetOutputConfigurationRequest]) (*connect_go.Response[insights.GetOutputConfigurationResponse], error)
	// SetDefaultOutputConfiguration sets the specified output configuration to default
	SetDefaultOutputConfiguration(context.Context, *connect_go.Request[insights.SetDefaultOutputConfigurationRequest]) (*connect_go.Response[insights.SetDefaultOutputConfigurationResponse], error)
	// GetDefaultOutputConfiguration gets the default output configuration for an insight
	GetDefaultOutputConfiguration(context.Context, *connect_go.Request[insights.GetDefaultOutputConfigurationRequest]) (*connect_go.Response[insights.GetDefaultOutputConfigurationResponse], error)
}

InsightsHandler is an implementation of the api.v1alpha1.insights.Insights service.

type UnimplementedInsightsHandler

type UnimplementedInsightsHandler struct{}

UnimplementedInsightsHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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