agenttrainingconnect

package
v1.9.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// AgentTrainingServiceCreateLearningOpportunityProcedure is the fully-qualified name of the
	// AgentTrainingService's CreateLearningOpportunity RPC.
	AgentTrainingServiceCreateLearningOpportunityProcedure = "/api.v1alpha1.agenttraining.AgentTrainingService/CreateLearningOpportunity"
	// AgentTrainingServiceListLearningOpportunitiesProcedure is the fully-qualified name of the
	// AgentTrainingService's ListLearningOpportunities RPC.
	AgentTrainingServiceListLearningOpportunitiesProcedure = "/api.v1alpha1.agenttraining.AgentTrainingService/ListLearningOpportunities"
	// AgentTrainingServiceListAgentLearningOpportunitiesProcedure is the fully-qualified name of the
	// AgentTrainingService's ListAgentLearningOpportunities RPC.
	AgentTrainingServiceListAgentLearningOpportunitiesProcedure = "/api.v1alpha1.agenttraining.AgentTrainingService/ListAgentLearningOpportunities"
	// AgentTrainingServiceCompleteAgentLearningOpportunityProcedure is the fully-qualified name of the
	// AgentTrainingService's CompleteAgentLearningOpportunity RPC.
	AgentTrainingServiceCompleteAgentLearningOpportunityProcedure = "/api.v1alpha1.agenttraining.AgentTrainingService/CompleteAgentLearningOpportunity"
	// AgentTrainingServiceListDashboardsProcedure is the fully-qualified name of the
	// AgentTrainingService's ListDashboards RPC.
	AgentTrainingServiceListDashboardsProcedure = "/api.v1alpha1.agenttraining.AgentTrainingService/ListDashboards"
	// AgentTrainingServiceListManagerDashboardsProcedure is the fully-qualified name of the
	// AgentTrainingService's ListManagerDashboards RPC.
	AgentTrainingServiceListManagerDashboardsProcedure = "/api.v1alpha1.agenttraining.AgentTrainingService/ListManagerDashboards"
	// AgentTrainingServiceUpdateLearningOpportunityProcedure is the fully-qualified name of the
	// AgentTrainingService's UpdateLearningOpportunity RPC.
	AgentTrainingServiceUpdateLearningOpportunityProcedure = "/api.v1alpha1.agenttraining.AgentTrainingService/UpdateLearningOpportunity"
	// AgentTrainingServiceDeleteLearningOpportunityProcedure is the fully-qualified name of the
	// AgentTrainingService's DeleteLearningOpportunity RPC.
	AgentTrainingServiceDeleteLearningOpportunityProcedure = "/api.v1alpha1.agenttraining.AgentTrainingService/DeleteLearningOpportunity"
	// AgentTrainingServiceGetLearningOpportunityProcedure is the fully-qualified name of the
	// AgentTrainingService's GetLearningOpportunity RPC.
	AgentTrainingServiceGetLearningOpportunityProcedure = "/api.v1alpha1.agenttraining.AgentTrainingService/GetLearningOpportunity"
)

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 (
	// AgentTrainingSupportServiceListLearningOpportunitiesByOrgIdProcedure is the fully-qualified name
	// of the AgentTrainingSupportService's ListLearningOpportunitiesByOrgId RPC.
	AgentTrainingSupportServiceListLearningOpportunitiesByOrgIdProcedure = "/api.v1alpha1.agenttraining.AgentTrainingSupportService/ListLearningOpportunitiesByOrgId"
	// AgentTrainingSupportServiceDeleteLearningOpportunityByOrgIdProcedure is the fully-qualified name
	// of the AgentTrainingSupportService's DeleteLearningOpportunityByOrgId RPC.
	AgentTrainingSupportServiceDeleteLearningOpportunityByOrgIdProcedure = "/api.v1alpha1.agenttraining.AgentTrainingSupportService/DeleteLearningOpportunityByOrgId"
)

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 (
	// AgentTrainingServiceName is the fully-qualified name of the AgentTrainingService service.
	AgentTrainingServiceName = "api.v1alpha1.agenttraining.AgentTrainingService"
)
View Source
const (
	// AgentTrainingSupportServiceName is the fully-qualified name of the AgentTrainingSupportService
	// service.
	AgentTrainingSupportServiceName = "api.v1alpha1.agenttraining.AgentTrainingSupportService"
)

