-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c244e4b
commit 3c65eb6
Showing
19 changed files
with
27 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ package ecal | |
|
||
//#include <stdint.h> | ||
import "C" | ||
|
||
import ( | ||
"runtime/cgo" | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ package monitoring | |
|
||
//#include "monitoring.h" | ||
import "C" | ||
|
||
import ( | ||
"runtime/cgo" | ||
"unsafe" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,8 @@ func TestProtobufPublisher(t *testing.T) { | |
t.Error("Message channel nil") | ||
} | ||
|
||
person := &protos.Person{Id: 0, Name: "John", Email: "[email protected]", | ||
person := &protos.Person{ | ||
Id: 0, Name: "John", Email: "[email protected]", | ||
Dog: &protos.Dog{Name: "Pluto"}, | ||
House: &protos.House{Rooms: 5}, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,6 @@ func TestSubscriber(t *testing.T) { | |
go sendMessages(pub) | ||
for range 10 { | ||
msg, err := sub.Receive(2 * time.Second) | ||
|
||
if err != nil { | ||
t.Error(err) | ||
} | ||
|
@@ -66,7 +65,8 @@ func TestSubscriberTimeout(t *testing.T) { | |
} | ||
|
||
func sendMessages(p *publisher.Publisher[*protos.Person]) { | ||
person := &protos.Person{Id: 0, Name: "John", Email: "[email protected]", | ||
person := &protos.Person{ | ||
Id: 0, Name: "John", Email: "[email protected]", | ||
Dog: &protos.Dog{Name: "Pluto"}, | ||
House: &protos.House{Rooms: 5}, | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,4 @@ func TestPublisher(t *testing.T) { | |
if pub.Messages == nil { | ||
t.Error("Message channel nil") | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,8 @@ func main() { | |
} | ||
defer pub.Delete() // Don't forget to delete the publisher when done! | ||
|
||
person := &protos.Person{Id: 0, Name: "John", Email: "[email protected]", | ||
person := &protos.Person{ | ||
Id: 0, Name: "John", Email: "[email protected]", | ||
Dog: &protos.Dog{Name: "Pluto"}, | ||
House: &protos.House{Rooms: 5}, | ||
} | ||
|