1
0
Fork 0
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:
diamondburned 2020-11-29 17:19:47 -08:00
parent 44909beb5b
commit e0adbfab35

View file

@ -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.