端口(Short Syntax)
| 26 | |
| 27 | // 端口(Short Syntax) |
| 28 | type PortSimple struct { |
| 29 | Host string // 外部主机的端口号 |
| 30 | Container string // 内部容器的端口号 |
| 31 | Protocol string // 协议 |
| 32 | } |
| 33 | |
| 34 | // 新建一个端口A到端口B的映射 |
| 35 | func NewPortSimple(hostPort int, containerPort int) PortSimple { |
nothing calls this directly
no outgoing calls
no test coverage detected