Skip to content

Commit b9c51a2

Browse files
committed
Added godocs
1 parent 06a21db commit b9c51a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,17 @@ type MDNSDiscovery struct {
4545
cancelFunc func()
4646
}
4747

48+
// Hello handles the pluggable-discovery HELLO command
4849
func (d *MDNSDiscovery) Hello(userAgent string, protocolVersion int) error {
4950
return nil
5051
}
5152

53+
// Start handles the pluggable-discovery START command
5254
func (d *MDNSDiscovery) Start() error {
5355
return nil
5456
}
5557

58+
// Stop handles the pluggable-discovery STOP command
5659
func (d *MDNSDiscovery) Stop() error {
5760
if d.cancelFunc != nil {
5861
d.cancelFunc()
@@ -61,13 +64,16 @@ func (d *MDNSDiscovery) Stop() error {
6164
return nil
6265
}
6366

67+
// Quit handles the pluggable-discovery QUIT command
6468
func (d *MDNSDiscovery) Quit() {
6569
}
6670

71+
// List handles the pluggable-discovery LIST command
6772
func (d *MDNSDiscovery) List() ([]*discovery.Port, error) {
6873
return []*discovery.Port{}, nil
6974
}
7075

76+
// StartSync handles the pluggable-discovery START_SYNC command
7177
func (d *MDNSDiscovery) StartSync(eventCB discovery.EventCallback, errorCB discovery.ErrorCallback) error {
7278
addFn := func(srv dnssd.Service) {
7379
eventCB("add", newBoardPortJSON(&srv))

0 commit comments

Comments
 (0)