Documentation
¶
Index ¶
- func Data(data interface{}) (*callback.CommonResponse, error)
- func Error(err error) (*callback.CommonResponse, error)
- func Success() (*callback.CommonResponse, error)
- type Service
- func (s *Service) CreateDocumentSegments(ctx context.Context, req *callback.CreateDocumentSegmentsRequest) (resp *callback.CommonResponse, err error)
- func (s *Service) GetDatasetCollection(ctx context.Context, req *callback.GetDatasetCollectionRequest) (resp *callback.CommonResponse, err error)
- func (s *Service) GetTextCacheEmbedding(ctx context.Context, req *callback.GetTextCacheEmbeddingRequest) (resp *callback.CommonResponse, err error)
- func (s *Service) SaveTextCacheEmbeddings(ctx context.Context, req *callback.SaveTextCacheEmbeddingsRequest) (resp *callback.CommonResponse, err error)
- func (s *Service) UpdateDocumentSegmentsStatus(ctx context.Context, req *callback.UpdateDocumentSegmentsStatusRequest) (resp *callback.CommonResponse, err error)
- func (s *Service) UpdateDocumentStatus(ctx context.Context, req *callback.UpdateDocumentStatusRequest) (resp *callback.CommonResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Data ¶
func Data(data interface{}) (*callback.CommonResponse, error)
func Success ¶
func Success() (*callback.CommonResponse, error)
Types ¶
type Service ¶
type Service struct {
callback.UnimplementedCallbackServiceServer
}
func (*Service) CreateDocumentSegments ¶
func (s *Service) CreateDocumentSegments(ctx context.Context, req *callback.CreateDocumentSegmentsRequest) (resp *callback.CommonResponse, err error)
func (*Service) GetDatasetCollection ¶
func (s *Service) GetDatasetCollection(ctx context.Context, req *callback.GetDatasetCollectionRequest) (resp *callback.CommonResponse, err error)
func (*Service) GetTextCacheEmbedding ¶
func (s *Service) GetTextCacheEmbedding(ctx context.Context, req *callback.GetTextCacheEmbeddingRequest) (resp *callback.CommonResponse, err error)
func (*Service) SaveTextCacheEmbeddings ¶
func (s *Service) SaveTextCacheEmbeddings(ctx context.Context, req *callback.SaveTextCacheEmbeddingsRequest) (resp *callback.CommonResponse, err error)
func (*Service) UpdateDocumentSegmentsStatus ¶
func (s *Service) UpdateDocumentSegmentsStatus(ctx context.Context, req *callback.UpdateDocumentSegmentsStatusRequest) (resp *callback.CommonResponse, err error)
func (*Service) UpdateDocumentStatus ¶
func (s *Service) UpdateDocumentStatus(ctx context.Context, req *callback.UpdateDocumentStatusRequest) (resp *callback.CommonResponse, err error)
Click to show internal directories.
Click to hide internal directories.