You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2015/09/28 23:22:45 UTC
[01/36] qpid-proton git commit: PROTON-827: Restore genwrap.go
generator deleted in error, update for package name changes.
Repository: qpid-proton
Updated Branches:
refs/heads/master 5598d501f -> cb868e927
PROTON-827: Restore genwrap.go generator deleted in error, update for package name changes.
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/7087b22d
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/7087b22d
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/7087b22d
Branch: refs/heads/master
Commit: 7087b22ddd99959dedf235c5194a0a1eaead3116
Parents: 9276ae3
Author: Alan Conway <ac...@redhat.com>
Authored: Thu May 14 21:14:01 2015 -0400
Committer: Alan Conway <ac...@redhat.com>
Committed: Mon Sep 28 17:14:37 2015 -0400
----------------------------------------------------------------------
go/event/genwrap.go | 427 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 427 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/7087b22d/go/event/genwrap.go
----------------------------------------------------------------------
diff --git a/go/event/genwrap.go b/go/event/genwrap.go
new file mode 100644
index 0000000..094b196
--- /dev/null
+++ b/go/event/genwrap.go
@@ -0,0 +1,427 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+*/
+
+// Code generator to generate a thin Go wrapper API around the C proton API.
+//
+
+package main
+
+import (
+ "flag"
+ "fmt"
+ "io"
+ "io/ioutil"
+ "os"
+ "os/exec"
+ "path"
+ "regexp"
+ "strings"
+ "text/template"
+)
+
+func mixedCase(s string) string {
+ result := ""
+ for _, w := range strings.Split(s, "_") {
+ if w != "" {
+ result = result + strings.ToUpper(w[0:1]) + strings.ToLower(w[1:])
+ }
+ }
+ return result
+}
+
+func mixedCaseTrim(s, prefix string) string {
+ return mixedCase(strings.TrimPrefix(s, prefix))
+}
+
+var templateFuncs = template.FuncMap{"mixedCase": mixedCase, "mixedCaseTrim": mixedCaseTrim}
+
+func doTemplate(out io.Writer, data interface{}, tmpl string) {
+ panicIf(template.Must(template.New("").Funcs(templateFuncs).Parse(tmpl)).Execute(out, data))
+}
+
+type enumType struct {
+ Name string
+ Values []string
+}
+
+// Find enums in a header file return map of enum name to values.
+func findEnums(header string) (enums []enumType) {
+ for _, enum := range enumDefRe.FindAllStringSubmatch(header, -1) {
+ enums = append(enums, enumType{enum[2], enumValRe.FindAllString(enum[1], -1)})
+ }
+ return enums
+}
+
+func genEnum(out io.Writer, name string, values []string) {
+ doTemplate(out, []interface{}{name, values}, `{{$enumName := index . 0}}{{$values := index . 1}}
+type {{mixedCase $enumName}} C.pn_{{$enumName}}_t
+const ({{range $values}}
+ {{mixedCase .}} {{mixedCase $enumName}} = C.{{.}} {{end}}
+)
+
+func (e {{mixedCase $enumName}}) String() string {
+ switch e {
+{{range $values}}
+ case C.{{.}}: return "{{mixedCaseTrim . "PN_"}}" {{end}}
+ }
+ return "unknown"
+}
+`)
+}
+
+var (
+ reSpace = regexp.MustCompile("\\s+")
+)
+
+func panicIf(err error) {
+ if err != nil {
+ panic(err)
+ }
+}
+
+func readHeader(name string) string {
+ file, err := os.Open(path.Join(*includeProton, name+".h"))
+ panicIf(err)
+ defer file.Close()
+ s, err := ioutil.ReadAll(file)
+ panicIf(err)
+ return string(s)
+}
+
+var copyright string = `/*
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+*/
+
+//
+// NOTE: This file was generated by genwrap.go, do not edit it by hand.
+//
+`
+
+type eventType struct {
+ // C, function and interface names for the event
+ Name, Cname, Fname, Iname string
+}
+
+func newEventType(cName string) eventType {
+ var etype eventType
+ etype.Cname = cName
+ etype.Name = mixedCaseTrim(cName, "PN_")
+ etype.Fname = "On" + etype.Name
+ etype.Iname = etype.Fname + "Interface"
+ return etype
+}
+
+var (
+ enumDefRe = regexp.MustCompile("typedef enum {([^}]*)} pn_([a-z_]+)_t;")
+ enumValRe = regexp.MustCompile("PN_[A-Z_]+")
+ skipEventRe = regexp.MustCompile("EVENT_NONE|REACTOR|SELECTABLE|TIMER")
+ skipFnRe = regexp.MustCompile("attach|context|class|collect|^recv$|^send$|transport")
+)
+
+// Generate event wrappers.
+func event(out io.Writer) {
+ event_h := readHeader("event")
+
+ // Event is implented by hand in wrappers.go
+
+ // Get all the pn_event_type_t enum values
+ var etypes []eventType
+ enums := findEnums(event_h)
+ for _, e := range enums[0].Values {
+ if skipEventRe.FindStringSubmatch(e) == nil {
+ etypes = append(etypes, newEventType(e))
+ }
+ }
+
+ doTemplate(out, etypes, `
+type EventType int
+const ({{range .}}
+ E{{.Name}} EventType = C.{{.Cname}}{{end}}
+)
+`)
+
+ doTemplate(out, etypes, `
+func (e EventType) String() string {
+ switch e {
+{{range .}}
+ case C.{{.Cname}}: return "{{.Name}}"{{end}}
+ }
+ return "Unknown"
+}
+`)
+}
+
+type genType struct {
+ Ctype, Gotype string
+ ToGo func(value string) string
+ ToC func(value string) string
+ Assign func(value string) string
+}
+
+func (g genType) printBody(out io.Writer, value string) {
+ if g.Gotype != "" {
+ fmt.Fprintf(out, "return %s", g.ToGo(value))
+ } else {
+ fmt.Fprintf(out, "%s", value)
+ }
+}
+
+func (g genType) goLiteral(value string) string {
+ return fmt.Sprintf("%s{%s}", g.Gotype, value)
+}
+
+func (g genType) goConvert(value string) string {
+ switch g.Gotype {
+ case "string":
+ return fmt.Sprintf("C.GoString(%s)", value)
+ case "Event":
+ return fmt.Sprintf("makeEvent(%s)", value)
+ default:
+ return fmt.Sprintf("%s(%s)", g.Gotype, value)
+ }
+}
+
+var notStruct = map[string]bool{
+ "EventType": true,
+ "SndSettleMode": true,
+ "RcvSettleMode": true,
+ "TerminusType": true,
+ "State": true,
+ "Durability": true,
+ "ExpiryPolicy": true,
+ "DistributionMode": true,
+}
+
+func mapType(ctype string) (g genType) {
+ g.Ctype = "C." + strings.Trim(ctype, " \n")
+
+ switch g.Ctype {
+ case "C.void":
+ g.Gotype = ""
+ case "C.size_t":
+ g.Gotype = "uint"
+ case "C.int":
+ g.Gotype = "int"
+ case "C.void *":
+ g.Gotype = "unsafe.Pointer"
+ g.Ctype = "unsafe.Pointer"
+ case "C.bool":
+ g.Gotype = "bool"
+ case "C.ssize_t":
+ g.Gotype = "int"
+ case "C.uint64_t":
+ g.Gotype = "uint64"
+ case "C.uint32_t":
+ g.Gotype = "uint16"
+ case "C.uint16_t":
+ g.Gotype = "uint32"
+ case "C.const char *":
+ fallthrough
+ case "C.char *":
+ g.Gotype = "string"
+ g.Ctype = "C.CString"
+ g.ToC = func(v string) string { return fmt.Sprintf("%sC", v) }
+ g.Assign = func(v string) string {
+ return fmt.Sprintf("%sC := C.CString(%s)\n defer C.free(unsafe.Pointer(%sC))\n", v, v, v)
+ }
+ case "C.pn_seconds_t":
+ g.Gotype = "time.Duration"
+ g.ToGo = func(v string) string { return fmt.Sprintf("(time.Duration(%s) * time.Second)", v) }
+ case "C.pn_error_t *":
+ g.Gotype = "error"
+ g.ToGo = func(v string) string { return fmt.Sprintf("internal.PnError(unsafe.Pointer(%s))", v) }
+ default:
+ pnId := regexp.MustCompile(" *pn_([a-z_]+)_t *\\*? *")
+ match := pnId.FindStringSubmatch(g.Ctype)
+ if match == nil {
+ panic(fmt.Errorf("unknown C type %#v", g.Ctype))
+ }
+ g.Gotype = mixedCase(match[1])
+ if !notStruct[g.Gotype] {
+ g.ToGo = g.goLiteral
+ g.ToC = func(v string) string { return v + ".pn" }
+ }
+ }
+ if g.ToGo == nil {
+ g.ToGo = g.goConvert // Use conversion by default.
+ }
+ if g.ToC == nil {
+ g.ToC = func(v string) string { return fmt.Sprintf("%s(%s)", g.Ctype, v) }
+ }
+ return
+}
+
+type genArg struct {
+ Name string
+ genType
+}
+
+var typeNameRe = regexp.MustCompile("^(.*( |\\*))([^ *]+)$")
+
+func splitArgs(argstr string) []genArg {
+ argstr = strings.Trim(argstr, " \n")
+ if argstr == "" {
+ return []genArg{}
+ }
+ args := make([]genArg, 0)
+ for _, item := range strings.Split(argstr, ",") {
+ item = strings.Trim(item, " \n")
+ typeName := typeNameRe.FindStringSubmatch(item)
+ if typeName == nil {
+ panic(fmt.Errorf("Can't split argument type/name %#v", item))
+ }
+ cType := strings.Trim(typeName[1], " \n")
+ name := strings.Trim(typeName[3], " \n")
+ if name == "type" {
+ name = "type_"
+ }
+ args = append(args, genArg{name, mapType(cType)})
+ }
+ return args
+}
+
+func goArgs(args []genArg) string {
+ l := ""
+ for i, arg := range args {
+ if i != 0 {
+ l += ", "
+ }
+ l += arg.Name + " " + arg.Gotype
+ }
+ return l
+}
+
+func cArgs(args []genArg) string {
+ l := ""
+ for _, arg := range args {
+ l += fmt.Sprintf(", %s", arg.ToC(arg.Name))
+ }
+ return l
+}
+
+func cAssigns(args []genArg) string {
+ l := "\n"
+ for _, arg := range args {
+ if arg.Assign != nil {
+ l += fmt.Sprintf("%s\n", arg.Assign(arg.Name))
+ }
+ }
+ return l
+}
+
+// Return the go name of the function or "" to skip the function.
+func goFnName(api, fname string) string {
+ // Skip class, context and attachment functions.
+ if skipFnRe.FindStringSubmatch(fname) != nil {
+ return ""
+ }
+ switch api + "." + fname {
+ case "link.get_drain":
+ return "IsDrain"
+ default:
+ return mixedCaseTrim(fname, "get_")
+ }
+}
+
+func apiWrapFns(api, header string, out io.Writer) {
+ fmt.Fprintf(out, "type %s struct{pn *C.pn_%s_t}\n", mixedCase(api), api)
+ fmt.Fprintf(out, "func (%c %s) IsNil() bool { return %c.pn == nil }\n", api[0], mixedCase(api), api[0])
+ fn := regexp.MustCompile(fmt.Sprintf(`PN_EXTERN ([a-z0-9_ ]+ *\*?) *pn_%s_([a-z_]+)\(pn_%s_t *\*[a-z_]+ *,? *([^)]*)\)`, api, api))
+ for _, m := range fn.FindAllStringSubmatch(header, -1) {
+ rtype, fname, argstr := mapType(m[1]), m[2], m[3]
+ gname := goFnName(api, fname)
+ if gname == "" { // Skip
+ continue
+ }
+ args := splitArgs(argstr)
+ fmt.Fprintf(out, "func (%c %s) %s", api[0], mixedCase(api), gname)
+ fmt.Fprintf(out, "(%s) %s { ", goArgs(args), rtype.Gotype)
+ fmt.Fprint(out, cAssigns(args))
+ rtype.printBody(out, fmt.Sprintf("C.pn_%s_%s(%c.pn%s)", api, fname, api[0], cArgs(args)))
+ fmt.Fprintf(out, "}\n")
+ }
+}
+
+var includeProton = flag.String("include", "", "path to proton include files, including /proton")
+
+func main() {
+ flag.Parse()
+ outpath := "wrappers_gen.go"
+ out, err := os.Create(outpath)
+ panicIf(err)
+ defer out.Close()
+
+ apis := []string{"session", "link", "delivery", "disposition", "condition", "terminus", "connection"}
+ fmt.Fprintln(out, copyright)
+ fmt.Fprint(out, `
+package event
+
+import (
+ "time"
+ "unsafe"
+ "qpid.apache.org/proton/go/internal"
+)
+
+// #include <proton/types.h>
+// #include <proton/event.h>
+// #include <stdlib.h>
+`)
+ for _, api := range apis {
+ fmt.Fprintf(out, "// #include <proton/%s.h>\n", api)
+ }
+ fmt.Fprintln(out, `import "C"`)
+
+ event(out)
+
+ for _, api := range apis {
+ fmt.Fprintf(out, "// Wrappers for declarations in %s.h\n\n", api)
+ header := readHeader(api)
+ enums := findEnums(header)
+ for _, e := range enums {
+ genEnum(out, e.Name, e.Values)
+ }
+ apiWrapFns(api, header, out)
+ }
+ out.Close()
+
+ // Run gofmt.
+ cmd := exec.Command("gofmt", "-w", outpath)
+ cmd.Stdout = os.Stdout
+ cmd.Stderr = os.Stderr
+ err = cmd.Run()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "gofmt: %s", err)
+ os.Exit(1)
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org
[05/36] qpid-proton git commit: PROTON-827: Switch go directory and
symlink locations, problems with some go tools.
Posted by ac...@apache.org.
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/9276ae33/proton-c/bindings/go/pkg/linux_amd64/qpid.apache.org/proton/go/event.a
----------------------------------------------------------------------
diff --git a/proton-c/bindings/go/pkg/linux_amd64/qpid.apache.org/proton/go/event.a b/proton-c/bindings/go/pkg/linux_amd64/qpid.apache.org/proton/go/event.a
new file mode 100644
index 0000000..9871ec9
--- /dev/null
+++ b/proton-c/bindings/go/pkg/linux_amd64/qpid.apache.org/proton/go/event.a
@@ -0,0 +1,3318 @@
+!<arch>
+__.PKGDEF 0 0 0 644 33134 `
+go object linux amd64 go1.4.2 X:precisestack
+
+$$
+package event
+ import net "net"
+ import sync "sync"
+ import runtime "runtime"
+ import time "time"
+ import io "io"
+ import cgo "runtime/cgo"
+ import amqp "qpid.apache.org/proton/go/amqp"
+ import os "os"
+ import syscall "syscall"
+ import fmt "fmt"
+ import internal "qpid.apache.org/proton/go/internal"
+ import reflect "reflect"
+ import path "path"
+ import unsafe "unsafe"
+ type @""._Ctype_struct_pn_event_t struct {}
+ type @"".EventType int
+ func (@"".e·2 @"".EventType) String () (? string)
+ type @""._Ctype_struct_pn_connection_t struct {}
+ type @"sync".Mutex struct { @"sync".state int32; @"sync".sema uint32 }
+ func (@"sync".m·1 *@"sync".Mutex) Lock ()
+ func (@"sync".m·1 *@"sync".Mutex) Unlock ()
+ type @"qpid.apache.org/proton/go/internal".FirstError struct { @"qpid.apache.org/proton/go/internal".err error; @"qpid.apache.org/proton/go/internal".lock @"sync".Mutex }
+ func (@"qpid.apache.org/proton/go/internal".e·2 *@"qpid.apache.org/proton/go/internal".FirstError) Get () (? error)
+ func (@"qpid.apache.org/proton/go/internal".e·2 *@"qpid.apache.org/proton/go/internal".FirstError) Set (@"qpid.apache.org/proton/go/internal".err·3 error) (? error)
+ type @"net".Addr interface { Network() (? string); String() (? string) }
+ type @"time".zone struct { @"time".name string; @"time".offset int; @"time".isDST bool }
+ type @"time".zoneTrans struct { @"time".when int64; @"time".index uint8; @"time".isstd bool; @"time".isutc bool }
+ type @"time".Location struct { @"time".name string; @"time".zone []@"time".zone; @"time".tx []@"time".zoneTrans; @"time".cacheStart int64; @"time".cacheEnd int64; @"time".cacheZone *@"time".zone }
+ func (@"time".l·2 *@"time".Location "esc:0x0") String () (? string)
+ func (@"time".l·2 *@"time".Location "esc:0x0") @"time".firstZoneUsed () (? bool)
+ func (@"time".l·2 *@"time".Location "esc:0x2") @"time".get () (? *@"time".Location)
+ func (@"time".l·6 *@"time".Location "esc:0x1") @"time".lookup (@"time".sec·7 int64) (@"time".name·1 string, @"time".offset·2 int, @"time".isDST·3 bool, @"time".start·4 int64, @"time".end·5 int64)
+ func (@"time".l·2 *@"time".Location "esc:0x0") @"time".lookupFirstZone () (? int)
+ func (@"time".l·4 *@"time".Location "esc:0x0") @"time".lookupName (@"time".name·5 string "esc:0x0", @"time".unix·6 int64) (@"time".offset·1 int, @"time".isDST·2 bool, @"time".ok·3 bool)
+ type @"time".Duration int64
+ func (@"time".d·2 @"time".Duration) Hours () (? float64) { var @"time".hour·3 @"time".Duration; ; @"time".hour·3 = @"time".d·2 / @"time".Duration(0x34630B8A000); var @"time".nsec·4 @"time".Duration; ; @"time".nsec·4 = @"time".d·2 % @"time".Duration(0x34630B8A000); return float64(@"time".hour·3) + float64(@"time".nsec·4) * 0x9C5FFF26ED75Fp-93 }
+ func (@"time".d·2 @"time".Duration) Minutes () (? float64) { var @"time".min·3 @"time".Duration; ; @"time".min·3 = @"time".d·2 / @"time".Duration(0xDF8475800); var @"time".nsec·4 @"time".Duration; ; @"time".nsec·4 = @"time".d·2 % @"time".Duration(0xDF8475800); return float64(@"time".min·3) + float64(@"time".nsec·4) * 0x9299FF347E9E9p-87 }
+ func (@"time".d·2 @"time".Duration) Nanoseconds () (? int64) { return int64(@"time".d·2) }
+ func (@"time".d·2 @"time".Duration) Seconds () (? float64) { var @"time".sec·3 @"time".Duration; ; @"time".sec·3 = @"time".d·2 / @"time".Duration(0x3B9ACA00); var @"time".nsec·4 @"time".Duration; ; @"time".nsec·4 = @"time".d·2 % @"time".Duration(0x3B9ACA00); return float64(@"time".sec·3) + float64(@"time".nsec·4) * 0x112E0BE826D695p-82 }
+ func (@"time".d·2 @"time".Duration) String () (? string)
+ type @"time".Month int
+ func (@"time".m·2 @"time".Month) String () (? string) { return @"time".months[@"time".m·2 - @"time".Month(0x1)] }
+ type @"time".Weekday int
+ func (@"time".d·2 @"time".Weekday) String () (? string) { return @"time".days[@"time".d·2] }
+ type @"time".Time struct { @"time".sec int64; @"time".nsec int32; @"time".loc *@"time".Location }
+ func (@"time".t·2 @"time".Time "esc:0x2") Add (@"time".d·3 @"time".Duration) (? @"time".Time)
+ func (@"time".t·2 @"time".Time "esc:0x2") AddDate (@"time".years·3 int, @"time".months·4 int, @"time".days·5 int) (? @"time".Time)
+ func (@"time".t·2 @"time".Time "esc:0x0") After (@"time".u·3 @"time".Time "esc:0x0") (? bool) { return @"time".t·2.@"time".sec > @"time".u·3.@"time".sec || @"time".t·2.@"time".sec == @"time".u·3.@"time".sec && @"time".t·2.@"time".nsec > @"time".u·3.@"time".nsec }
+ func (@"time".t·2 @"time".Time "esc:0x0") Before (@"time".u·3 @"time".Time "esc:0x0") (? bool) { return @"time".t·2.@"time".sec < @"time".u·3.@"time".sec || @"time".t·2.@"time".sec == @"time".u·3.@"time".sec && @"time".t·2.@"time".nsec < @"time".u·3.@"time".nsec }
+ func (@"time".t·4 @"time".Time "esc:0x0") Clock () (@"time".hour·1 int, @"time".min·2 int, @"time".sec·3 int)
+ func (@"time".t·4 @"time".Time "esc:0x0") Date () (@"time".year·1 int, @"time".month·2 @"time".Month, @"time".day·3 int)
+ func (@"time".t·2 @"time".Time "esc:0x0") Day () (? int)
+ func (@"time".t·2 @"time".Time "esc:0x0") Equal (@"time".u·3 @"time".Time "esc:0x0") (? bool) { return @"time".t·2.@"time".sec == @"time".u·3.@"time".sec && @"time".t·2.@"time".nsec == @"time".u·3.@"time".nsec }
+ func (@"time".t·2 @"time".Time "esc:0x0") Format (@"time".layout·3 string "esc:0x0") (? string)
+ func (@"time".t·2 *@"time".Time "esc:0x0") GobDecode (@"time".data·3 []byte "esc:0x0") (? error)
+ func (@"time".t·3 @"time".Time "esc:0x0") GobEncode () (? []byte, ? error)
+ func (@"time".t·2 @"time".Time "esc:0x0") Hour () (? int)
+ func (@"time".t·3 @"time".Time "esc:0x0") ISOWeek () (@"time".year·1 int, @"time".week·2 int)
+ func (@"time".t·2 @"time".Time "esc:0x2") In (@"time".loc·3 *@"time".Location "esc:0x2") (? @"time".Time)
+ func (@"time".t·2 @"time".Time "esc:0x0") IsZero () (? bool) { return @"time".t·2.@"time".sec == 0x0 && @"time".t·2.@"time".nsec == 0x0 }
+ func (@"time".t·2 @"time".Time "esc:0x2") Local () (? @"time".Time) { @"time".t·2.@"time".loc = @"time".Local; return @"time".t·2 }
+ func (@"time".t·2 @"time".Time "esc:0x2") Location () (? *@"time".Location) { var @"time".l·3 *@"time".Location; ; @"time".l·3 = @"time".t·2.@"time".loc; if @"time".l·3 == nil { @"time".l·3 = @"time".UTC }; return @"time".l·3 }
+ func (@"time".t·3 @"time".Time "esc:0x0") MarshalBinary () (? []byte, ? error)
+ func (@"time".t·3 @"time".Time "esc:0x0") MarshalJSON () (? []byte, ? error)
+ func (@"time".t·3 @"time".Time "esc:0x0") MarshalText () (? []byte, ? error)
+ func (@"time".t·2 @"time".Time "esc:0x0") Minute () (? int)
+ func (@"time".t·2 @"time".Time "esc:0x0") Month () (? @"time".Month)
+ func (@"time".t·2 @"time".Time "esc:0x0") Nanosecond () (? int) { return int(@"time".t·2.@"time".nsec) }
+ func (@"time".t·2 @"time".Time "esc:0x2") Round (@"time".d·3 @"time".Duration) (? @"time".Time)
+ func (@"time".t·2 @"time".Time "esc:0x0") Second () (? int)
+ func (@"time".t·2 @"time".Time "esc:0x0") String () (? string)
+ func (@"time".t·2 @"time".Time "esc:0x0") Sub (@"time".u·3 @"time".Time "esc:0x0") (? @"time".Duration)
+ func (@"time".t·2 @"time".Time "esc:0x2") Truncate (@"time".d·3 @"time".Duration) (? @"time".Time)
+ func (@"time".t·2 @"time".Time "esc:0x2") UTC () (? @"time".Time) { @"time".t·2.@"time".loc = @"time".UTC; return @"time".t·2 }
+ func (@"time".t·2 @"time".Time "esc:0x0") Unix () (? int64) { return @"time".t·2.@"time".sec + -0xE7791F700 }
+ func (@"time".t·2 @"time".Time "esc:0x0") UnixNano () (? int64) { return (@"time".t·2.@"time".sec + -0xE7791F700) * 0x3B9ACA00 + int64(@"time".t·2.@"time".nsec) }
+ func (@"time".t·2 *@"time".Time "esc:0x0") UnmarshalBinary (@"time".data·3 []byte "esc:0x0") (? error)
+ func (@"time".t·2 *@"time".Time "esc:0x0") UnmarshalJSON (@"time".data·3 []byte "esc:0x0") (@"time".err·1 error)
+ func (@"time".t·2 *@"time".Time "esc:0x0") UnmarshalText (@"time".data·3 []byte "esc:0x0") (@"time".err·1 error)
+ func (@"time".t·2 @"time".Time "esc:0x0") Weekday () (? @"time".Weekday)
+ func (@"time".t·2 @"time".Time "esc:0x0") Year () (? int)
+ func (@"time".t·2 @"time".Time "esc:0x0") YearDay () (? int)
+ func (@"time".t·3 @"time".Time "esc:0x0") Zone () (@"time".name·1 string, @"time".offset·2 int)
+ func (@"time".t·2 @"time".Time "esc:0x0") @"time".abs () (? uint64)
+ func (@"time".t·5 @"time".Time "esc:0x0") @"time".date (@"time".full·6 bool) (@"time".year·1 int, @"time".month·2 @"time".Month, @"time".day·3 int, @"time".yday·4 int)
+ func (@"time".t·4 @"time".Time "esc:0x1") @"time".locabs () (@"time".name·1 string, @"time".offset·2 int, @"time".abs·3 uint64)
+ type @"net".Conn interface { Close() (? error); LocalAddr() (? @"net".Addr); Read(@"net".b []byte) (@"net".n int, @"net".err error); RemoteAddr() (? @"net".Addr); SetDeadline(@"net".t @"time".Time) (? error); SetReadDeadline(@"net".t @"time".Time) (? error); SetWriteDeadline(@"net".t @"time".Time) (? error); Write(@"net".b []byte) (@"net".n int, @"net".err error) }
+ type @""._Ctype_struct_pn_transport_t struct {}
+ type @""._Ctype_struct_pn_collector_t struct {}
+ type @"".bufferChan struct { @"".buffers chan []byte; @"".buf1 []byte; @"".buf2 []byte }
+ func (@"".b·2 *@"".bufferChan) @"".buffer () (? []byte) { @"".b·2.@"".buf1, @"".b·2.@"".buf2 = @"".b·2.@"".buf2, @"".b·2.@"".buf1; return @"".b·2.@"".buf1[:cap(@"".b·2.@"".buf1)] }
+ type @"sync".Once struct { @"sync".m @"sync".Mutex; @"sync".done uint32 }
+ func (@"sync".o·1 *@"sync".Once) Do (@"sync".f·2 func() "esc:0x0")
+ type @"".Pump struct { @"".err @"qpid.apache.org/proton/go/internal".FirstError; @"".inject chan func(); @"".conn @"net".Conn; @"".connection @"".Connection; @"".transport *@""._Ctype_struct_pn_transport_t; @"".collector *@""._Ctype_struct_pn_collector_t; @"".read *@"".bufferChan; @"".write *@"".bufferChan; @"".handlers []@"".EventHandler; @"".running chan struct {}; @"".closeOnce @"sync".Once }
+ func (@"".p·1 *@"".Pump) Close (@"".err·2 error)
+ func (@"".p·2 *@"".Pump "esc:0x1") Connection () (? @"".Connection) { return @"".p·2.@"".connection }
+ func (@"".p·2 *@"".Pump) Error () (? error)
+ func (@"".p·2 *@"".Pump) Id () (? string)
+ func (@"".p·2 *@"".Pump) Inject (@"".f·3 func()) (? error)
+ func (@"".p·2 *@"".Pump) InjectWait (@"".f·3 func()) (@"".err·1 error)
+ func (@"".p·1 *@"".Pump) Run ()
+ func (@"".p·1 *@"".Pump "esc:0x0") Server ()
+ func (@"".p·2 *@"".Pump) String () (? string)
+ func (@"".p·2 *@"".Pump "esc:0x0") @"".handle (@"".e·3 @"".Event) (? error)
+ func (@"".p·1 *@"".Pump "esc:0x0") @"".pop (@"".buf·2 *[]byte)
+ func (@"".p·2 *@"".Pump "esc:0x0") @"".process () (? error)
+ func (@"".p·1 *@"".Pump "esc:0x0") @"".push (@"".buf·2 []byte "esc:0x0")
+ type @""._Ctype_struct_pn_link_t struct {}
+ type @""._Ctype_struct_pn_delivery_t struct {}
+ type @"qpid.apache.org/proton/go/amqp".Message interface { Address() (? string); Annotations() (? *map[string]interface {}); Body() (? interface {}); ContentEncoding() (? string); ContentType() (? string); CorrelationId() (? interface {}); CreationTime() (? @"time".Time); DeliveryCount() (? uint32); Durable() (? bool); Encode(@"qpid.apache.org/proton/go/amqp".buffer []byte) (? []byte, ? error); ExpiryTime() (? @"time".Time); FirstAcquirer() (? bool); GroupId() (? string); GroupSequence() (? int32); Inferred() (? bool); Instructions() (? *map[string]interface {}); MessageId() (? interface {}); Priority() (? uint8); Properties() (? *map[string]interface {}); ReplyTo() (? string); ReplyToGroupId() (? string); SetAddress(? string); SetBody(? interface {}); SetContentEncoding(? string); SetContentType(? string); SetCorrelationId(? interface {}); SetCreationTime(? @"time".Time); SetDeliveryCount(? uint32); SetDurable(? bool); SetExpiryTime(? @"time".Time); SetFirstAcquirer(? bool); SetGr
oupId(? string); SetGroupSequence(? int32); SetInferred(? bool); SetMessageId(? interface {}); SetPriority(? uint8); SetReplyTo(? string); SetReplyToGroupId(? string); SetSubject(? string); SetTTL(? @"time".Duration); SetUserId(? string); Subject() (? string); TTL() (? @"time".Duration); UserId() (? string) }
+ type @""._Ctype_size_t uint64
+ type @""._Ctype_char int8
+ type @""._Ctype_struct___0 struct { @"".size @""._Ctype_size_t; @"".start *@""._Ctype_char }
+ type @"".DeliveryTag struct { @"".pn @""._Ctype_struct___0 }
+ func (@"".t·2 @"".DeliveryTag) String () (? string)
+ type @""._Ctype_struct_pn_disposition_t struct {}
+ type @""._Ctype_struct_pn_condition_t struct {}
+ type @""._Ctype_struct_pn_data_t struct {}
+ type @"".Data struct { @"".pn *@""._Ctype_struct_pn_data_t }
+ func (@"".d·1 @"".Data "esc:0x0") Clear ()
+ func (@"".d·2 @"".Data "esc:0x0") Error () (? error)
+ func (@"".d·1 @"".Data "esc:0x0") Free ()
+ func (@"".d·2 @"".Data "esc:0x2") Pointer () (? @"unsafe".Pointer) { return @"unsafe".Pointer(@"".d·2.@"".pn) }
+ func (@"".d·1 @"".Data "esc:0x0") Rewind ()
+ type @"".Condition struct { @"".pn *@""._Ctype_struct_pn_condition_t }
+ func (@"".c·1 @"".Condition "esc:0x0") Clear ()
+ func (@"".c·2 @"".Condition "esc:0x0") Description () (? string)
+ func (@"".c·2 @"".Condition "esc:0x0") Error () (? error)
+ func (@"".c·2 @"".Condition "esc:0x0") Info () (? @"".Data)
+ func (@"".c·2 @"".Condition "esc:0x0") IsNil () (? bool) { return @"".c·2.@"".pn == nil }
+ func (@"".c·2 @"".Condition "esc:0x0") IsRedirect () (? bool)
+ func (@"".c·2 @"".Condition "esc:0x0") IsSet () (? bool)
+ func (@"".c·2 @"".Condition "esc:0x0") Name () (? string)
+ func (@"".c·2 @"".Condition "esc:0x0") RedirectHost () (? string)
+ func (@"".c·2 @"".Condition "esc:0x0") RedirectPort () (? int)
+ func (@"".c·2 @"".Condition "esc:0x0") SetDescription (@"".description·3 string "esc:0x0") (? int)
+ func (@"".c·1 @"".Condition "esc:0x0") SetError (@"".err·2 error)
+ func (@"".c·2 @"".Condition "esc:0x0") SetName (@"".name·3 string "esc:0x0") (? int)
+ type @"".Disposition struct { @"".pn *@""._Ctype_struct_pn_disposition_t }
+ func (@"".d·2 @"".Disposition "esc:0x0") Annotations () (? @"".Data)
+ func (@"".d·2 @"".Disposition "esc:0x0") Condition () (? @"".Condition)
+ func (@"".d·2 @"".Disposition "esc:0x0") Data () (? @"".Data)
+ func (@"".d·2 @"".Disposition "esc:0x0") IsFailed () (? bool)
+ func (@"".d·2 @"".Disposition "esc:0x0") IsNil () (? bool) { return @"".d·2.@"".pn == nil }
+ func (@"".d·2 @"".Disposition "esc:0x0") IsUndeliverable () (? bool)
+ func (@"".d·2 @"".Disposition "esc:0x0") SectionNumber () (? uint16)
+ func (@"".d·2 @"".Disposition "esc:0x0") SectionOffset () (? uint64)
+ func (@"".d·1 @"".Disposition "esc:0x0") SetFailed (@"".failed·2 bool)
+ func (@"".d·1 @"".Disposition "esc:0x0") SetSectionNumber (@"".section_number·2 uint16)
+ func (@"".d·1 @"".Disposition "esc:0x0") SetSectionOffset (@"".section_offset·2 uint64)
+ func (@"".d·1 @"".Disposition "esc:0x0") SetUndeliverable (@"".undeliverable·2 bool)
+ func (@"".d·2 @"".Disposition "esc:0x0") Type () (? uint64)
+ type @"".Delivery struct { @"".pn *@""._Ctype_struct_pn_delivery_t }
+ func (@"".d·1 @"".Delivery "esc:0x0") Accept ()
+ func (@"".d·2 @"".Delivery "esc:0x0") Buffered () (? bool)
+ func (@"".d·1 @"".Delivery "esc:0x0") Clear ()
+ func (@"".d·2 @"".Delivery "esc:0x0") Current () (? bool)
+ func (@"".d·1 @"".Delivery "esc:0x0") Dump ()
+ func (@"".d·2 @"".Delivery "esc:0x0") HasMessage () (? bool)
+ func (@"".d·2 @"".Delivery "esc:0x0") IsNil () (? bool) { return @"".d·2.@"".pn == nil }
+ func (@"".d·2 @"".Delivery "esc:0x0") Link () (? @"".Link)
+ func (@"".d·2 @"".Delivery "esc:0x0") Local () (? @"".Disposition)
+ func (@"".d·2 @"".Delivery "esc:0x0") LocalState () (? uint64)
+ func (@"".delivery·3 @"".Delivery "esc:0x0") Message () (@"".m·1 @"qpid.apache.org/proton/go/amqp".Message, @"".err·2 error)
+ func (@"".d·2 @"".Delivery "esc:0x0") Partial () (? bool)
+ func (@"".d·2 @"".Delivery "esc:0x0") Pending () (? uint)
+ func (@"".d·2 @"".Delivery "esc:0x0") Readable () (? bool)
+ func (@"".d·1 @"".Delivery "esc:0x0") Reject ()
+ func (@"".d·1 @"".Delivery "esc:0x0") Release (@"".delivered·2 bool)
+ func (@"".d·2 @"".Delivery "esc:0x0") Remote () (? @"".Disposition)
+ func (@"".d·2 @"".Delivery "esc:0x0") RemoteState () (? uint64)
+ func (@"".d·1 @"".Delivery "esc:0x0") Settle ()
+ func (@"".d·1 @"".Delivery "esc:0x0") SettleAs (@"".disposition·2 uint64)
+ func (@"".d·2 @"".Delivery "esc:0x0") Settled () (? bool)
+ func (@"".d·2 @"".Delivery "esc:0x0") Tag () (? @"".DeliveryTag)
+ func (@"".d·1 @"".Delivery "esc:0x0") Update (@"".state·2 uint64)
+ func (@"".d·2 @"".Delivery "esc:0x0") Updated () (? bool)
+ func (@"".d·2 @"".Delivery "esc:0x0") Writable () (? bool)
+ type @"".State uint8
+ func (@"".s·2 @"".State) Is (@"".bits·3 @"".State) (? bool) { return @"".s·2 & @"".bits·3 != @"".State(0x0) }
+ func (@"".s·2 @"".State) Local () (? @"".State) { return @"".State(@"".s·2 & @"".State(0x7)) }
+ func (@"".s·2 @"".State) Remote () (? @"".State) { return @"".State(@"".s·2 & @"".State(0x38)) }
+ type @""._Ctype_struct_pn_session_t struct {}
+ type @"".Session struct { @"".pn *@""._Ctype_struct_pn_session_t }
+ func (@"".s·1 @"".Session "esc:0x0") Close ()
+ func (@"".s·2 @"".Session "esc:0x0") Condition () (? @"".Condition)
+ func (@"".s·2 @"".Session "esc:0x0") Connection () (? @"".Connection)
+ func (@"".s·2 @"".Session "esc:0x0") Error () (? error)
+ func (@"".s·1 @"".Session "esc:0x0") Free ()
+ func (@"".s·2 @"".Session "esc:0x0") IncomingBytes () (? uint)
+ func (@"".s·2 @"".Session "esc:0x0") IncomingCapacity () (? uint)
+ func (@"".s·2 @"".Session "esc:0x0") IsNil () (? bool) { return @"".s·2.@"".pn == nil }
+ func (@"".s·2 @"".Session "esc:0x0") Next (@"".state·3 @"".State) (? @"".Session)
+ func (@"".s·1 @"".Session "esc:0x0") Open ()
+ func (@"".s·2 @"".Session "esc:0x0") OutgoingBytes () (? uint)
+ func (@"".s·2 @"".Session "esc:0x0") OutgoingWindow () (? uint)
+ func (@"".s·2 @"".Session "esc:0x0") Receiver (@"".name·3 string "esc:0x0") (? @"".Link)
+ func (@"".s·2 @"".Session "esc:0x0") RemoteCondition () (? @"".Condition)
+ func (@"".s·2 @"".Session "esc:0x0") Sender (@"".name·3 string "esc:0x0") (? @"".Link)
+ func (@"".s·1 @"".Session "esc:0x0") SetIncomingCapacity (@"".capacity·2 uint)
+ func (@"".s·1 @"".Session "esc:0x0") SetOutgoingWindow (@"".window·2 uint)
+ func (@"".s·2 @"".Session "esc:0x0") State () (? @"".State)
+ func (@"".s·2 @"".Session) String () (? string)
+ type @""._Ctype_struct_pn_terminus_t struct {}
+ type @"".TerminusType uint32
+ func (@"".e·2 @"".TerminusType) String () (? string)
+ type @"".DistributionMode uint32
+ func (@"".e·2 @"".DistributionMode) String () (? string)
+ type @"".Durability uint32
+ func (@"".e·2 @"".Durability) String () (? string)
+ type @"".ExpiryPolicy uint32
+ func (@"".e·2 @"".ExpiryPolicy) String () (? string)
+ type @"".Terminus struct { @"".pn *@""._Ctype_struct_pn_terminus_t }
+ func (@"".t·2 @"".Terminus "esc:0x0") Address () (? string)
+ func (@"".t·2 @"".Terminus "esc:0x0") Capabilities () (? @"".Data)
+ func (@"".t·2 @"".Terminus "esc:0x0") Copy (@"".src·3 @"".Terminus "esc:0x0") (? int)
+ func (@"".t·2 @"".Terminus "esc:0x0") Durability () (? @"".Durability)
+ func (@"".t·2 @"".Terminus "esc:0x0") ExpiryPolicy () (? @"".ExpiryPolicy)
+ func (@"".t·2 @"".Terminus "esc:0x0") Filter () (? @"".Data)
+ func (@"".t·2 @"".Terminus "esc:0x0") IsDynamic () (? bool)
+ func (@"".t·2 @"".Terminus "esc:0x0") IsNil () (? bool) { return @"".t·2.@"".pn == nil }
+ func (@"".t·2 @"".Terminus "esc:0x0") Outcomes () (? @"".Data)
+ func (@"".t·2 @"".Terminus "esc:0x0") Properties () (? @"".Data)
+ func (@"".t·2 @"".Terminus "esc:0x0") SetAddress (@"".address·3 string "esc:0x0") (? int)
+ func (@"".t·2 @"".Terminus "esc:0x0") SetDistributionMode (@"".mode·3 @"".DistributionMode) (? int)
+ func (@"".t·2 @"".Terminus "esc:0x0") SetDurability (@"".durability·3 @"".Durability) (? int)
+ func (@"".t·2 @"".Terminus "esc:0x0") SetDynamic (@"".dynamic·3 bool) (? int)
+ func (@"".t·2 @"".Terminus "esc:0x0") SetExpiryPolicy (@"".policy·3 @"".ExpiryPolicy) (? int)
+ func (@"".t·2 @"".Terminus "esc:0x0") SetTimeout (@"".timeout·3 @"time".Duration) (? int)
+ func (@"".t·2 @"".Terminus "esc:0x0") SetType (@"".type_·3 @"".TerminusType) (? int)
+ func (@"".t·2 @"".Terminus "esc:0x0") Timeout () (? @"time".Duration)
+ func (@"".t·2 @"".Terminus "esc:0x0") Type () (? @"".TerminusType)
+ type @"".SndSettleMode uint32
+ func (@"".e·2 @"".SndSettleMode) String () (? string)
+ type @"".RcvSettleMode uint32
+ func (@"".e·2 @"".RcvSettleMode) String () (? string)
+ type @"".Link struct { @"".pn *@""._Ctype_struct_pn_link_t }
+ func (@"".l·2 @"".Link "esc:0x0") Advance () (? bool)
+ func (@"".l·2 @"".Link "esc:0x0") Available () (? int)
+ func (@"".l·1 @"".Link "esc:0x0") Close ()
+ func (@"".l·2 @"".Link "esc:0x0") Condition () (? @"".Condition)
+ func (@"".l·2 @"".Link "esc:0x0") Credit () (? int)
+ func (@"".l·2 @"".Link "esc:0x0") Current () (? @"".Delivery)
+ func (@"".l·2 @"".Link "esc:0x0") Delivery (@"".tag·3 string "esc:0x0") (? @"".Delivery)
+ func (@"".l·1 @"".Link "esc:0x0") Detach ()
+ func (@"".l·1 @"".Link "esc:0x0") Drain (@"".credit·2 int)
+ func (@"".l·2 @"".Link "esc:0x0") Drained () (? int)
+ func (@"".l·2 @"".Link "esc:0x0") Draining () (? bool)
+ func (@"".l·2 @"".Link "esc:0x0") Error () (? error)
+ func (@"".l·1 @"".Link "esc:0x0") Flow (@"".credit·2 int)
+ func (@"".l·1 @"".Link "esc:0x0") Free ()
+ func (@"".l·2 @"".Link "esc:0x0") IsDrain () (? bool)
+ func (@"".l·2 @"".Link "esc:0x0") IsNil () (? bool) { return @"".l·2.@"".pn == nil }
+ func (@"".l·2 @"".Link "esc:0x0") IsReceiver () (? bool)
+ func (@"".l·2 @"".Link "esc:0x0") IsSender () (? bool)
+ func (@"".l·2 @"".Link "esc:0x0") Name () (? string)
+ func (@"".l·2 @"".Link "esc:0x0") Next (@"".state·3 @"".State) (? @"".Link)
+ func (@"".l·1 @"".Link "esc:0x0") Offered (@"".credit·2 int)
+ func (@"".l·1 @"".Link "esc:0x0") Open ()
+ func (@"".l·2 @"".Link "esc:0x0") Queued () (? int)
+ func (@"".l·2 @"".Link "esc:0x0") RcvSettleMode () (? @"".RcvSettleMode)
+ func (@"".l·2 @"".Link "esc:0x0") Recv (@"".buf·3 []byte "esc:0x0") (? int)
+ func (@"".l·2 @"".Link "esc:0x0") RemoteCondition () (? @"".Condition)
+ func (@"".l·2 @"".Link "esc:0x0") RemoteCredit () (? int)
+ func (@"".l·2 @"".Link "esc:0x0") RemoteRcvSettleMode () (? @"".RcvSettleMode)
+ func (@"".l·2 @"".Link "esc:0x0") RemoteSndSettleMode () (? @"".SndSettleMode)
+ func (@"".l·2 @"".Link "esc:0x0") RemoteSource () (? @"".Terminus)
+ func (@"".l·2 @"".Link "esc:0x0") RemoteTarget () (? @"".Terminus)
+ func (@"".link·3 @"".Link "esc:0x0") Send (@"".m·4 @"qpid.apache.org/proton/go/amqp".Message) (? @"".Delivery, ? error)
+ func (@"".l·2 @"".Link "esc:0x0") SendBytes (@"".bytes·3 []byte "esc:0x0") (? int)
+ func (@"".l·2 @"".Link "esc:0x0") Session () (? @"".Session)
+ func (@"".l·1 @"".Link "esc:0x0") SetDrain (@"".drain·2 bool)
+ func (@"".l·1 @"".Link "esc:0x0") SetRcvSettleMode (@"".mode·2 @"".RcvSettleMode)
+ func (@"".l·1 @"".Link "esc:0x0") SetSndSettleMode (@"".mode·2 @"".SndSettleMode)
+ func (@"".l·2 @"".Link "esc:0x0") SndSettleMode () (? @"".SndSettleMode)
+ func (@"".l·2 @"".Link "esc:0x0") Source () (? @"".Terminus)
+ func (@"".l·2 @"".Link "esc:0x0") State () (? @"".State)
+ func (@"".l·2 @"".Link "esc:0x0") String () (? string)
+ func (@"".l·2 @"".Link "esc:0x0") Target () (? @"".Terminus)
+ func (@"".l·2 @"".Link "esc:0x0") Unsettled () (? int)
+ type @"".Connection struct { @"".pn *@""._Ctype_struct_pn_connection_t }
+ func (@"".c·1 @"".Connection "esc:0x0") Close ()
+ func (@"".c·2 @"".Connection "esc:0x0") Condition () (? @"".Condition)
+ func (@"".c·2 @"".Connection "esc:0x0") Container () (? string)
+ func (@"".c·2 @"".Connection "esc:0x0") DesiredCapabilities () (? @"".Data)
+ func (@"".c·2 @"".Connection "esc:0x0") Error () (? error)
+ func (@"".c·1 @"".Connection "esc:0x0") Free ()
+ func (@"".c·2 @"".Connection "esc:0x0") Hostname () (? string)
+ func (@"".c·2 @"".Connection "esc:0x0") IsNil () (? bool) { return @"".c·2.@"".pn == nil }
+ func (@"".c·2 @"".Connection "esc:0x0") LinkHead (@"".s·3 @"".State) (? @"".Link)
+ func (@"".c·2 @"".Connection "esc:0x0") Links (@"".state·3 @"".State) (@"".links·1 []@"".Link)
+ func (@"".c·2 @"".Connection "esc:0x0") OfferedCapabilities () (? @"".Data)
+ func (@"".c·1 @"".Connection "esc:0x0") Open ()
+ func (@"".c·2 @"".Connection "esc:0x0") Properties () (? @"".Data)
+ func (@"".c·2 @"".Connection "esc:0x0") Pump () (? *@"".Pump)
+ func (@"".c·1 @"".Connection "esc:0x0") Release ()
+ func (@"".c·2 @"".Connection "esc:0x0") RemoteCondition () (? @"".Condition)
+ func (@"".c·2 @"".Connection "esc:0x0") RemoteContainer () (? string)
+ func (@"".c·2 @"".Connection "esc:0x0") RemoteDesiredCapabilities () (? @"".Data)
+ func (@"".c·2 @"".Connection "esc:0x0") RemoteHostname () (? string)
+ func (@"".c·2 @"".Connection "esc:0x0") RemoteOfferedCapabilities () (? @"".Data)
+ func (@"".c·2 @"".Connection "esc:0x0") RemoteProperties () (? @"".Data)
+ func (@"".c·1 @"".Connection "esc:0x0") Reset ()
+ func (@"".c·3 @"".Connection "esc:0x0") Session () (? @"".Session, ? error)
+ func (@"".c·2 @"".Connection "esc:0x0") SessionHead (@"".s·3 @"".State) (? @"".Session)
+ func (@"".c·2 @"".Connection "esc:0x0") Sessions (@"".state·3 @"".State) (@"".sessions·1 []@"".Session)
+ func (@"".c·1 @"".Connection "esc:0x0") SetContainer (@"".container·2 string "esc:0x0")
+ func (@"".c·1 @"".Connection "esc:0x0") SetHostname (@"".hostname·2 string "esc:0x0")
+ func (@"".c·1 @"".Connection "esc:0x0") SetPassword (@"".password·2 string "esc:0x0")
+ func (@"".c·1 @"".Connection "esc:0x0") SetUser (@"".user·2 string "esc:0x0")
+ func (@"".c·2 @"".Connection "esc:0x0") State () (? @"".State)
+ func (@"".c·2 @"".Connection "esc:0x0") String () (? string)
+ func (@"".c·2 @"".Connection "esc:0x0") User () (? string)
+ type @"".Event struct { @"".pn *@""._Ctype_struct_pn_event_t; @"".eventType @"".EventType; @"".connection @"".Connection; @"".session @"".Session; @"".link @"".Link; @"".delivery @"".Delivery }
+ func (@"".e·2 @"".Event "esc:0x2") Connection () (? @"".Connection) { return @"".e·2.@"".connection }
+ func (@"".e·2 @"".Event "esc:0x2") Delivery () (? @"".Delivery) { return @"".e·2.@"".delivery }
+ func (@"".e·2 @"".Event "esc:0x0") IsNil () (? bool) { return @"".e·2.@"".eventType == @"".EventType(0x0) }
+ func (@"".e·2 @"".Event "esc:0x2") Link () (? @"".Link) { return @"".e·2.@"".link }
+ func (@"".e·2 @"".Event "esc:0x2") Session () (? @"".Session) { return @"".e·2.@"".session }
+ func (@"".e·2 @"".Event "esc:0x0") String () (? string)
+ func (@"".e·2 @"".Event "esc:0x0") Type () (? @"".EventType) { return @"".e·2.@"".eventType }
+ type @"".EventHandler interface { HandleEvent(@"".e @"".Event) (? error) }
+ type @"".MessagingEventType int
+ func (@"".t·2 @"".MessagingEventType) String () (? string)
+ type @"".MessagingHandler interface { HandleMessagingEvent(? @"".MessagingEventType, ? @"".Event) (? error) }
+ const @"".MStart @"".MessagingEventType = 0x0
+ const @"".MConnectionError @"".MessagingEventType = 0x1
+ const @"".MSessionError @"".MessagingEventType = 0x2
+ const @"".MLinkError @"".MessagingEventType = 0x3
+ const @"".MConnectionOpening @"".MessagingEventType = 0x4
+ const @"".MSessionOpening @"".MessagingEventType = 0x5
+ const @"".MLinkOpening @"".MessagingEventType = 0x6
+ const @"".MConnectionOpened @"".MessagingEventType = 0x7
+ const @"".MSessionOpened @"".MessagingEventType = 0x8
+ const @"".MLinkOpened @"".MessagingEventType = 0x9
+ const @"".MConnectionClosing @"".MessagingEventType = 0xA
+ const @"".MSessionClosing @"".MessagingEventType = 0xB
+ const @"".MLinkClosing @"".MessagingEventType = 0xC
+ const @"".MConnectionClosed @"".MessagingEventType = 0xD
+ const @"".MSessionClosed @"".MessagingEventType = 0xE
+ const @"".MLinkClosed @"".MessagingEventType = 0xF
+ const @"".MConnectionDisconnected @"".MessagingEventType = 0x10
+ const @"".MSessionDisconnected @"".MessagingEventType = 0x11
+ const @"".MLinkDisconnected @"".MessagingEventType = 0x12
+ const @"".MSendable @"".MessagingEventType = 0x13
+ const @"".MAccepted @"".MessagingEventType = 0x14
+ const @"".MRejected @"".MessagingEventType = 0x15
+ const @"".MReleased @"".MessagingEventType = 0x16
+ const @"".MSettled @"".MessagingEventType = 0x17
+ const @"".MMessage @"".MessagingEventType = 0x18
+ const @"".MFinal @"".MessagingEventType = 0x19
+ type @"".Endpoint interface { Close(); Condition() (? @"".Condition); Open(); RemoteCondition() (? @"".Condition); State() (? @"".State); String() (? string) }
+ type @"".endpointDelegator struct { @"".remoteOpen @"".EventType; @"".remoteClose @"".EventType; @"".localOpen @"".EventType; @"".localClose @"".EventType; @"".opening @"".MessagingEventType; @"".opened @"".MessagingEventType; @"".closing @"".MessagingEventType; @"".closed @"".MessagingEventType; @"".error @"".MessagingEventType; @"".endpoint func(? @"".Event) (? @"".Endpoint); @"".delegate @"".MessagingHandler }
+ func (@"".d·2 @"".endpointDelegator) HandleEvent (@"".e·3 @"".Event) (@"".err·1 error)
+ type @"".MessagingDelegator struct { @"".delegate @"".MessagingHandler; @"".connection @"".endpointDelegator; @"".session @"".endpointDelegator; @"".link @"".endpointDelegator; @"".handshaker @"".EventHandler; @"".flowcontroller @"".EventHandler; AutoSettle bool; AutoAccept bool; Prefetch int; PeerCloseError bool }
+ func (@"".d·2 *@"".MessagingDelegator) HandleEvent (@"".e·3 @"".Event) (? error)
+ func (@"".d·2 *@"".MessagingDelegator) @"".incoming (@"".e·3 @"".Event) (@"".err·1 error)
+ func (@"".d·2 *@"".MessagingDelegator) @"".outgoing (@"".e·3 @"".Event) (@"".err·1 error)
+ func @"".NewMessagingDelegator (@"".h·2 @"".MessagingHandler) (? *@"".MessagingDelegator)
+ func @"".NewPump (@"".conn·3 @"net".Conn, @"".handlers·4 ...@"".EventHandler) (? *@"".Pump, ? error)
+ func @"".NewData (@"".p·2 @"unsafe".Pointer "esc:0x2") (? @"".Data) { return (@"".Data{ @"".pn:(*@""._Ctype_struct_pn_data_t)(@"".p·2) }) }
+ const @"".SLocalUninit @"".State = 0x1
+ const @"".SLocalActive = 0x2
+ const @"".SLocalClosed = 0x4
+ const @"".SRemoteUninit = 0x8
+ const @"".SRemoteActive = 0x10
+ const @"".SRemoteClosed = 0x20
+ func @"".CloseError (@"".e·1 @"".Endpoint, @"".err·2 error)
+ const @"".Received uint64 = 0x23
+ const @"".Accepted = 0x24
+ const @"".Rejected = 0x25
+ const @"".Released = 0x26
+ const @"".Modified = 0x27
+ const @"".EConnectionInit @"".EventType = 0x5
+ const @"".EConnectionBound @"".EventType = 0x6
+ const @"".EConnectionUnbound @"".EventType = 0x7
+ const @"".EConnectionLocalOpen @"".EventType = 0x8
+ const @"".EConnectionRemoteOpen @"".EventType = 0x9
+ const @"".EConnectionLocalClose @"".EventType = 0xA
+ const @"".EConnectionRemoteClose @"".EventType = 0xB
+ const @"".EConnectionFinal @"".EventType = 0xC
+ const @"".ESessionInit @"".EventType = 0xD
+ const @"".ESessionLocalOpen @"".EventType = 0xE
+ const @"".ESessionRemoteOpen @"".EventType = 0xF
+ const @"".ESessionLocalClose @"".EventType = 0x10
+ const @"".ESessionRemoteClose @"".EventType = 0x11
+ const @"".ESessionFinal @"".EventType = 0x12
+ const @"".ELinkInit @"".EventType = 0x13
+ const @"".ELinkLocalOpen @"".EventType = 0x14
+ const @"".ELinkRemoteOpen @"".EventType = 0x15
+ const @"".ELinkLocalClose @"".EventType = 0x16
+ const @"".ELinkRemoteClose @"".EventType = 0x17
+ const @"".ELinkLocalDetach @"".EventType = 0x18
+ const @"".ELinkRemoteDetach @"".EventType = 0x19
+ const @"".ELinkFlow @"".EventType = 0x1A
+ const @"".ELinkFinal @"".EventType = 0x1B
+ const @"".EDelivery @"".EventType = 0x1C
+ const @"".ETransport @"".EventType = 0x1D
+ const @"".ETransportAuthenticated @"".EventType = 0x1E
+ const @"".ETransportError @"".EventType = 0x1F
+ const @"".ETransportHeadClosed @"".EventType = 0x20
+ const @"".ETransportTailClosed @"".EventType = 0x21
+ const @"".ETransportClosed @"".EventType = 0x22
+ const @"".PnSndUnsettled @"".SndSettleMode = 0x0
+ const @"".PnSndSettled @"".SndSettleMode = 0x1
+ const @"".PnSndMixed @"".SndSettleMode = 0x2
+ const @"".PnRcvFirst @"".RcvSettleMode = 0x0
+ const @"".PnRcvSecond @"".RcvSettleMode = 0x1
+ const @"".PnUnspecified @"".TerminusType = 0x0
+ const @"".PnSource @"".TerminusType = 0x1
+ const @"".PnTarget @"".TerminusType = 0x2
+ const @"".PnCoordinator @"".TerminusType = 0x3
+ const @"".PnNondurable @"".Durability = 0x0
+ const @"".PnConfiguration @"".Durability = 0x1
+ const @"".PnDeliveries @"".Durability = 0x2
+ const @"".PnExpireWithLink @"".ExpiryPolicy = 0x0
+ const @"".PnExpireWithSession @"".ExpiryPolicy = 0x1
+ const @"".PnExpireWithConnection @"".ExpiryPolicy = 0x2
+ const @"".PnExpireNever @"".ExpiryPolicy = 0x3
+ const @"".PnDistModeUnspecified @"".DistributionMode = 0x0
+ const @"".PnDistModeCopy @"".DistributionMode = 0x1
+ const @"".PnDistModeMove @"".DistributionMode = 0x2
+ func @"".init ()
+ var @"time".months [12]string
+ var @"time".days [7]string
+ var @"time".Local *@"time".Location
+ var @"time".UTC *@"time".Location
+ const @""._Cconst_PN_LOCAL_MASK = 0x7
+ const @""._Cconst_PN_REMOTE_MASK = 0x38
+
+$$
+_go_.6 0 0 0 644 981748 `
+go object linux amd64 go1.4.2 X:precisestack
+
+!
+ go13ldruntime/cgo.asyscall.aHqpid.apache.org/proton/go/internal.a@qpid.apache.org/proton/go/amqp.a
+fmt.aio.a
+net.aos.apath.async.areflect.atime.a �""._Cgo_ptr H�\$H�\$� "".~r1 &type.unsafe.Pointer "".ptr &type.unsafe.Pointer Tgclocals·06cab038d51064a089bda21fa03e00f7 Tgclocals·3280bececceccd33cb74587feedb1f9f hqpid.apache.org/proton/go/event/_obj/_cgo_gotypes.go�"""._Cfunc_CString � �dH�% H;aw� ��H��PH�\$`H��H�$H� H���H�t$H�t$ H�t$H�� �� H�� @H�� @H�L$HH�T$XH�L$`H�D$@H�L$0H9�}H��H�t$8H�4$H�T$(H�T$H�D$� H�D$`H�\$H�� t%H= @sH�� H�\$ H�\$hH��P�� ���t���
+ 0runtime.morestack_noctxt R .""._cgo_runtime_cmalloc `
+ � runtime.memmove � $runtime.panicindex 0� "".autotmp_0015 type.uintptr "".autotmp_0014 type.int "".autotmp_0013 Otype.string "".autotmp_0012 /type.[]uint8 "".autotmp_0011 type.int
+"".pp o.type.*[1073741824]uint8 "".p _&type.unsafe.Pointer "".~r1 (type.*""._Ctype_char "".s type.string ���� � $�[ 0b3 Tgclocals·d7e8a62d22b1cde6d92b17a55c33fe8f Tgclocals·283619d6755c7337ece602447ba790ff �/home/aconway/proton/proton-c/bindings/go/src/qpid.apache.org/proton/go/event/�$""._Cfunc_GoString � �dH�% H;aw� ��H��H�D$( H�D$0 H�\$ H�$H� H���H�L$H�D$H�L$(H�D$0H���
+ 0runtime.morestack_noctxt p 0""._cgo_runtime_gostring ~
+ 00 "".~r1 type.string "".p (type.*""._Ctype_char 0?/ ` �,4
+ ?! Tgclocals·a08e9001cb8f9d822225de3b8e406515 Tgclocals·3280bececceccd33cb74587feedb1f9f �/home/aconway/proton/proton-c/bindings/go/src/qpid.apache.org/proton/go/event/�&""._Cfunc_GoStringN � �dH�% H;aw� ��H�� H�D$8 H�D$@ H�\$(H�$Hc\$0H�\$H� H���H�L$H�D$H�L$8H�D$@H�� �
+ 0runtime.morestack_noctxt � 2""._cgo_runtime_gostringn �
+ @@ "".~r2 type.string "".l $type.""._Ctype_int "".p (type.*""._Ctype_char @I?
p �,D
+ I'