summaryrefslogtreecommitdiff
path: root/protocol/observe.go
blob: 48d052a43b43c498f609af013c1f3eaf283015fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
}