Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProtoHasher ¶
ProtoHasher is an interface for hashers that are capable of returning an ObjectHash for protobufs.
type ProtoHashers ¶
type ProtoHashers struct { // The default ProtoHasher returned by NewHasher() DefaultHasher ProtoHasher // A ProtoHasher that uses field names as keys, returned by // NewHasher(FieldNamesAsKeys()) FieldNamesAsKeysHasher ProtoHasher // A ProtoHasher that uses strings for enum values, returned by // NewHasher(EnumsAsStrings()) EnumsAsStringsHasher ProtoHasher // A ProtoHasher that uses strings for field names and enum values, returned // by NewHasher(FieldNamesAsKeys(), EnumsAsStrings()) StringPreferringHasher ProtoHasher // A ProtoHasher that uses a custom identifier for proto messages, returned // by NewHasher(MessageIdentifier(`m`)) CustomMessageIdentifierHasher ProtoHasher }
ProtoHashers is a struct containing a set of ProtoHashers with different configuration options.
Click to show internal directories.
Click to hide internal directories.