Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvictedError ¶
type EvictedError struct{}
func (*EvictedError) Error ¶
func (s *EvictedError) Error() string
type ItemStatus ¶
type ItemStatus int
const ( None ItemStatus = iota Enqueued Running Done Failed Canceled )
type LazyMap ¶
type LazyMap[T any] struct { // contains filtered or unexported fields }
type PanicError ¶
PanicError is a panic in f, returned as Get's error. Error leaves the stack out: callers hand errors to clients (rest-api's JSON body, torrent-store's gRPC status), and a stack there leaks source paths. Log Stack explicitly.
func (*PanicError) Error ¶
func (e *PanicError) Error() string
Error renders Value on one line, cut to 200 runes: a panic value can be any size, and the message ends up in log lines and client responses. Control characters (\v, \f and NEL break lines too, ESC drives terminals) and U+2028/U+2029 become spaces.
func (*PanicError) Unwrap ¶
func (e *PanicError) Unwrap() error
Unwrap gives errors.Is/As the panicked value when it is an error.
Click to show internal directories.
Click to hide internal directories.