Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAgentTrainingServiceServer(s grpc.ServiceRegistrar, srv AgentTrainingServiceServer)
- type AgentTrainingServiceClient
- type AgentTrainingServiceServer
- type CreateLearningOpportunityRequest
- func (*CreateLearningOpportunityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLearningOpportunityRequest) GetLearningOpportunity() *commons.LearningOpportunity
- func (*CreateLearningOpportunityRequest) ProtoMessage()
- func (x *CreateLearningOpportunityRequest) ProtoReflect() protoreflect.Message
- func (x *CreateLearningOpportunityRequest) Reset()
- func (x *CreateLearningOpportunityRequest) String() string
- type CreateLearningOpportunityResponse
- func (*CreateLearningOpportunityResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateLearningOpportunityResponse) GetLearningOpportunity() *commons.LearningOpportunity
- func (*CreateLearningOpportunityResponse) ProtoMessage()
- func (x *CreateLearningOpportunityResponse) ProtoReflect() protoreflect.Message
- func (x *CreateLearningOpportunityResponse) Reset()
- func (x *CreateLearningOpportunityResponse) String() string
- type ListLearningOpportunitiesRequest
- func (*ListLearningOpportunitiesRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListLearningOpportunitiesRequest) ProtoMessage()
- func (x *ListLearningOpportunitiesRequest) ProtoReflect() protoreflect.Message
- func (x *ListLearningOpportunitiesRequest) Reset()
- func (x *ListLearningOpportunitiesRequest) String() string
- type ListLearningOpportunitiesResponse
- func (*ListLearningOpportunitiesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListLearningOpportunitiesResponse) GetLearningOpportunities() []*commons.LearningOpportunity
- func (*ListLearningOpportunitiesResponse) ProtoMessage()
- func (x *ListLearningOpportunitiesResponse) ProtoReflect() protoreflect.Message
- func (x *ListLearningOpportunitiesResponse) Reset()
- func (x *ListLearningOpportunitiesResponse) String() string
- type UnimplementedAgentTrainingServiceServer
- func (UnimplementedAgentTrainingServiceServer) CreateLearningOpportunity(context.Context, *CreateLearningOpportunityRequest) (*CreateLearningOpportunityResponse, error)
- func (UnimplementedAgentTrainingServiceServer) ListLearningOpportunities(context.Context, *ListLearningOpportunitiesRequest) (*ListLearningOpportunitiesResponse, error)
- type UnsafeAgentTrainingServiceServer
Constants ¶
const ( AgentTrainingService_CreateLearningOpportunity_FullMethodName = "/api.v1alpha1.agenttraining.AgentTrainingService/CreateLearningOpportunity" AgentTrainingService_ListLearningOpportunities_FullMethodName = "/api.v1alpha1.agenttraining.AgentTrainingService/ListLearningOpportunities" )
Variables ¶
var AgentTrainingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1alpha1.agenttraining.AgentTrainingService", HandlerType: (*AgentTrainingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateLearningOpportunity", Handler: _AgentTrainingService_CreateLearningOpportunity_Handler, }, { MethodName: "ListLearningOpportunities", Handler: _AgentTrainingService_ListLearningOpportunities_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1alpha1/agenttraining/service.proto", }
AgentTrainingService_ServiceDesc is the grpc.ServiceDesc for AgentTrainingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_v1alpha1_agenttraining_learning_opportunity_proto protoreflect.FileDescriptor
var File_api_v1alpha1_agenttraining_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentTrainingServiceServer ¶
func RegisterAgentTrainingServiceServer(s grpc.ServiceRegistrar, srv AgentTrainingServiceServer)
Types ¶
type AgentTrainingServiceClient ¶
type AgentTrainingServiceClient interface { // CreateLearningOpportunity creates a new learning opportunity. CreateLearningOpportunity(ctx context.Context, in *CreateLearningOpportunityRequest, opts ...grpc.CallOption) (*CreateLearningOpportunityResponse, error) // ListLearningOpportunities lists learning opportunities. ListLearningOpportunities(ctx context.Context, in *ListLearningOpportunitiesRequest, opts ...grpc.CallOption) (*ListLearningOpportunitiesResponse, error) }
AgentTrainingServiceClient is the client API for AgentTrainingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAgentTrainingServiceClient ¶
func NewAgentTrainingServiceClient(cc grpc.ClientConnInterface) AgentTrainingServiceClient
type AgentTrainingServiceServer ¶
type AgentTrainingServiceServer interface { // CreateLearningOpportunity creates a new learning opportunity. CreateLearningOpportunity(context.Context, *CreateLearningOpportunityRequest) (*CreateLearningOpportunityResponse, error) // ListLearningOpportunities lists learning opportunities. ListLearningOpportunities(context.Context, *ListLearningOpportunitiesRequest) (*ListLearningOpportunitiesResponse, error) // contains filtered or unexported methods }
AgentTrainingServiceServer is the server API for AgentTrainingService service. All implementations must embed UnimplementedAgentTrainingServiceServer for forward compatibility
type CreateLearningOpportunityRequest ¶
type CreateLearningOpportunityRequest struct { LearningOpportunity *commons.LearningOpportunity `protobuf:"bytes,1,opt,name=learning_opportunity,json=learningOpportunity,proto3" json:"learning_opportunity,omitempty"` // contains filtered or unexported fields }
CreateLearningOpportunityRequest represents a request to create a new learning opportunity.
func (*CreateLearningOpportunityRequest) Descriptor
deprecated
func (*CreateLearningOpportunityRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateLearningOpportunityRequest.ProtoReflect.Descriptor instead.
func (*CreateLearningOpportunityRequest) GetLearningOpportunity ¶
func (x *CreateLearningOpportunityRequest) GetLearningOpportunity() *commons.LearningOpportunity
func (*CreateLearningOpportunityRequest) ProtoMessage ¶
func (*CreateLearningOpportunityRequest) ProtoMessage()
func (*CreateLearningOpportunityRequest) ProtoReflect ¶
func (x *CreateLearningOpportunityRequest) ProtoReflect() protoreflect.Message
func (*CreateLearningOpportunityRequest) Reset ¶
func (x *CreateLearningOpportunityRequest) Reset()
func (*CreateLearningOpportunityRequest) String ¶
func (x *CreateLearningOpportunityRequest) String() string
type CreateLearningOpportunityResponse ¶
type CreateLearningOpportunityResponse struct { LearningOpportunity *commons.LearningOpportunity `protobuf:"bytes,1,opt,name=learning_opportunity,json=learningOpportunity,proto3" json:"learning_opportunity,omitempty"` // contains filtered or unexported fields }
CreateLearningOpportunityResponse represents the created learning opportunity.
func (*CreateLearningOpportunityResponse) Descriptor
deprecated
func (*CreateLearningOpportunityResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateLearningOpportunityResponse.ProtoReflect.Descriptor instead.
func (*CreateLearningOpportunityResponse) GetLearningOpportunity ¶
func (x *CreateLearningOpportunityResponse) GetLearningOpportunity() *commons.LearningOpportunity
func (*CreateLearningOpportunityResponse) ProtoMessage ¶
func (*CreateLearningOpportunityResponse) ProtoMessage()
func (*CreateLearningOpportunityResponse) ProtoReflect ¶
func (x *CreateLearningOpportunityResponse) ProtoReflect() protoreflect.Message
func (*CreateLearningOpportunityResponse) Reset ¶
func (x *CreateLearningOpportunityResponse) Reset()
func (*CreateLearningOpportunityResponse) String ¶
func (x *CreateLearningOpportunityResponse) String() string
type ListLearningOpportunitiesRequest ¶
type ListLearningOpportunitiesRequest struct {
// contains filtered or unexported fields
}
ListLearningOpportunitiesRequest represents a request to list learning opportunities.
func (*ListLearningOpportunitiesRequest) Descriptor
deprecated
func (*ListLearningOpportunitiesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListLearningOpportunitiesRequest.ProtoReflect.Descriptor instead.
func (*ListLearningOpportunitiesRequest) ProtoMessage ¶
func (*ListLearningOpportunitiesRequest) ProtoMessage()
func (*ListLearningOpportunitiesRequest) ProtoReflect ¶
func (x *ListLearningOpportunitiesRequest) ProtoReflect() protoreflect.Message
func (*ListLearningOpportunitiesRequest) Reset ¶
func (x *ListLearningOpportunitiesRequest) Reset()
func (*ListLearningOpportunitiesRequest) String ¶
func (x *ListLearningOpportunitiesRequest) String() string
type ListLearningOpportunitiesResponse ¶
type ListLearningOpportunitiesResponse struct { LearningOpportunities []*commons.LearningOpportunity `protobuf:"bytes,1,rep,name=learning_opportunities,json=learningOpportunities,proto3" json:"learning_opportunities,omitempty"` // contains filtered or unexported fields }
ListLearningOpportunitiesResponse represents the listed learning opportunities.
func (*ListLearningOpportunitiesResponse) Descriptor
deprecated
func (*ListLearningOpportunitiesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListLearningOpportunitiesResponse.ProtoReflect.Descriptor instead.
func (*ListLearningOpportunitiesResponse) GetLearningOpportunities ¶
func (x *ListLearningOpportunitiesResponse) GetLearningOpportunities() []*commons.LearningOpportunity
func (*ListLearningOpportunitiesResponse) ProtoMessage ¶
func (*ListLearningOpportunitiesResponse) ProtoMessage()
func (*ListLearningOpportunitiesResponse) ProtoReflect ¶
func (x *ListLearningOpportunitiesResponse) ProtoReflect() protoreflect.Message
func (*ListLearningOpportunitiesResponse) Reset ¶
func (x *ListLearningOpportunitiesResponse) Reset()
func (*ListLearningOpportunitiesResponse) String ¶
func (x *ListLearningOpportunitiesResponse) String() string
type UnimplementedAgentTrainingServiceServer ¶
type UnimplementedAgentTrainingServiceServer struct { }
UnimplementedAgentTrainingServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAgentTrainingServiceServer) CreateLearningOpportunity ¶
func (UnimplementedAgentTrainingServiceServer) CreateLearningOpportunity(context.Context, *CreateLearningOpportunityRequest) (*CreateLearningOpportunityResponse, error)
func (UnimplementedAgentTrainingServiceServer) ListLearningOpportunities ¶
func (UnimplementedAgentTrainingServiceServer) ListLearningOpportunities(context.Context, *ListLearningOpportunitiesRequest) (*ListLearningOpportunitiesResponse, error)
type UnsafeAgentTrainingServiceServer ¶
type UnsafeAgentTrainingServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAgentTrainingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentTrainingServiceServer will result in compilation errors.