Documentation ¶
Index ¶
- Constants
- func NewInsightsHandler(svc InsightsHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type InsightsClient
- type InsightsHandler
- type UnimplementedInsightsHandler
- func (UnimplementedInsightsHandler) CreateCommonsInsight(context.Context, *connect_go.Request[insights.CreateInsightRequest]) (*connect_go.Response[insights.CreateInsightResponse], error)
- func (UnimplementedInsightsHandler) CreateInsight(context.Context, *connect_go.Request[insights.CreateInsightRequest]) (*connect_go.Response[insights.CreateInsightResponse], error)
- func (UnimplementedInsightsHandler) DeleteCommonsInsight(context.Context, *connect_go.Request[insights.DeleteInsightRequest]) (*connect_go.Response[insights.DeleteInsightResponse], error)
- func (UnimplementedInsightsHandler) DeleteInsight(context.Context, *connect_go.Request[insights.DeleteInsightRequest]) (*connect_go.Response[insights.DeleteInsightResponse], error)
- func (UnimplementedInsightsHandler) GetInsight(context.Context, *connect_go.Request[insights.GetInsightRequest]) (*connect_go.Response[insights.GetInsightResponse], error)
- func (UnimplementedInsightsHandler) GetVfsSchema(context.Context, *connect_go.Request[insights.GetVfsSchemaRequest]) (*connect_go.Response[insights.GetVfsSchemaResponse], error)
- func (UnimplementedInsightsHandler) ListInsights(context.Context, *connect_go.Request[insights.ListInsightsRequest]) (*connect_go.Response[insights.ListInsightsResponse], error)
- func (UnimplementedInsightsHandler) ListOrgInsights(context.Context, *connect_go.Request[insights.ListOrgInsightsRequest]) (*connect_go.Response[insights.ListOrgInsightsResponse], error)
- func (UnimplementedInsightsHandler) ListVfsSchemas(context.Context, *connect_go.Request[insights.ListVfsSchemasRequest]) (*connect_go.Response[insights.ListVfsSchemasResponse], error)
- func (UnimplementedInsightsHandler) ListVfses(context.Context, *connect_go.Request[insights.ListVfsesRequest]) (*connect_go.Response[insights.ListVfsesResponse], error)
- func (UnimplementedInsightsHandler) PublishInsight(context.Context, *connect_go.Request[insights.PublishInsightRequest]) (*connect_go.Response[insights.PublishInsightResponse], error)
- func (UnimplementedInsightsHandler) UpdateCommonsInsight(context.Context, *connect_go.Request[insights.UpdateInsightRequest]) (*connect_go.Response[insights.UpdateInsightResponse], error)
- func (UnimplementedInsightsHandler) UpdateInsight(context.Context, *connect_go.Request[insights.UpdateInsightRequest]) (*connect_go.Response[insights.UpdateInsightResponse], error)
Constants ¶
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" // 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" )
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.
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) // 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) }
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) // 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) }
InsightsHandler is an implementation of the api.v1alpha1.insights.Insights service.
type UnimplementedInsightsHandler ¶
type UnimplementedInsightsHandler struct{}
UnimplementedInsightsHandler returns CodeUnimplemented from all methods.
func (UnimplementedInsightsHandler) CreateCommonsInsight ¶
func (UnimplementedInsightsHandler) CreateCommonsInsight(context.Context, *connect_go.Request[insights.CreateInsightRequest]) (*connect_go.Response[insights.CreateInsightResponse], error)
func (UnimplementedInsightsHandler) CreateInsight ¶
func (UnimplementedInsightsHandler) CreateInsight(context.Context, *connect_go.Request[insights.CreateInsightRequest]) (*connect_go.Response[insights.CreateInsightResponse], error)
func (UnimplementedInsightsHandler) DeleteCommonsInsight ¶
func (UnimplementedInsightsHandler) DeleteCommonsInsight(context.Context, *connect_go.Request[insights.DeleteInsightRequest]) (*connect_go.Response[insights.DeleteInsightResponse], error)
func (UnimplementedInsightsHandler) DeleteInsight ¶
func (UnimplementedInsightsHandler) DeleteInsight(context.Context, *connect_go.Request[insights.DeleteInsightRequest]) (*connect_go.Response[insights.DeleteInsightResponse], error)
func (UnimplementedInsightsHandler) GetInsight ¶
func (UnimplementedInsightsHandler) GetInsight(context.Context, *connect_go.Request[insights.GetInsightRequest]) (*connect_go.Response[insights.GetInsightResponse], error)
func (UnimplementedInsightsHandler) GetVfsSchema ¶
func (UnimplementedInsightsHandler) GetVfsSchema(context.Context, *connect_go.Request[insights.GetVfsSchemaRequest]) (*connect_go.Response[insights.GetVfsSchemaResponse], error)
func (UnimplementedInsightsHandler) ListInsights ¶
func (UnimplementedInsightsHandler) ListInsights(context.Context, *connect_go.Request[insights.ListInsightsRequest]) (*connect_go.Response[insights.ListInsightsResponse], error)
func (UnimplementedInsightsHandler) ListOrgInsights ¶ added in v1.7.71
func (UnimplementedInsightsHandler) ListOrgInsights(context.Context, *connect_go.Request[insights.ListOrgInsightsRequest]) (*connect_go.Response[insights.ListOrgInsightsResponse], error)
func (UnimplementedInsightsHandler) ListVfsSchemas ¶ added in v1.7.48
func (UnimplementedInsightsHandler) ListVfsSchemas(context.Context, *connect_go.Request[insights.ListVfsSchemasRequest]) (*connect_go.Response[insights.ListVfsSchemasResponse], error)
func (UnimplementedInsightsHandler) ListVfses ¶
func (UnimplementedInsightsHandler) ListVfses(context.Context, *connect_go.Request[insights.ListVfsesRequest]) (*connect_go.Response[insights.ListVfsesResponse], error)
func (UnimplementedInsightsHandler) PublishInsight ¶ added in v1.7.37
func (UnimplementedInsightsHandler) PublishInsight(context.Context, *connect_go.Request[insights.PublishInsightRequest]) (*connect_go.Response[insights.PublishInsightResponse], error)
func (UnimplementedInsightsHandler) UpdateCommonsInsight ¶
func (UnimplementedInsightsHandler) UpdateCommonsInsight(context.Context, *connect_go.Request[insights.UpdateInsightRequest]) (*connect_go.Response[insights.UpdateInsightResponse], error)
func (UnimplementedInsightsHandler) UpdateInsight ¶
func (UnimplementedInsightsHandler) UpdateInsight(context.Context, *connect_go.Request[insights.UpdateInsightRequest]) (*connect_go.Response[insights.UpdateInsightResponse], error)