Documentation
¶
Overview ¶
Package mutations contains a helper to generate mutations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
Equal compares mutations, but treats a nil slice and a slice containing "null" as equivalent.
func Generator ¶
Generator returns a channel from which an infinite number of mutations can be read. The total number of distinct payload PK value is controlled with the idCount argument. The mutations will have Payload instances encoded into their Data or Key fields, based on the deleteFraction value.
func IsNullish ¶
func IsNullish(raw json.RawMessage) bool
IsNullish returns true if the message is empty or contains the JSON null token.
Types ¶
Click to show internal directories.
Click to hide internal directories.