mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-20 05:43:21 +00:00
State: Expose NoopStore implementation type
This commit is contained in:
parent
44909beb5b
commit
e0adbfab35
|
@ -114,9 +114,12 @@ func (errs *ResetErrors) append(err error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Noop is the value for a NoopStore.
|
||||||
|
var Noop = NoopStore{}
|
||||||
|
|
||||||
// Noop is a no-op implementation of all store interfaces. Its getters will
|
// Noop is a no-op implementation of all store interfaces. Its getters will
|
||||||
// always return ErrNotFound, and its setters will never return an error.
|
// always return ErrNotFound, and its setters will never return an error.
|
||||||
var Noop = noop{}
|
type NoopStore = noop
|
||||||
|
|
||||||
// NoopCabinet is a store cabinet with all store methods set to the Noop
|
// NoopCabinet is a store cabinet with all store methods set to the Noop
|
||||||
// implementations.
|
// implementations.
|
||||||
|
|
Loading…
Reference in a new issue