Skip to content

Commit 298d5b3

Browse files
committed
Parrot QoL
1 parent 76e3b96 commit 298d5b3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

parrot/parrot.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,16 @@ func (p *Server) Address() string {
301301
return p.address
302302
}
303303

304+
// Port returns the port the parrot is running on
305+
func (p *Server) Port() int {
306+
return p.port
307+
}
308+
309+
// Host returns the host the parrot is running on
310+
func (p *Server) Host() string {
311+
return p.host
312+
}
313+
304314
// Register adds a new route to the parrot
305315
func (p *Server) Register(route *Route) error {
306316
if p.shutDown.Load() {

0 commit comments

Comments
 (0)