diff options
Diffstat (limited to 'protocol/observe.go')
-rw-r--r-- | protocol/observe.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/protocol/observe.go b/protocol/observe.go new file mode 100644 index 0000000..48d052a --- /dev/null +++ b/protocol/observe.go @@ -0,0 +1,14 @@ +package protocol + +import ( + "fmt" +) + +type Target struct { + Host string `json:"host"` + Port uint16 `json:"port"` +} + +func (t Target) String() string { + return fmt.Sprintf("%s:%d", t.Host, t.Port) +} |