Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_apis_proto_v1_manager_index_index_manager_proto protoreflect.FileDescriptor
var Index_ServiceDesc = grpc.ServiceDesc{ ServiceName: "manager.index.v1.Index", HandlerType: (*IndexServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "IndexInfo", Handler: _Index_IndexInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "apis/proto/v1/manager/index/index_manager.proto", }
Index_ServiceDesc is the grpc.ServiceDesc for Index service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIndexServer ¶
func RegisterIndexServer(s grpc.ServiceRegistrar, srv IndexServer)
Types ¶
type IndexClient ¶
type IndexClient interface { // Represent the RPC to get the index information. IndexInfo(ctx context.Context, in *payload.Empty, opts ...grpc.CallOption) (*payload.Info_Index_Count, error) }
IndexClient is the client API for Index 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 NewIndexClient ¶
func NewIndexClient(cc grpc.ClientConnInterface) IndexClient
type IndexServer ¶
type IndexServer interface { // Represent the RPC to get the index information. IndexInfo(context.Context, *payload.Empty) (*payload.Info_Index_Count, error) // contains filtered or unexported methods }
IndexServer is the server API for Index service. All implementations must embed UnimplementedIndexServer for forward compatibility
type UnimplementedIndexServer ¶
type UnimplementedIndexServer struct { }
UnimplementedIndexServer must be embedded to have forward compatible implementations.
func (UnimplementedIndexServer) IndexInfo ¶
func (UnimplementedIndexServer) IndexInfo(context.Context, *payload.Empty) (*payload.Info_Index_Count, error)
type UnsafeIndexServer ¶ added in v1.2.1
type UnsafeIndexServer interface {
// contains filtered or unexported methods
}
UnsafeIndexServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IndexServer will result in compilation errors.