2024-04-03 18:52:04 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2024-04-06 16:38:14 -06:00
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"git.metznet.ca/MetzNet/pnyx"
|
2024-04-03 18:52:04 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2024-04-06 17:03:31 -06:00
|
|
|
client, err := pnyx.NewClient(nil, os.Args[1])
|
2024-04-03 18:52:04 -06:00
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2024-04-06 16:38:14 -06:00
|
|
|
|
2024-04-06 17:03:31 -06:00
|
|
|
fmt.Printf("Started session %s with %s", client.Session.ID, client.Session.Peer)
|
2024-04-03 18:52:04 -06:00
|
|
|
}
|