Documentation ¶
Index ¶
Constants ¶
const (
// OperandServiceName is the fully-qualified name of the OperandService service.
OperandServiceName = "operand.v1.OperandService"
)
Variables ¶
This section is empty.
Functions ¶
func NewOperandServiceHandler ¶
func NewOperandServiceHandler(svc OperandServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewOperandServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type OperandServiceClient ¶
type OperandServiceClient interface { // Search returns a list of snippets that match the given query, along with // all the relevant files that contain the snippets. Search(context.Context, *connect_go.Request[v1.SearchRequest]) (*connect_go.Response[v1.SearchResponse], error) // Converse exposes a chatbot with knowledge backed by the content // of uploaded files. Each conversation is associated with a unique // identifier, which can be passed in again to continue the conversation. Converse(context.Context, *connect_go.Request[v1.ConverseRequest]) (*connect_go.ServerStreamForClient[v1.ConverseResponse], error) }
OperandServiceClient is a client for the operand.v1.OperandService service.
func NewOperandServiceClient ¶
func NewOperandServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) OperandServiceClient
NewOperandServiceClient constructs a client for the operand.v1.OperandService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type OperandServiceHandler ¶
type OperandServiceHandler interface { // Search returns a list of snippets that match the given query, along with // all the relevant files that contain the snippets. Search(context.Context, *connect_go.Request[v1.SearchRequest]) (*connect_go.Response[v1.SearchResponse], error) // Converse exposes a chatbot with knowledge backed by the content // of uploaded files. Each conversation is associated with a unique // identifier, which can be passed in again to continue the conversation. Converse(context.Context, *connect_go.Request[v1.ConverseRequest], *connect_go.ServerStream[v1.ConverseResponse]) error }
OperandServiceHandler is an implementation of the operand.v1.OperandService service.
type UnimplementedOperandServiceHandler ¶
type UnimplementedOperandServiceHandler struct{}
UnimplementedOperandServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedOperandServiceHandler) Converse ¶
func (UnimplementedOperandServiceHandler) Converse(context.Context, *connect_go.Request[v1.ConverseRequest], *connect_go.ServerStream[v1.ConverseResponse]) error
func (UnimplementedOperandServiceHandler) Search ¶
func (UnimplementedOperandServiceHandler) Search(context.Context, *connect_go.Request[v1.SearchRequest]) (*connect_go.Response[v1.SearchResponse], error)