Skip to content

Commit

Permalink
Merge pull request #8 from TinyIoT/event-types
Browse files Browse the repository at this point in the history
Update event types
  • Loading branch information
farshidtz authored Jul 13, 2022
2 parents add7407 + 4c83f25 commit 5dfbad9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion notification/event_type.go

This file was deleted.

3 changes: 2 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ parts:
source: .
build-packages:
- curl
- git
override-pull: |
snapcraftctl pull
snapcraftctl set-version $(git describe)
Expand All @@ -40,4 +41,4 @@ parts:
curl https://raw.githubusercontent.com/w3c/wot-thing-description/REC1.0/validation/td-json-schema-validation.json -o conf/wot_td_schema.json
curl https://raw.githubusercontent.com/w3c/wot-discovery/main/validation/td-discovery-extensions-json-schema.json -o conf/wot_discovery_schema.json
cp $SNAPCRAFT_PART_SRC/sample_conf/thing-directory.json conf/thing-directory.json
snapcraftctl prime
snapcraftctl prime
Binary file not shown.
6 changes: 3 additions & 3 deletions wot/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const (
KeyThingRegistrationExpires = "expires"
KeyThingRegistrationTTL = "ttl"
// TD event types
EventTypeCreate = "create"
EventTypeUpdate = "update"
EventTypeDelete = "delete"
EventTypeCreate = "thing_created"
EventTypeUpdate = "thing_updated"
EventTypeDelete = "thing_deleted"
)

type EnrichedTD struct {
Expand Down

0 comments on commit 5dfbad9

Please sign in to comment.