LEFT | RIGHT |
1 // gozk - ZooKeeper support for the Go language | 1 // gozk - ZooKeeper support for the Go language |
2 // | 2 // |
3 // https://wiki.ubuntu.com/gozk | 3 // https://wiki.ubuntu.com/gozk |
4 // | 4 // |
5 // Copyright (c) 2010-2011 Canonical Ltd. | 5 // Copyright (c) 2010-2011 Canonical Ltd. |
6 // | 6 // |
7 // Written by Gustavo Niemeyer <gustavo.niemeyer@canonical.com> | 7 // Written by Gustavo Niemeyer <gustavo.niemeyer@canonical.com> |
8 // | 8 // |
9 package zookeeper | 9 package zookeeper |
10 | 10 |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 event := Event{ | 994 event := Event{ |
995 Type: int(data.event_type), | 995 Type: int(data.event_type), |
996 Path: C.GoString(data.event_path), | 996 Path: C.GoString(data.event_path), |
997 State: int(data.connection_state), | 997 State: int(data.connection_state), |
998 } | 998 } |
999 watchId := uintptr(data.watch_context) | 999 watchId := uintptr(data.watch_context) |
1000 C.destroy_watch_data(data) | 1000 C.destroy_watch_data(data) |
1001 sendEvent(watchId, event) | 1001 sendEvent(watchId, event) |
1002 } | 1002 } |
1003 } | 1003 } |
LEFT | RIGHT |