zhangmeng
2023-05-16 ecb63331999a88c4980997aa8473ffed0dd31a3c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/* Code generated by cmd/cgo; DO NOT EDIT. */
 
/* package nsqCli */
 
 
#line 1 "cgo-builtin-export-prolog"
 
#include <stddef.h> /* for ptrdiff_t below */
 
#ifndef GO_CGO_EXPORT_PROLOGUE_H
#define GO_CGO_EXPORT_PROLOGUE_H
 
#ifndef GO_CGO_GOSTRING_TYPEDEF
typedef struct { const char *p; ptrdiff_t n; } _GoString_;
#endif
 
#endif
 
/* Start of preamble from import "C" comments.  */
 
 
#line 3 "main.go"
 #include <stdlib.h>
 #include <string.h>
 
#line 1 "cgo-generated-wrapper"
 
 
/* End of preamble from import "C" comments.  */
 
 
/* Start of boilerplate cgo prologue.  */
#line 1 "cgo-gcc-export-header-prolog"
 
#ifndef GO_CGO_PROLOGUE_H
#define GO_CGO_PROLOGUE_H
 
typedef signed char GoInt8;
typedef unsigned char GoUint8;
typedef short GoInt16;
typedef unsigned short GoUint16;
typedef int GoInt32;
typedef unsigned int GoUint32;
typedef long long GoInt64;
typedef unsigned long long GoUint64;
typedef GoInt64 GoInt;
typedef GoUint64 GoUint;
typedef __SIZE_TYPE__ GoUintptr;
typedef float GoFloat32;
typedef double GoFloat64;
typedef float _Complex GoComplex64;
typedef double _Complex GoComplex128;
 
/*
  static assertion to make sure the file is being used on architecture
  at least with matching size of GoInt.
*/
typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
 
#ifndef GO_CGO_GOSTRING_TYPEDEF
typedef _GoString_ GoString;
#endif
typedef void *GoMap;
typedef void *GoChan;
typedef struct { void *t; void *v; } GoInterface;
typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
 
#endif
 
/* End of boilerplate cgo prologue.  */
 
#ifdef __cplusplus
extern "C" {
#endif
 
 
extern void* createProducer(GoString p0);
 
extern void destroyProducer(void* p0);
 
extern GoUint8 publish(void* p0, GoString p1, GoSlice p2);
 
extern GoUint8 multiPublish(void* p0, GoString p1, GoSlice p2);
 
extern GoUint8 deferredPublish(void* p0, GoString p1, GoInt p2, GoSlice p3);
 
extern void* createConsumer(GoString p0, GoString p1);
 
extern void destroyConsumer(void* p0);
 
extern void Run(void* p0, GoString p1);
 
extern void RunLookupd(void* p0, GoString p1);
 
extern GoUint8 getMessage(void* p0, void** p1, size_t* p2);
 
extern void relMessage(void* p0);
 
#ifdef __cplusplus
}
#endif