Documentation
¶
Index ¶
- type Block
- type ExpenseDocument
- type Job
- type JobStatus
- type JobType
- type Store
- func (s *Store) AnalyzeDocumentSync(document map[string]any, featureTypes []string) map[string]any
- func (s *Store) DetectDocumentTextSync(document map[string]any) map[string]any
- func (s *Store) GetJob(jobId string) (*Job, *service.AWSError)
- func (s *Store) ListTagsForResource(arn string) (map[string]string, *service.AWSError)
- func (s *Store) StartJob(jobType JobType, docLocation map[string]any, featureTypes []string, ...) *Job
- func (s *Store) TagResource(arn string, tags map[string]string) *service.AWSError
- func (s *Store) UntagResource(arn string, tagKeys []string) *service.AWSError
- type TextractService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
BlockType string `json:"BlockType"`
Id string `json:"Id"`
Text string `json:"Text,omitempty"`
Confidence float64 `json:"Confidence"`
Geometry map[string]float64 `json:"Geometry,omitempty"`
Relationships []map[string]any `json:"Relationships,omitempty"`
EntityTypes []string `json:"EntityTypes,omitempty"`
Page int `json:"Page,omitempty"`
RowIndex int `json:"RowIndex,omitempty"`
ColumnIndex int `json:"ColumnIndex,omitempty"`
}
type ExpenseDocument ¶
type Job ¶
type Job struct {
JobId string
JobType JobType
Status JobStatus
DocumentLocation map[string]any
FeatureTypes []string
NotificationChannel map[string]any
Blocks []Block
ExpenseDocuments []ExpenseDocument
CreationTime time.Time
CompletionTime *time.Time
StatusMessage string
Tags map[string]string
Lifecycle *lifecycle.Machine
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AnalyzeDocumentSync ¶
func (*Store) DetectDocumentTextSync ¶
func (*Store) ListTagsForResource ¶
func (*Store) TagResource ¶
type TextractService ¶
type TextractService struct {
// contains filtered or unexported fields
}
TextractService is the cloudmock implementation of the AWS Textract API.
func New ¶
func New(accountID, region string) *TextractService
New returns a new TextractService for the given AWS account ID and region.
func (*TextractService) Actions ¶
func (s *TextractService) Actions() []service.Action
Actions returns the list of Textract API actions supported by this service.
func (*TextractService) HandleRequest ¶
func (s *TextractService) HandleRequest(ctx *service.RequestContext) (*service.Response, error)
HandleRequest routes an incoming Textract request to the appropriate handler. Textract uses JSON protocol with TargetPrefix "Textract".
func (*TextractService) HealthCheck ¶
func (s *TextractService) HealthCheck() error
HealthCheck always returns nil.
func (*TextractService) Name ¶
func (s *TextractService) Name() string
Name returns the AWS service name used for routing.
Click to show internal directories.
Click to hide internal directories.