Skip to content

Commit

Permalink
add registration of action type and publishing/subscribing of actions (
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerinus committed Nov 12, 2022
1 parent 2984eb7 commit b6620f7
Show file tree
Hide file tree
Showing 33 changed files with 707 additions and 426 deletions.
8 changes: 8 additions & 0 deletions api/message_bus/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,10 @@ components:

EventType:
type: object
required:
- "sourceID"
- "name"
- "propertyTypeList"
properties:
sourceID:
type: string
Expand Down Expand Up @@ -515,6 +519,10 @@ components:

ActionType:
type: object
required:
- "sourceID"
- "name"
- "propertyTypeList"
properties:
sourceID:
type: string
Expand Down
8 changes: 0 additions & 8 deletions cmd/message-bus-tool/cmd/constants.go

This file was deleted.

81 changes: 0 additions & 81 deletions cmd/message-bus-tool/cmd/eventTypes.go

This file was deleted.

28 changes: 0 additions & 28 deletions cmd/message-bus-tool/cmd/list.go

This file was deleted.

49 changes: 0 additions & 49 deletions cmd/message-bus-tool/cmd/root.go

This file was deleted.

88 changes: 0 additions & 88 deletions cmd/message-bus-tool/cmd/subscribe.go

This file was deleted.

34 changes: 0 additions & 34 deletions cmd/message-bus-tool/cmd/version.go

This file was deleted.

20 changes: 0 additions & 20 deletions cmd/message-bus-tool/main.go

This file was deleted.

4 changes: 2 additions & 2 deletions common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ const (
MessageBusVersion = "0.3.8"
MessageBusServiceName = "message-bus"

MessageBusSourceID = "message-bus"
MessageBusHeartbeatEventName = "message-bus:heartbeat"
MessageBusSourceID = "message-bus"
MessageBusHeartbeatName = "message-bus:heartbeat"
)
5 changes: 1 addition & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ require (
github.com/IceWhaleTech/CasaOS-Common v0.3.8-alpha1
github.com/gobwas/ws v1.1.0
github.com/json-iterator/go v1.1.12
github.com/spf13/cobra v1.6.1
go.uber.org/goleak v1.1.11
gorm.io/driver/sqlite v1.4.3
gorm.io/gorm v1.24.1
Expand All @@ -31,7 +30,6 @@ require (
github.com/golang/snappy v0.0.2 // indirect
github.com/google/go-cmp v0.5.8 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/klauspost/compress v1.11.4 // indirect
Expand All @@ -45,7 +43,6 @@ require (
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
github.com/pierrec/lz4/v4 v4.1.2 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/ugorji/go/codec v1.2.7 // indirect
github.com/ulikunitz/xz v0.5.9 // indirect
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect
Expand Down Expand Up @@ -75,7 +72,7 @@ require (
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.21.0
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/net v0.1.0
golang.org/x/net v0.1.0 // indirect
golang.org/x/sys v0.1.0 // indirect
golang.org/x/text v0.4.0 // indirect
gopkg.in/ini.v1 v1.67.0
Expand Down

0 comments on commit b6620f7

Please sign in to comment.