Variables

This section is empty.

Functions

func NewAgentTrainingServiceHandler

func NewAgentTrainingServiceHandler(svc AgentTrainingServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewAgentTrainingServiceHandler 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 NewAgentTrainingSupportServiceHandler added in v1.7.71

func NewAgentTrainingSupportServiceHandler(svc AgentTrainingSupportServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewAgentTrainingSupportServiceHandler 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 AgentTrainingServiceClient

type AgentTrainingServiceClient interface {
	// CreateLearningOpportunity creates a new learning opportunity.
	CreateLearningOpportunity(context.Context, *connect_go.Request[agenttraining.CreateLearningOpportunityRequest]) (*connect_go.Response[agenttraining.CreateLearningOpportunityResponse], error)
	// ListLearningOpportunities lists learning opportunities.
	ListLearningOpportunities(context.Context, *connect_go.Request[agenttraining.ListLearningOpportunitiesRequest]) (*connect_go.Response[agenttraining.ListLearningOpportunitiesResponse], error)
	// ListAgentLearningOpportunities lists learning opportunities by agent.
	ListAgentLearningOpportunities(context.Context, *connect_go.Request[agenttraining.ListAgentLearningOpportunitiesRequest]) (*connect_go.Response[agenttraining.ListAgentLearningOpportunitiesResponse], error)
	// CompleteAgentLearningOpportunity completes an agent's learning opportunity.
	CompleteAgentLearningOpportunity(context.Context, *connect_go.Request[agenttraining.CompleteAgentLearningOpportunityRequest]) (*connect_go.Response[agenttraining.CompleteAgentLearningOpportunityResponse], error)
	// ListDashboards lists dashboards.
	ListDashboards(context.Context, *connect_go.Request[agenttraining.ListDashboardsRequest]) (*connect_go.Response[agenttraining.ListDashboardsResponse], error)
	// ListManagerDashboards lists manager dashboards.
	ListManagerDashboards(context.Context, *connect_go.Request[agenttraining.ListDashboardsRequest]) (*connect_go.Response[agenttraining.ListDashboardsResponse], error)
	// UpdateLearningOpportunity updates a learning opportunity.
	UpdateLearningOpportunity(context.Context, *connect_go.Request[agenttraining.UpdateLearningOpportunityRequest]) (*connect_go.Response[agenttraining.UpdateLearningOpportunityResponse], error)
	// DeleteLearningOpportunity deletes a learning opportunity.
	DeleteLearningOpportunity(context.Context, *connect_go.Request[agenttraining.DeleteLearningOpportunityRequest]) (*connect_go.Response[agenttraining.DeleteLearningOpportunityResponse], error)
	// GetLearningOpportunity gets a learning opportunity.
	GetLearningOpportunity(context.Context, *connect_go.Request[agenttraining.GetLearningOpportunityRequest]) (*connect_go.Response[agenttraining.GetLearningOpportunityResponse], error)
}

AgentTrainingServiceClient is a client for the api.v1alpha1.agenttraining.AgentTrainingService service.

func NewAgentTrainingServiceClient

func NewAgentTrainingServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) AgentTrainingServiceClient

NewAgentTrainingServiceClient constructs a client for the api.v1alpha1.agenttraining.AgentTrainingService 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 AgentTrainingServiceHandler

type AgentTrainingServiceHandler interface {
	// CreateLearningOpportunity creates a new learning opportunity.
	CreateLearningOpportunity(context.Context, *connect_go.Request[agenttraining.CreateLearningOpportunityRequest]) (*connect_go.Response[agenttraining.CreateLearningOpportunityResponse], error)
	// ListLearningOpportunities lists learning opportunities.
	ListLearningOpportunities(context.Context, *connect_go.Request[agenttraining.ListLearningOpportunitiesRequest]) (*connect_go.Response[agenttraining.ListLearningOpportunitiesResponse], error)
	// ListAgentLearningOpportunities lists learning opportunities by agent.
	ListAgentLearningOpportunities(context.Context, *connect_go.Request[agenttraining.ListAgentLearningOpportunitiesRequest]) (*connect_go.Response[agenttraining.ListAgentLearningOpportunitiesResponse], error)
	// CompleteAgentLearningOpportunity completes an agent's learning opportunity.
	CompleteAgentLearningOpportunity(context.Context, *connect_go.Request[agenttraining.CompleteAgentLearningOpportunityRequest]) (*connect_go.Response[agenttraining.CompleteAgentLearningOpportunityResponse], error)
	// ListDashboards lists dashboards.
	ListDashboards(context.Context, *connect_go.Request[agenttraining.ListDashboardsRequest]) (*connect_go.Response[agenttraining.ListDashboardsResponse], error)
	// ListManagerDashboards lists manager dashboards.
	ListManagerDashboards(context.Context, *connect_go.Request[agenttraining.ListDashboardsRequest]) (*connect_go.Response[agenttraining.ListDashboardsResponse], error)
	// UpdateLearningOpportunity updates a learning opportunity.
	UpdateLearningOpportunity(context.Context, *connect_go.Request[agenttraining.UpdateLearningOpportunityRequest]) (*connect_go.Response[agenttraining.UpdateLearningOpportunityResponse], error)
	// DeleteLearningOpportunity deletes a learning opportunity.
	DeleteLearningOpportunity(context.Context, *connect_go.Request[agenttraining.DeleteLearningOpportunityRequest]) (*connect_go.Response[agenttraining.DeleteLearningOpportunityResponse], error)
	// GetLearningOpportunity gets a learning opportunity.
	GetLearningOpportunity(context.Context, *connect_go.Request[agenttraining.GetLearningOpportunityRequest]) (*connect_go.Response[agenttraining.GetLearningOpportunityResponse], error)
}

AgentTrainingServiceHandler is an implementation of the api.v1alpha1.agenttraining.AgentTrainingService service.

type AgentTrainingSupportServiceClient added in v1.7.71

type AgentTrainingSupportServiceClient interface {
	// ListLearningOpportunitiesByOrgId lists learning opportunities for a specific org.
	ListLearningOpportunitiesByOrgId(context.Context, *connect_go.Request[agenttraining.ListLearningOpportunitiesByOrgIdRequest]) (*connect_go.Response[agenttraining.ListLearningOpportunitiesResponse], error)
	// DeleteLearningOpportunityByOrgId deletes a learning opportunity in a specific org.
	DeleteLearningOpportunityByOrgId(context.Context, *connect_go.Request[agenttraining.DeleteLearningOpportunityByOrgIdRequest]) (*connect_go.Response[agenttraining.DeleteLearningOpportunityResponse], error)
}

AgentTrainingSupportServiceClient is a client for the api.v1alpha1.agenttraining.AgentTrainingSupportService service.

func NewAgentTrainingSupportServiceClient added in v1.7.71

func NewAgentTrainingSupportServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) AgentTrainingSupportServiceClient

