codes

package
v2.6.5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK              uint16 = iota // Success
	NotFoundSession               // Session connection not found
	InternalError                 // Internal error
)

Variables

This section is empty.

Functions

func CodeToError

func CodeToError(code uint16) error

func ErrorToCode

func ErrorToCode(err error) uint16

ErrorToCode converts an error to its error code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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