Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Jul 3, 2024
1 parent 1088827 commit 812c6ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion schema/appdata/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,17 @@ type ToBytes = func() ([]byte, error)
// ToJSON is a function that lazily returns the JSON representation of data.
type ToJSON = func() (json.RawMessage, error)

// KVPairData represents a batch of key-value pair data that is passed to a listener.
type KVPairData struct {
Updates []ModuleKVPairUpdate
}

// ModuleKVPairUpdate represents a key-value pair update for a specific module.
type ModuleKVPairUpdate struct {
// ModuleName is the name of the module that the key-value pair belongs to.
ModuleName string

// Update is the key-value pair update.
Update schema.KVPairUpdate
}

Expand All @@ -90,5 +93,5 @@ type ObjectUpdateData struct {
Updates []schema.ObjectUpdate
}

// CommitData represents commit data
// CommitData represents commit data. It is empty for now, but fields could be added later.
type CommitData struct{}

0 comments on commit 812c6ee

Please sign in to comment.