Help us shape the future of Go! Take the 2026 Go Developer Survey

opcode

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL