common

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package common implements constants and errors.

Package common implements constants and errors.

Index

Constants

View Source
const (
	POOLING_INTERVAL        = 1
	API_TIMEOUT             = 30
	UPLOAD_TIMEOUT          = 120
	DEFAULT_EXPIRATION_TIME = 60
	BASE_URL                = "https://ultraocr.apis.nuveo.ai/v2"
	AUTH_BASE_URL           = "https://auth.apis.nuveo.ai/v2"
	STATUS_DONE             = "done"
	STATUS_ERROR            = "error"
	RESOURCE_JOB            = "job"
	RESOURCE_BATCH          = "batch"
	KEY_FACEMATCH           = "facematch"
	KEY_EXTRA               = "extra-document"
	FLAG_TRUE               = "true"
)

SDK Constants.

Variables

View Source
var (
	ErrMountingRequest    = errors.New("failed to mount request")
	ErrDoingRequest       = errors.New("failed to request")
	ErrInvalidStatusCode  = errors.New("invalid status code")
	ErrParsingRequestBody = errors.New("failed to parse request body")
	ErrParsingResponse    = errors.New("failed to parse response body")
	ErrReadFile           = errors.New("failed to read file")
	ErrTimeout            = errors.New("pooling timeout")
)

SDK Errors.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