nng.go
@@ -21,18 +21,10 @@ "nanomsg.org/go-mangos/transport/all" ) // type deliver type td int const ( agent = td(iota) coactee ) // NNG mangos wrap type NNG struct { sock mangos.Socket server bool typ td mode Mode url string @@ -93,7 +85,7 @@ rmExistedIpcName(url) return &NNG{ server: true, typ: agent, mode: m, url: url, arguments: args, @@ -103,7 +95,7 @@ func nngClient(m Mode, url string, args ...interface{}) *NNG { return &NNG{ server: false, typ: coactee, mode: m, url: url, arguments: args,