Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type CreateIndexRequest
- func (*CreateIndexRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateIndexRequest) GetDocumentBody() []byte
- func (x *CreateIndexRequest) GetFormat() string
- func (x *CreateIndexRequest) GetID() string
- func (x *CreateIndexRequest) GetTags() []string
- func (*CreateIndexRequest) ProtoMessage()
- func (x *CreateIndexRequest) ProtoReflect() protoreflect.Message
- func (x *CreateIndexRequest) Reset()
- func (x *CreateIndexRequest) String() string
- type Index
- func (*Index) Descriptor() ([]byte, []int)deprecated
- func (x *Index) GetCreatedAt() *timestamppb.Timestamp
- func (x *Index) GetFormat() string
- func (x *Index) GetId() string
- func (x *Index) GetTags() []string
- func (*Index) ProtoMessage()
- func (x *Index) ProtoReflect() protoreflect.Message
- func (x *Index) Reset()
- func (x *Index) String() string
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- type UnsafeServiceServer
Constants ¶
const (
Service_Create_FullMethodName = "/index.v1.Service/Create"
)
Variables ¶
var File_index_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "index.v1.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _Service_Create_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "index.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type CreateIndexRequest ¶
type CreateIndexRequest struct {
// ID contains the index identifier. It may be generated or provided. If provided, caller must
// support it. ID cannot be more than 256 bytes long
ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
// format name. Format must exist
Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"`
// tags associated with the index. May be empty.
Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
DocumentBody []byte `protobuf:"bytes,4,opt,name=documentBody,proto3" json:"documentBody,omitempty"`
// contains filtered or unexported fields
}
func (*CreateIndexRequest) Descriptor
deprecated
func (*CreateIndexRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateIndexRequest.ProtoReflect.Descriptor instead.
func (*CreateIndexRequest) GetDocumentBody ¶
func (x *CreateIndexRequest) GetDocumentBody() []byte
func (*CreateIndexRequest) GetFormat ¶
func (x *CreateIndexRequest) GetFormat() string
func (*CreateIndexRequest) GetID ¶
func (x *CreateIndexRequest) GetID() string
func (*CreateIndexRequest) GetTags ¶
func (x *CreateIndexRequest) GetTags() []string
func (*CreateIndexRequest) ProtoMessage ¶
func (*CreateIndexRequest) ProtoMessage()
func (*CreateIndexRequest) ProtoReflect ¶
func (x *CreateIndexRequest) ProtoReflect() protoreflect.Message
func (*CreateIndexRequest) Reset ¶
func (x *CreateIndexRequest) Reset()
func (*CreateIndexRequest) String ¶
func (x *CreateIndexRequest) String() string
type Index ¶
type Index struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"`
Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
// contains filtered or unexported fields
}
func (*Index) Descriptor
deprecated
func (*Index) GetCreatedAt ¶
func (x *Index) GetCreatedAt() *timestamppb.Timestamp
func (*Index) ProtoMessage ¶
func (*Index) ProtoMessage()
func (*Index) ProtoReflect ¶
func (x *Index) ProtoReflect() protoreflect.Message
type ServiceClient ¶
type ServiceClient interface {
Create(ctx context.Context, in *CreateIndexRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface {
Create(context.Context, *CreateIndexRequest) (*emptypb.Empty, error)
// contains filtered or unexported methods
}
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct {
}
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) Create ¶
func (UnimplementedServiceServer) Create(context.Context, *CreateIndexRequest) (*emptypb.Empty, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.