mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-08 09:28:09 -04:00
Bumps [github.com/go-chi/chi/v5](https://github.com/go-chi/chi) from 5.1.0 to 5.2.0. - [Release notes](https://github.com/go-chi/chi/releases) - [Changelog](https://github.com/go-chi/chi/blob/master/CHANGELOG.md) - [Commits](https://github.com/go-chi/chi/compare/v5.1.0...v5.2.0) --- updated-dependencies: - dependency-name: github.com/go-chi/chi/v5 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
23 lines
857 B
Go
23 lines
857 B
Go
package hashstructure
|
|
|
|
// Includable is an interface that can optionally be implemented by
|
|
// a struct. It will be called for each field in the struct to check whether
|
|
// it should be included in the hash.
|
|
type Includable interface {
|
|
HashInclude(field string, v interface{}) (bool, error)
|
|
}
|
|
|
|
// IncludableMap is an interface that can optionally be implemented by
|
|
// a struct. It will be called when a map-type field is found to ask the
|
|
// struct if the map item should be included in the hash.
|
|
type IncludableMap interface {
|
|
HashIncludeMap(field string, k, v interface{}) (bool, error)
|
|
}
|
|
|
|
// Hashable is an interface that can optionally be implemented by a struct
|
|
// to override the hash value. This value will override the hash value for
|
|
// the entire struct. Entries in the struct will not be hashed.
|
|
type Hashable interface {
|
|
Hash() (uint64, error)
|
|
}
|