Documentation
¶
Overview ¶
Package opcode is the closed set of codes enterprise search reports its failures by to an operator (GET /v1/status, the metrics lines): a code, never an error's text, which may hold what the operator should not see and stays in the log, redacted.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code string
Code is one failure's kind; None is no failure.
const ( None Code = "" Database Code = "database" // the index's database LockLost Code = "lock_lost" // the tenant's writer lock was lost View Code = "view" // a view's query failed on the business database Order Code = "order" // a view's rows not in (updated_at, id) order, or a page that holds the cursor ProviderUnreachable Code = "provider_unreachable" // the embedding provider did not answer ProviderRefused Code = "provider_refused" // the provider refused the key or the model ProviderRejected Code = "provider_rejected" // the provider rejected texts Other Code = "other" )
The codes. A failure no other code names is Other.
Click to show internal directories.
Click to hide internal directories.