Documentation
¶
Index ¶
- func AppendAttributes(sb *strings.Builder, attributes ...string) (string, error)
- func AppendAttributesOrPanic(sb *strings.Builder, attributes ...string) string
- func CreateCompositeKey(sb *strings.Builder, objectType string, attributes ...string) (string, error)
- func CreateCompositeKeyOrPanic(sb *strings.Builder, objectType string, attributes ...string) string
- func CreateRangeKeysForPartialCompositeKey(objectType string, attributes ...string) (startKey, endKey string, err error)
- func CreateTxTopic(networkName, channelName, txID string) (*strings.Builder, string)
- func IsCompositeKey(key string) bool
- func SplitCompositeKey(compositeKey string) (string, []string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendAttributes ¶
AppendAttributes appends the attributes to the end of the given string builder.
func AppendAttributesOrPanic ¶
AppendAttributesOrPanic appends the attributes to the end of the given string builder. It panics if the attributes are invalid.
func CreateCompositeKey ¶
func CreateCompositeKey(sb *strings.Builder, objectType string, attributes ...string) (string, error)
CreateCompositeKey creates a composite key in the given string builder.
func CreateCompositeKeyOrPanic ¶
CreateCompositeKeyOrPanic creates a composite key in the given string builder. It panics if the attributes are invalid.
func CreateRangeKeysForPartialCompositeKey ¶ added in v0.24.0
func CreateRangeKeysForPartialCompositeKey(objectType string, attributes ...string) (startKey, endKey string, err error)
CreateRangeKeysForPartialCompositeKey returns the start and end keys of a range scan that covers every composite key beginning with the given objectType and attributes.
func CreateTxTopic ¶
func IsCompositeKey ¶ added in v0.24.0
IsCompositeKey reports whether key starts with the composite key namespace prefix.
Types ¶
This section is empty.