indexerpb

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexerService_GetPodScores_FullMethodName = "/indexer.v1.IndexerService/GetPodScores"
)

Variables

View Source
var File_api_indexerpb_indexer_proto protoreflect.FileDescriptor
View Source
var IndexerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "indexer.v1.IndexerService",
	HandlerType: (*IndexerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPodScores",
			Handler:    _IndexerService_GetPodScores_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/indexerpb/indexer.proto",
}

IndexerService_ServiceDesc is the grpc.ServiceDesc for IndexerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterIndexerServiceServer

func RegisterIndexerServiceServer(s grpc.ServiceRegistrar, srv IndexerServiceServer)

Types

type GetPodScoresRequest

type GetPodScoresRequest struct {
	Prompt         string   `protobuf:"bytes,1,opt,name=prompt,proto3" json:"prompt,omitempty"`
	ModelName      string   `protobuf:"bytes,2,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
	PodIdentifiers []string `protobuf:"bytes,3,rep,name=pod_identifiers,json=podIdentifiers,proto3" json:"pod_identifiers,omitempty"`
	// contains filtered or unexported fields
}

GetPodScores

func (*GetPodScoresRequest) Descriptor deprecated

func (*GetPodScoresRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetPodScoresRequest.ProtoReflect.Descriptor instead.

func (*GetPodScoresRequest) GetModelName

func (x *GetPodScoresRequest) GetModelName() string

func (*GetPodScoresRequest) GetPodIdentifiers

func (x *GetPodScoresRequest) GetPodIdentifiers() []string

func (*GetPodScoresRequest) GetPrompt

func (x *GetPodScoresRequest) GetPrompt() string

func (*GetPodScoresRequest) ProtoMessage

func (*GetPodScoresRequest) ProtoMessage()

func (*GetPodScoresRequest) ProtoReflect

func (x *GetPodScoresRequest) ProtoReflect() protoreflect.Message

func (*GetPodScoresRequest) Reset

func (x *GetPodScoresRequest) Reset()

func (*GetPodScoresRequest) String

func (x *GetPodScoresRequest) String() string

type GetPodScoresResponse

type GetPodScoresResponse struct {
	Scores []*PodScore `protobuf:"bytes,1,rep,name=scores,proto3" json:"scores,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPodScoresResponse) Descriptor deprecated

func (*GetPodScoresResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetPodScoresResponse.ProtoReflect.Descriptor instead.

func (*GetPodScoresResponse) GetScores

func (x *GetPodScoresResponse) GetScores() []*PodScore

func (*GetPodScoresResponse) ProtoMessage

func (*GetPodScoresResponse) ProtoMessage()

func (*GetPodScoresResponse) ProtoReflect

func (x *GetPodScoresResponse) ProtoReflect() protoreflect.Message

func (*GetPodScoresResponse) Reset

func (x *GetPodScoresResponse) Reset()

func (*GetPodScoresResponse) String

func (x *GetPodScoresResponse) String() string

type IndexerServiceClient

type IndexerServiceClient interface {
	// Score pods for a prompt and model. Wraps Indexer.GetPodScores.
	GetPodScores(ctx context.Context, in *GetPodScoresRequest, opts ...grpc.CallOption) (*GetPodScoresResponse, error)
}

IndexerServiceClient is the client API for IndexerService 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.

IndexerService exposes a minimal set of RPCs to interact with the KV cache indexer. This is an MVP designed to wrap the existing pkg/kvcache.Indexer functionality behind gRPC.

type IndexerServiceServer

type IndexerServiceServer interface {
	// Score pods for a prompt and model. Wraps Indexer.GetPodScores.
	GetPodScores(context.Context, *GetPodScoresRequest) (*GetPodScoresResponse, error)
	// contains filtered or unexported methods
}

IndexerServiceServer is the server API for IndexerService service. All implementations must embed UnimplementedIndexerServiceServer for forward compatibility.

IndexerService exposes a minimal set of RPCs to interact with the KV cache indexer. This is an MVP designed to wrap the existing pkg/kvcache.Indexer functionality behind gRPC.

type PodScore

type PodScore struct {
	Pod   string  `protobuf:"bytes,1,opt,name=pod,proto3" json:"pod,omitempty"`
	Score float64 `protobuf:"fixed64,2,opt,name=score,proto3" json:"score,omitempty"`
	// contains filtered or unexported fields
}

func (*PodScore) Descriptor deprecated

func (*PodScore) Descriptor() ([]byte, []int)

Deprecated: Use PodScore.ProtoReflect.Descriptor instead.

func (*PodScore) GetPod

func (x *PodScore) GetPod() string

func (*PodScore) GetScore

func (x *PodScore) GetScore() float64

func (*PodScore) ProtoMessage

func (*PodScore) ProtoMessage()

func (*PodScore) ProtoReflect

func (x *PodScore) ProtoReflect() protoreflect.Message

func (*PodScore) Reset

func (x *PodScore) Reset()

func (*PodScore) String

func (x *PodScore) String() string

type UnimplementedIndexerServiceServer

type UnimplementedIndexerServiceServer struct{}

UnimplementedIndexerServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedIndexerServiceServer) GetPodScores

type UnsafeIndexerServiceServer

type UnsafeIndexerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeIndexerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IndexerServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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