agenttrainingconnect

package
v1.7.49 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 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"
	// 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 (
	// AgentTrainingServiceName is the fully-qualified name of the AgentTrainingService service.
	AgentTrainingServiceName = "api.v1alpha1.agenttraining.AgentTrainingService"
)

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.

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)
	// 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)
	// 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 UnimplementedAgentTrainingServiceHandler

type UnimplementedAgentTrainingServiceHandler struct{}

UnimplementedAgentTrainingServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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