pb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Knotidx_GetKeys_FullMethodName        = "/knotidx/GetKeys"
	Knotidx_Reload_FullMethodName         = "/knotidx/Reload"
	Knotidx_Shutdown_FullMethodName       = "/knotidx/Shutdown"
	Knotidx_ResetScheduler_FullMethodName = "/knotidx/ResetScheduler"
)

Variables

View Source
var File_knotidx_proto protoreflect.FileDescriptor
View Source
var Knotidx_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "knotidx",
	HandlerType: (*KnotidxServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetKeys",
			Handler:    _Knotidx_GetKeys_Handler,
		},
		{
			MethodName: "Reload",
			Handler:    _Knotidx_Reload_Handler,
		},
		{
			MethodName: "Shutdown",
			Handler:    _Knotidx_Shutdown_Handler,
		},
		{
			MethodName: "ResetScheduler",
			Handler:    _Knotidx_ResetScheduler_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "knotidx.proto",
}

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

Functions

func RegisterKnotidxServer

func RegisterKnotidxServer(s grpc.ServiceRegistrar, srv KnotidxServer)

Types

type EmptyRequest

type EmptyRequest struct {
	// contains filtered or unexported fields
}

func (*EmptyRequest) Descriptor deprecated

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

Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) ProtoReflect

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

func (*EmptyRequest) Reset

func (x *EmptyRequest) Reset()

func (*EmptyRequest) String

func (x *EmptyRequest) String() string

type EmptyResponse

type EmptyResponse struct {
	// contains filtered or unexported fields
}

func (*EmptyResponse) Descriptor deprecated

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

Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.

func (*EmptyResponse) ProtoMessage

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) ProtoReflect

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

func (*EmptyResponse) Reset

func (x *EmptyResponse) Reset()

func (*EmptyResponse) String

func (x *EmptyResponse) String() string

type KnotidxClient

type KnotidxClient interface {
	GetKeys(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
	Reload(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	Shutdown(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	ResetScheduler(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
}

KnotidxClient is the client API for Knotidx 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 NewKnotidxClient

func NewKnotidxClient(cc grpc.ClientConnInterface) KnotidxClient

type KnotidxServer

type KnotidxServer interface {
	GetKeys(context.Context, *SearchRequest) (*SearchResponse, error)
	Reload(context.Context, *EmptyRequest) (*EmptyResponse, error)
	Shutdown(context.Context, *EmptyRequest) (*EmptyResponse, error)
	ResetScheduler(context.Context, *EmptyRequest) (*EmptyResponse, error)
	// contains filtered or unexported methods
}

KnotidxServer is the server API for Knotidx service. All implementations must embed UnimplementedKnotidxServer for forward compatibility

type SearchItemResponse

type SearchItemResponse struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchItemResponse) Descriptor deprecated

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

Deprecated: Use SearchItemResponse.ProtoReflect.Descriptor instead.

func (*SearchItemResponse) GetKey

func (x *SearchItemResponse) GetKey() string

func (*SearchItemResponse) ProtoMessage

func (*SearchItemResponse) ProtoMessage()

func (*SearchItemResponse) ProtoReflect

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

func (*SearchItemResponse) Reset

func (x *SearchItemResponse) Reset()

func (*SearchItemResponse) String

func (x *SearchItemResponse) String() string

type SearchRequest

type SearchRequest struct {
	Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchRequest) Descriptor deprecated

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

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetQuery

func (x *SearchRequest) GetQuery() string

func (*SearchRequest) ProtoMessage

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect

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

func (*SearchRequest) Reset

func (x *SearchRequest) Reset()

func (*SearchRequest) String

func (x *SearchRequest) String() string

type SearchResponse

type SearchResponse struct {
	Results []*SearchItemResponse `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	Count   int32                 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchResponse) Descriptor deprecated

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

Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

func (*SearchResponse) GetCount

func (x *SearchResponse) GetCount() int32

func (*SearchResponse) GetResults

func (x *SearchResponse) GetResults() []*SearchItemResponse

func (*SearchResponse) ProtoMessage

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) ProtoReflect

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

func (*SearchResponse) Reset

func (x *SearchResponse) Reset()

func (*SearchResponse) String

func (x *SearchResponse) String() string

type UnimplementedKnotidxServer

type UnimplementedKnotidxServer struct {
}

UnimplementedKnotidxServer must be embedded to have forward compatible implementations.

func (UnimplementedKnotidxServer) GetKeys

func (UnimplementedKnotidxServer) Reload

func (UnimplementedKnotidxServer) ResetScheduler

func (UnimplementedKnotidxServer) Shutdown

type UnsafeKnotidxServer

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

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

Jump to

Keyboard shortcuts

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