Documentation ¶
Index ¶
- Variables
- func RegisterButterfishServer(s grpc.ServiceRegistrar, srv ButterfishServer)
- type AnnotatedEmbedding
- func (*AnnotatedEmbedding) Descriptor() ([]byte, []int)deprecated
- func (x *AnnotatedEmbedding) GetEnd() uint64
- func (x *AnnotatedEmbedding) GetStart() uint64
- func (x *AnnotatedEmbedding) GetVector() []float64
- func (*AnnotatedEmbedding) ProtoMessage()
- func (x *AnnotatedEmbedding) ProtoReflect() protoreflect.Message
- func (x *AnnotatedEmbedding) Reset()
- func (x *AnnotatedEmbedding) String() string
- type ButterfishClient
- type ButterfishServer
- type Butterfish_StreamsForWrappingClient
- type Butterfish_StreamsForWrappingServer
- type ClientInput
- type ClientOpen
- type ClientOutput
- type ClientPush
- func (*ClientPush) Descriptor() ([]byte, []int)deprecated
- func (x *ClientPush) GetClientInput() *ClientInput
- func (x *ClientPush) GetClientOpen() *ClientOpen
- func (x *ClientPush) GetClientOutput() *ClientOutput
- func (m *ClientPush) GetMsg() isClientPush_Msg
- func (*ClientPush) ProtoMessage()
- func (x *ClientPush) ProtoReflect() protoreflect.Message
- func (x *ClientPush) Reset()
- func (x *ClientPush) String() string
- type ClientPush_ClientInput
- type ClientPush_ClientOpen
- type ClientPush_ClientOutput
- type DirectoryIndex
- type FileEmbeddings
- func (*FileEmbeddings) Descriptor() ([]byte, []int)deprecated
- func (x *FileEmbeddings) GetEmbeddings() []*AnnotatedEmbedding
- func (x *FileEmbeddings) GetPath() string
- func (x *FileEmbeddings) GetUpdatedAt() *timestamppb.Timestamp
- func (*FileEmbeddings) ProtoMessage()
- func (x *FileEmbeddings) ProtoReflect() protoreflect.Message
- func (x *FileEmbeddings) Reset()
- func (x *FileEmbeddings) String() string
- type ServerPush
- type UnimplementedButterfishServer
- type UnsafeButterfishServer
Constants ¶
This section is empty.
Variables ¶
var Butterfish_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Butterfish", HandlerType: (*ButterfishServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "StreamsForWrapping", Handler: _Butterfish_StreamsForWrapping_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "butterfish.proto", }
Butterfish_ServiceDesc is the grpc.ServiceDesc for Butterfish service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_butterfish_proto protoreflect.FileDescriptor
Functions ¶
func RegisterButterfishServer ¶
func RegisterButterfishServer(s grpc.ServiceRegistrar, srv ButterfishServer)
Types ¶
type AnnotatedEmbedding ¶
type AnnotatedEmbedding struct { Start uint64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"` // start index in bytes to the file chunk End uint64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` // end index in bytes to the file chunk Vector []float64 `protobuf:"fixed64,4,rep,packed,name=vector,proto3" json:"vector,omitempty"` // contains filtered or unexported fields }
func (*AnnotatedEmbedding) Descriptor
deprecated
func (*AnnotatedEmbedding) Descriptor() ([]byte, []int)
Deprecated: Use AnnotatedEmbedding.ProtoReflect.Descriptor instead.
func (*AnnotatedEmbedding) GetEnd ¶
func (x *AnnotatedEmbedding) GetEnd() uint64
func (*AnnotatedEmbedding) GetStart ¶
func (x *AnnotatedEmbedding) GetStart() uint64
func (*AnnotatedEmbedding) GetVector ¶
func (x *AnnotatedEmbedding) GetVector() []float64
func (*AnnotatedEmbedding) ProtoMessage ¶
func (*AnnotatedEmbedding) ProtoMessage()
func (*AnnotatedEmbedding) ProtoReflect ¶
func (x *AnnotatedEmbedding) ProtoReflect() protoreflect.Message
func (*AnnotatedEmbedding) Reset ¶
func (x *AnnotatedEmbedding) Reset()
func (*AnnotatedEmbedding) String ¶
func (x *AnnotatedEmbedding) String() string
type ButterfishClient ¶
type ButterfishClient interface {
StreamsForWrapping(ctx context.Context, opts ...grpc.CallOption) (Butterfish_StreamsForWrappingClient, error)
}
ButterfishClient is the client API for Butterfish 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 NewButterfishClient ¶
func NewButterfishClient(cc grpc.ClientConnInterface) ButterfishClient
type ButterfishServer ¶
type ButterfishServer interface { StreamsForWrapping(Butterfish_StreamsForWrappingServer) error // contains filtered or unexported methods }
ButterfishServer is the server API for Butterfish service. All implementations must embed UnimplementedButterfishServer for forward compatibility
type Butterfish_StreamsForWrappingClient ¶
type Butterfish_StreamsForWrappingClient interface { Send(*ClientPush) error Recv() (*ServerPush, error) grpc.ClientStream }
type Butterfish_StreamsForWrappingServer ¶
type Butterfish_StreamsForWrappingServer interface { Send(*ServerPush) error Recv() (*ClientPush, error) grpc.ServerStream }
type ClientInput ¶
type ClientInput struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ClientInput) Descriptor
deprecated
func (*ClientInput) Descriptor() ([]byte, []int)
Deprecated: Use ClientInput.ProtoReflect.Descriptor instead.
func (*ClientInput) GetData ¶
func (x *ClientInput) GetData() []byte
func (*ClientInput) ProtoMessage ¶
func (*ClientInput) ProtoMessage()
func (*ClientInput) ProtoReflect ¶
func (x *ClientInput) ProtoReflect() protoreflect.Message
func (*ClientInput) Reset ¶
func (x *ClientInput) Reset()
func (*ClientInput) String ¶
func (x *ClientInput) String() string
type ClientOpen ¶
type ClientOpen struct { WrappedCommand string `protobuf:"bytes,1,opt,name=wrappedCommand,proto3" json:"wrappedCommand,omitempty"` // contains filtered or unexported fields }
func (*ClientOpen) Descriptor
deprecated
func (*ClientOpen) Descriptor() ([]byte, []int)
Deprecated: Use ClientOpen.ProtoReflect.Descriptor instead.
func (*ClientOpen) GetWrappedCommand ¶
func (x *ClientOpen) GetWrappedCommand() string
func (*ClientOpen) ProtoMessage ¶
func (*ClientOpen) ProtoMessage()
func (*ClientOpen) ProtoReflect ¶
func (x *ClientOpen) ProtoReflect() protoreflect.Message
func (*ClientOpen) Reset ¶
func (x *ClientOpen) Reset()
func (*ClientOpen) String ¶
func (x *ClientOpen) String() string
type ClientOutput ¶
type ClientOutput struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ClientOutput) Descriptor
deprecated
func (*ClientOutput) Descriptor() ([]byte, []int)
Deprecated: Use ClientOutput.ProtoReflect.Descriptor instead.
func (*ClientOutput) GetData ¶
func (x *ClientOutput) GetData() []byte
func (*ClientOutput) ProtoMessage ¶
func (*ClientOutput) ProtoMessage()
func (*ClientOutput) ProtoReflect ¶
func (x *ClientOutput) ProtoReflect() protoreflect.Message
func (*ClientOutput) Reset ¶
func (x *ClientOutput) Reset()
func (*ClientOutput) String ¶
func (x *ClientOutput) String() string
type ClientPush ¶
type ClientPush struct { // Types that are assignable to Msg: // *ClientPush_ClientOpen // *ClientPush_ClientInput // *ClientPush_ClientOutput Msg isClientPush_Msg `protobuf_oneof:"msg"` // contains filtered or unexported fields }
func (*ClientPush) Descriptor
deprecated
func (*ClientPush) Descriptor() ([]byte, []int)
Deprecated: Use ClientPush.ProtoReflect.Descriptor instead.
func (*ClientPush) GetClientInput ¶
func (x *ClientPush) GetClientInput() *ClientInput
func (*ClientPush) GetClientOpen ¶
func (x *ClientPush) GetClientOpen() *ClientOpen
func (*ClientPush) GetClientOutput ¶
func (x *ClientPush) GetClientOutput() *ClientOutput
func (*ClientPush) GetMsg ¶
func (m *ClientPush) GetMsg() isClientPush_Msg
func (*ClientPush) ProtoMessage ¶
func (*ClientPush) ProtoMessage()
func (*ClientPush) ProtoReflect ¶
func (x *ClientPush) ProtoReflect() protoreflect.Message
func (*ClientPush) Reset ¶
func (x *ClientPush) Reset()
func (*ClientPush) String ¶
func (x *ClientPush) String() string
type ClientPush_ClientInput ¶
type ClientPush_ClientInput struct {
ClientInput *ClientInput `protobuf:"bytes,2,opt,name=client_input,json=clientInput,proto3,oneof"`
}
type ClientPush_ClientOpen ¶
type ClientPush_ClientOpen struct {
ClientOpen *ClientOpen `protobuf:"bytes,1,opt,name=client_open,json=clientOpen,proto3,oneof"`
}
type ClientPush_ClientOutput ¶
type ClientPush_ClientOutput struct {
ClientOutput *ClientOutput `protobuf:"bytes,3,opt,name=client_output,json=clientOutput,proto3,oneof"`
}
type DirectoryIndex ¶
type DirectoryIndex struct { // string should be a relative path, e.g. "./foo.txt" Files map[string]*FileEmbeddings `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
Represents the constituent files of a directory, this should map a relative path from the directory to a file within it (but not within a child dir).
func (*DirectoryIndex) Descriptor
deprecated
func (*DirectoryIndex) Descriptor() ([]byte, []int)
Deprecated: Use DirectoryIndex.ProtoReflect.Descriptor instead.
func (*DirectoryIndex) GetFiles ¶
func (x *DirectoryIndex) GetFiles() map[string]*FileEmbeddings
func (*DirectoryIndex) ProtoMessage ¶
func (*DirectoryIndex) ProtoMessage()
func (*DirectoryIndex) ProtoReflect ¶
func (x *DirectoryIndex) ProtoReflect() protoreflect.Message
func (*DirectoryIndex) Reset ¶
func (x *DirectoryIndex) Reset()
func (*DirectoryIndex) String ¶
func (x *DirectoryIndex) String() string
type FileEmbeddings ¶
type FileEmbeddings struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // filename, relative path to the DirectoryIndex, e.g. ./foo // When the embedding was created, if an earlier timestamp than the file // edit time then the file should be re-embedded. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Embeddings []*AnnotatedEmbedding `protobuf:"bytes,3,rep,name=embeddings,proto3" json:"embeddings,omitempty"` // contains filtered or unexported fields }
func (*FileEmbeddings) Descriptor
deprecated
func (*FileEmbeddings) Descriptor() ([]byte, []int)
Deprecated: Use FileEmbeddings.ProtoReflect.Descriptor instead.
func (*FileEmbeddings) GetEmbeddings ¶
func (x *FileEmbeddings) GetEmbeddings() []*AnnotatedEmbedding
func (*FileEmbeddings) GetPath ¶
func (x *FileEmbeddings) GetPath() string
func (*FileEmbeddings) GetUpdatedAt ¶
func (x *FileEmbeddings) GetUpdatedAt() *timestamppb.Timestamp
func (*FileEmbeddings) ProtoMessage ¶
func (*FileEmbeddings) ProtoMessage()
func (*FileEmbeddings) ProtoReflect ¶
func (x *FileEmbeddings) ProtoReflect() protoreflect.Message
func (*FileEmbeddings) Reset ¶
func (x *FileEmbeddings) Reset()
func (*FileEmbeddings) String ¶
func (x *FileEmbeddings) String() string
type ServerPush ¶
type ServerPush struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ServerPush) Descriptor
deprecated
func (*ServerPush) Descriptor() ([]byte, []int)
Deprecated: Use ServerPush.ProtoReflect.Descriptor instead.
func (*ServerPush) GetData ¶
func (x *ServerPush) GetData() []byte
func (*ServerPush) ProtoMessage ¶
func (*ServerPush) ProtoMessage()
func (*ServerPush) ProtoReflect ¶
func (x *ServerPush) ProtoReflect() protoreflect.Message
func (*ServerPush) Reset ¶
func (x *ServerPush) Reset()
func (*ServerPush) String ¶
func (x *ServerPush) String() string
type UnimplementedButterfishServer ¶
type UnimplementedButterfishServer struct { }
UnimplementedButterfishServer must be embedded to have forward compatible implementations.
func (UnimplementedButterfishServer) StreamsForWrapping ¶
func (UnimplementedButterfishServer) StreamsForWrapping(Butterfish_StreamsForWrappingServer) error
type UnsafeButterfishServer ¶
type UnsafeButterfishServer interface {
// contains filtered or unexported methods
}
UnsafeButterfishServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ButterfishServer will result in compilation errors.