Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 9c6d1ac

Browse files
committed
Merge pull request #82 from dmcgowan/rexec-golint-cleanup
Add comments for golint to rexec example
2 parents 32bad1d + 0b16b05 commit 9c6d1ac

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

examples/rexec/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"github.com/docker/libchan/spdy"
1212
)
1313

14+
// RemoteCommand is the run parameters to be executed remotely
1415
type RemoteCommand struct {
1516
Cmd string
1617
Args []string
@@ -20,6 +21,7 @@ type RemoteCommand struct {
2021
StatusChan libchan.Sender
2122
}
2223

24+
// CommandResponse is the returned response object from the remote execution
2325
type CommandResponse struct {
2426
Status int
2527
}

examples/rexec/rexec_server/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"github.com/docker/libchan/spdy"
1414
)
1515

16+
// RemoteCommand is the received command parameters to execute locally and return
1617
type RemoteCommand struct {
1718
Cmd string
1819
Args []string
@@ -22,6 +23,7 @@ type RemoteCommand struct {
2223
StatusChan libchan.Sender
2324
}
2425

26+
// CommandResponse is the reponse struct to return to the client
2527
type CommandResponse struct {
2628
Status int
2729
}

0 commit comments

Comments
 (0)