NewAgentTrainingSupportServiceClient constructs a client for the api.v1alpha1.agenttraining.AgentTrainingSupportService 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 AgentTrainingSupportServiceHandler added in v1.7.71

type AgentTrainingSupportServiceHandler interface {
	// ListLearningOpportunitiesByOrgId lists learning opportunities for a specific org.
	ListLearningOpportunitiesByOrgId(context.Context, *connect_go.Request[agenttraining.ListLearningOpportunitiesByOrgIdRequest]) (*connect_go.Response[agenttraining.ListLearningOpportunitiesResponse], error)
	// DeleteLearningOpportunityByOrgId deletes a learning opportunity in a specific org.
	DeleteLearningOpportunityByOrgId(context.Context, *connect_go.Request[agenttraining.DeleteLearningOpportunityByOrgIdRequest]) (*connect_go.Response[agenttraining.DeleteLearningOpportunityResponse], error)
}

AgentTrainingSupportServiceHandler is an implementation of the api.v1alpha1.agenttraining.AgentTrainingSupportService service.

type UnimplementedAgentTrainingServiceHandler

type UnimplementedAgentTrainingServiceHandler struct{}

UnimplementedAgentTrainingServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedAgentTrainingSupportServiceHandler added in v1.7.71

type UnimplementedAgentTrainingSupportServiceHandler struct{}

UnimplementedAgentTrainingSupportServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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