@girs/arrowflight-23.0 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -0
- package/arrowflight-23.0-ambient.d.ts +12 -0
- package/arrowflight-23.0-ambient.js +2 -0
- package/arrowflight-23.0-import.d.ts +12 -0
- package/arrowflight-23.0-import.js +3 -0
- package/arrowflight-23.0.d.ts +2304 -0
- package/arrowflight-23.0.js +5 -0
- package/index.d.ts +16 -0
- package/index.js +5 -0
- package/package.json +57 -0
- package/tsconfig.json +44 -0
- package/typedoc.json +9 -0
|
@@ -0,0 +1,2304 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Type Definitions for Gjs (https://gjs.guide/)
|
|
4
|
+
*
|
|
5
|
+
* These type definitions are automatically generated, do not edit them by hand.
|
|
6
|
+
* If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gir
|
|
7
|
+
*
|
|
8
|
+
* The based EJS template file is used for the generated .d.ts file of each GIR module like Gtk-4.0, GObject-2.0, ...
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import '@girs/gjs';
|
|
12
|
+
|
|
13
|
+
// Module dependencies
|
|
14
|
+
import type Arrow from '@girs/arrow-23.0';
|
|
15
|
+
import type Gio from '@girs/gio-2.0';
|
|
16
|
+
import type GObject from '@girs/gobject-2.0';
|
|
17
|
+
import type GLib from '@girs/glib-2.0';
|
|
18
|
+
import type GModule from '@girs/gmodule-2.0';
|
|
19
|
+
|
|
20
|
+
export namespace ArrowFlight {
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* ArrowFlight-23.0
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* The major version.
|
|
29
|
+
* @since 17.0.0
|
|
30
|
+
*/
|
|
31
|
+
const VERSION_MAJOR: number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The micro version.
|
|
35
|
+
* @since 17.0.0
|
|
36
|
+
*/
|
|
37
|
+
const VERSION_MICRO: number;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The minor version.
|
|
41
|
+
* @since 17.0.0
|
|
42
|
+
*/
|
|
43
|
+
const VERSION_MINOR: number;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The version tag. Normally, it's an empty string. It's "SNAPSHOT"
|
|
47
|
+
* for snapshot version.
|
|
48
|
+
* @since 17.0.0
|
|
49
|
+
*/
|
|
50
|
+
const VERSION_TAG: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @gir-type Callback
|
|
54
|
+
*/
|
|
55
|
+
interface HeaderFunc {
|
|
56
|
+
(name: string, value: string): void;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
namespace CallOptions {
|
|
60
|
+
// Signal signatures
|
|
61
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
62
|
+
"notify::timeout": (pspec: GObject.ParamSpec) => void;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Constructor properties interface
|
|
66
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
67
|
+
timeout: number;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @gir-type Class
|
|
73
|
+
*/
|
|
74
|
+
class CallOptions extends GObject.Object {
|
|
75
|
+
static $gtype: GObject.GType<CallOptions>;
|
|
76
|
+
|
|
77
|
+
// Properties
|
|
78
|
+
/**
|
|
79
|
+
* An optional timeout for this call. Negative durations mean an
|
|
80
|
+
* implementation-defined default behavior will be used
|
|
81
|
+
* instead. This is the default value.
|
|
82
|
+
* @since 18.0.0
|
|
83
|
+
* @default -1
|
|
84
|
+
*/
|
|
85
|
+
get timeout(): number;
|
|
86
|
+
set timeout(val: number);
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Compile-time signal type information.
|
|
90
|
+
*
|
|
91
|
+
* This instance property is generated only for TypeScript type checking.
|
|
92
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
$signals: CallOptions.SignalSignatures;
|
|
96
|
+
|
|
97
|
+
// Constructors
|
|
98
|
+
constructor(properties?: Partial<CallOptions.ConstructorProps>, ...args: any[]);
|
|
99
|
+
|
|
100
|
+
_init(...args: any[]): void;
|
|
101
|
+
|
|
102
|
+
static ["new"](): CallOptions;
|
|
103
|
+
|
|
104
|
+
// Signals
|
|
105
|
+
/** @signal */
|
|
106
|
+
connect<K extends keyof CallOptions.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, CallOptions.SignalSignatures[K]>): number;
|
|
107
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
108
|
+
|
|
109
|
+
/** @signal */
|
|
110
|
+
connect_after<K extends keyof CallOptions.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, CallOptions.SignalSignatures[K]>): number;
|
|
111
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
112
|
+
|
|
113
|
+
/** @signal */
|
|
114
|
+
emit<K extends keyof CallOptions.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<CallOptions.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
115
|
+
emit(signal: string, ...args: any[]): void;
|
|
116
|
+
|
|
117
|
+
// Methods
|
|
118
|
+
/**
|
|
119
|
+
* Add a header.
|
|
120
|
+
* @param name A header name.
|
|
121
|
+
* @param value A header value.
|
|
122
|
+
*/
|
|
123
|
+
add_header(name: string, value: string): void;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Clear all headers.
|
|
127
|
+
*/
|
|
128
|
+
clear_headers(): void;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Iterates over all headers in the options.
|
|
132
|
+
* @param func The user's callback function.
|
|
133
|
+
*/
|
|
134
|
+
foreach_header(func: HeaderFunc): void;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
namespace Client {
|
|
139
|
+
// Signal signatures
|
|
140
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
141
|
+
"notify::client": (pspec: GObject.ParamSpec) => void;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// Constructor properties interface
|
|
145
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
146
|
+
client: never;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @gir-type Class
|
|
152
|
+
*/
|
|
153
|
+
class Client extends GObject.Object {
|
|
154
|
+
static $gtype: GObject.GType<Client>;
|
|
155
|
+
|
|
156
|
+
// Properties
|
|
157
|
+
/**
|
|
158
|
+
* @construct-only
|
|
159
|
+
*/
|
|
160
|
+
set client(val: never);
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Compile-time signal type information.
|
|
164
|
+
*
|
|
165
|
+
* This instance property is generated only for TypeScript type checking.
|
|
166
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
167
|
+
* @internal
|
|
168
|
+
*/
|
|
169
|
+
$signals: Client.SignalSignatures;
|
|
170
|
+
|
|
171
|
+
// Constructors
|
|
172
|
+
constructor(properties?: Partial<Client.ConstructorProps>, ...args: any[]);
|
|
173
|
+
|
|
174
|
+
_init(...args: any[]): void;
|
|
175
|
+
|
|
176
|
+
static ["new"](location: Location, options: ClientOptions | null): Client;
|
|
177
|
+
|
|
178
|
+
// Signals
|
|
179
|
+
/** @signal */
|
|
180
|
+
connect<K extends keyof Client.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Client.SignalSignatures[K]>): number;
|
|
181
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
182
|
+
|
|
183
|
+
/** @signal */
|
|
184
|
+
connect_after<K extends keyof Client.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Client.SignalSignatures[K]>): number;
|
|
185
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
186
|
+
|
|
187
|
+
/** @signal */
|
|
188
|
+
emit<K extends keyof Client.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Client.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
189
|
+
emit(signal: string, ...args: any[]): void;
|
|
190
|
+
|
|
191
|
+
// Methods
|
|
192
|
+
/**
|
|
193
|
+
* Authenticates to the server using basic HTTP style authentication.
|
|
194
|
+
* @param user User name to be used.
|
|
195
|
+
* @param password Password to be used.
|
|
196
|
+
* @param options A {@link ArrowFlight.CallOptions}.
|
|
197
|
+
* @returns `true` on success, `false` if there was an error.
|
|
198
|
+
*/
|
|
199
|
+
authenticate_basic_token(user: string, password: string, options: CallOptions | null): [boolean, string, string];
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @returns `true` on success, `false` if there was an error.
|
|
203
|
+
*/
|
|
204
|
+
close(): boolean;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @param ticket A {@link ArrowFlight.Ticket}.
|
|
208
|
+
* @param options A {@link ArrowFlight.CallOptions}.
|
|
209
|
+
* @returns The {@link ArrowFlight.StreamReader} to read record batched from the server on success, `null` on error.
|
|
210
|
+
*/
|
|
211
|
+
do_get(ticket: Ticket, options: CallOptions | null): StreamReader | null;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Upload data to a Flight described by the given descriptor. The
|
|
215
|
+
* caller must call `garrow_record_batch_writer_close()` on the
|
|
216
|
+
* returned stream once they are done writing.
|
|
217
|
+
*
|
|
218
|
+
* The reader and writer are linked; closing the writer will also
|
|
219
|
+
* close the reader. Use `garrow_flight_stream_writer_done_writing()` to
|
|
220
|
+
* only close the write side of the channel.
|
|
221
|
+
* @param descriptor A {@link ArrowFlight.Descriptor}.
|
|
222
|
+
* @param schema A {@link Arrow.Schema}.
|
|
223
|
+
* @param options A {@link ArrowFlight.CallOptions}.
|
|
224
|
+
* @returns The `GAFlighDoPutResult` holding a reader and a writer on success, `null` on error.
|
|
225
|
+
*/
|
|
226
|
+
do_put(descriptor: Descriptor, schema: Arrow.Schema, options: CallOptions | null): DoPutResult | null;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @param descriptor A {@link ArrowFlight.Descriptor} to be processed.
|
|
230
|
+
* @param options A {@link ArrowFlight.CallOptions}.
|
|
231
|
+
* @returns The returned {@link ArrowFlight.Info} on success, `null` on error.
|
|
232
|
+
*/
|
|
233
|
+
get_flight_info(descriptor: Descriptor, options: CallOptions | null): Info | null;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* @param criteria A {@link ArrowFlight.Criteria}.
|
|
237
|
+
* @param options A {@link ArrowFlight.CallOptions}.
|
|
238
|
+
* @returns The returned list of {@link ArrowFlight.Info} on success, `null` on error.
|
|
239
|
+
*/
|
|
240
|
+
list_flights(criteria: Criteria | null, options: CallOptions | null): Info[] | null;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
namespace ClientOptions {
|
|
245
|
+
// Signal signatures
|
|
246
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
247
|
+
"notify::certificate-chain": (pspec: GObject.ParamSpec) => void;
|
|
248
|
+
"notify::disable-server-verification": (pspec: GObject.ParamSpec) => void;
|
|
249
|
+
"notify::override-host-name": (pspec: GObject.ParamSpec) => void;
|
|
250
|
+
"notify::private-key": (pspec: GObject.ParamSpec) => void;
|
|
251
|
+
"notify::tls-root-certificates": (pspec: GObject.ParamSpec) => void;
|
|
252
|
+
"notify::write-size-limit-bytes": (pspec: GObject.ParamSpec) => void;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// Constructor properties interface
|
|
256
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
257
|
+
certificate_chain: string;
|
|
258
|
+
certificateChain: string;
|
|
259
|
+
disable_server_verification: boolean;
|
|
260
|
+
disableServerVerification: boolean;
|
|
261
|
+
override_host_name: string;
|
|
262
|
+
overrideHostName: string;
|
|
263
|
+
private_key: string;
|
|
264
|
+
privateKey: string;
|
|
265
|
+
tls_root_certificates: string;
|
|
266
|
+
tlsRootCertificates: string;
|
|
267
|
+
write_size_limit_bytes: bigint | number;
|
|
268
|
+
writeSizeLimitBytes: bigint | number;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* @gir-type Class
|
|
274
|
+
*/
|
|
275
|
+
class ClientOptions extends GObject.Object {
|
|
276
|
+
static $gtype: GObject.GType<ClientOptions>;
|
|
277
|
+
|
|
278
|
+
// Properties
|
|
279
|
+
/**
|
|
280
|
+
* The client certificate to use if using Mutual TLS.
|
|
281
|
+
* @since 14.0.0
|
|
282
|
+
*/
|
|
283
|
+
get certificate_chain(): string;
|
|
284
|
+
set certificate_chain(val: string);
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* The client certificate to use if using Mutual TLS.
|
|
288
|
+
* @since 14.0.0
|
|
289
|
+
*/
|
|
290
|
+
get certificateChain(): string;
|
|
291
|
+
set certificateChain(val: string);
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Whether use TLS without validating the server certificate. Use
|
|
295
|
+
* with caution.
|
|
296
|
+
* @since 9.0.0
|
|
297
|
+
* @default false
|
|
298
|
+
*/
|
|
299
|
+
get disable_server_verification(): boolean;
|
|
300
|
+
set disable_server_verification(val: boolean);
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Whether use TLS without validating the server certificate. Use
|
|
304
|
+
* with caution.
|
|
305
|
+
* @since 9.0.0
|
|
306
|
+
* @default false
|
|
307
|
+
*/
|
|
308
|
+
get disableServerVerification(): boolean;
|
|
309
|
+
set disableServerVerification(val: boolean);
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Override the host name checked by TLS. Use with caution.
|
|
313
|
+
* @since 14.0.0
|
|
314
|
+
*/
|
|
315
|
+
get override_host_name(): string;
|
|
316
|
+
set override_host_name(val: string);
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Override the host name checked by TLS. Use with caution.
|
|
320
|
+
* @since 14.0.0
|
|
321
|
+
*/
|
|
322
|
+
get overrideHostName(): string;
|
|
323
|
+
set overrideHostName(val: string);
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* The private key associated with the client certificate for Mutual
|
|
327
|
+
* TLS.
|
|
328
|
+
* @since 14.0.0
|
|
329
|
+
*/
|
|
330
|
+
get private_key(): string;
|
|
331
|
+
set private_key(val: string);
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* The private key associated with the client certificate for Mutual
|
|
335
|
+
* TLS.
|
|
336
|
+
* @since 14.0.0
|
|
337
|
+
*/
|
|
338
|
+
get privateKey(): string;
|
|
339
|
+
set privateKey(val: string);
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Root certificates to use for validating server certificates.
|
|
343
|
+
* @since 14.0.0
|
|
344
|
+
*/
|
|
345
|
+
get tls_root_certificates(): string;
|
|
346
|
+
set tls_root_certificates(val: string);
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Root certificates to use for validating server certificates.
|
|
350
|
+
* @since 14.0.0
|
|
351
|
+
*/
|
|
352
|
+
get tlsRootCertificates(): string;
|
|
353
|
+
set tlsRootCertificates(val: string);
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* A soft limit on the number of bytes to write in a single batch
|
|
357
|
+
* when sending Arrow data to a server.
|
|
358
|
+
*
|
|
359
|
+
* Used to help limit server memory consumption. Only enabled if
|
|
360
|
+
* positive. When enabled, `GARROW_ERROR_IO` may be yielded.
|
|
361
|
+
* @since 14.0.0
|
|
362
|
+
* @default 0
|
|
363
|
+
*/
|
|
364
|
+
get write_size_limit_bytes(): number;
|
|
365
|
+
set write_size_limit_bytes(val: bigint | number);
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* A soft limit on the number of bytes to write in a single batch
|
|
369
|
+
* when sending Arrow data to a server.
|
|
370
|
+
*
|
|
371
|
+
* Used to help limit server memory consumption. Only enabled if
|
|
372
|
+
* positive. When enabled, `GARROW_ERROR_IO` may be yielded.
|
|
373
|
+
* @since 14.0.0
|
|
374
|
+
* @default 0
|
|
375
|
+
*/
|
|
376
|
+
get writeSizeLimitBytes(): number;
|
|
377
|
+
set writeSizeLimitBytes(val: bigint | number);
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Compile-time signal type information.
|
|
381
|
+
*
|
|
382
|
+
* This instance property is generated only for TypeScript type checking.
|
|
383
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
384
|
+
* @internal
|
|
385
|
+
*/
|
|
386
|
+
$signals: ClientOptions.SignalSignatures;
|
|
387
|
+
|
|
388
|
+
// Constructors
|
|
389
|
+
constructor(properties?: Partial<ClientOptions.ConstructorProps>, ...args: any[]);
|
|
390
|
+
|
|
391
|
+
_init(...args: any[]): void;
|
|
392
|
+
|
|
393
|
+
static ["new"](): ClientOptions;
|
|
394
|
+
|
|
395
|
+
// Signals
|
|
396
|
+
/** @signal */
|
|
397
|
+
connect<K extends keyof ClientOptions.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ClientOptions.SignalSignatures[K]>): number;
|
|
398
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
399
|
+
|
|
400
|
+
/** @signal */
|
|
401
|
+
connect_after<K extends keyof ClientOptions.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ClientOptions.SignalSignatures[K]>): number;
|
|
402
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
403
|
+
|
|
404
|
+
/** @signal */
|
|
405
|
+
emit<K extends keyof ClientOptions.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ClientOptions.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
406
|
+
emit(signal: string, ...args: any[]): void;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
namespace CommandDescriptor {
|
|
411
|
+
// Signal signatures
|
|
412
|
+
interface SignalSignatures extends Descriptor.SignalSignatures {
|
|
413
|
+
"notify::descriptor": (pspec: GObject.ParamSpec) => void;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// Constructor properties interface
|
|
417
|
+
interface ConstructorProps extends Descriptor.ConstructorProps {}
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* @gir-type Class
|
|
422
|
+
*/
|
|
423
|
+
class CommandDescriptor extends Descriptor {
|
|
424
|
+
static $gtype: GObject.GType<CommandDescriptor>;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Compile-time signal type information.
|
|
428
|
+
*
|
|
429
|
+
* This instance property is generated only for TypeScript type checking.
|
|
430
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
431
|
+
* @internal
|
|
432
|
+
*/
|
|
433
|
+
$signals: CommandDescriptor.SignalSignatures;
|
|
434
|
+
|
|
435
|
+
// Constructors
|
|
436
|
+
constructor(properties?: Partial<CommandDescriptor.ConstructorProps>, ...args: any[]);
|
|
437
|
+
|
|
438
|
+
_init(...args: any[]): void;
|
|
439
|
+
|
|
440
|
+
static ["new"](command: string): CommandDescriptor;
|
|
441
|
+
|
|
442
|
+
// Signals
|
|
443
|
+
/** @signal */
|
|
444
|
+
connect<K extends keyof CommandDescriptor.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, CommandDescriptor.SignalSignatures[K]>): number;
|
|
445
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
446
|
+
|
|
447
|
+
/** @signal */
|
|
448
|
+
connect_after<K extends keyof CommandDescriptor.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, CommandDescriptor.SignalSignatures[K]>): number;
|
|
449
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
450
|
+
|
|
451
|
+
/** @signal */
|
|
452
|
+
emit<K extends keyof CommandDescriptor.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<CommandDescriptor.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
453
|
+
emit(signal: string, ...args: any[]): void;
|
|
454
|
+
|
|
455
|
+
// Methods
|
|
456
|
+
/**
|
|
457
|
+
* @returns The opaque value used to express a command. It should be freed with `g_free()` when no longer needed.
|
|
458
|
+
*/
|
|
459
|
+
get_command(): string;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
namespace Criteria {
|
|
464
|
+
// Signal signatures
|
|
465
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
466
|
+
"notify::expression": (pspec: GObject.ParamSpec) => void;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
// Constructor properties interface
|
|
470
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
471
|
+
expression: GLib.Bytes | Uint8Array;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* @gir-type Class
|
|
477
|
+
*/
|
|
478
|
+
class Criteria extends GObject.Object {
|
|
479
|
+
static $gtype: GObject.GType<Criteria>;
|
|
480
|
+
|
|
481
|
+
// Properties
|
|
482
|
+
/**
|
|
483
|
+
* Opaque criteria expression, dependent on server implementation.
|
|
484
|
+
* @since 5.0.0
|
|
485
|
+
*/
|
|
486
|
+
get expression(): GLib.Bytes;
|
|
487
|
+
set expression(val: GLib.Bytes | Uint8Array);
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Compile-time signal type information.
|
|
491
|
+
*
|
|
492
|
+
* This instance property is generated only for TypeScript type checking.
|
|
493
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
494
|
+
* @internal
|
|
495
|
+
*/
|
|
496
|
+
$signals: Criteria.SignalSignatures;
|
|
497
|
+
|
|
498
|
+
// Constructors
|
|
499
|
+
constructor(properties?: Partial<Criteria.ConstructorProps>, ...args: any[]);
|
|
500
|
+
|
|
501
|
+
_init(...args: any[]): void;
|
|
502
|
+
|
|
503
|
+
static ["new"](expression: GLib.Bytes | Uint8Array): Criteria;
|
|
504
|
+
|
|
505
|
+
// Signals
|
|
506
|
+
/** @signal */
|
|
507
|
+
connect<K extends keyof Criteria.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Criteria.SignalSignatures[K]>): number;
|
|
508
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
509
|
+
|
|
510
|
+
/** @signal */
|
|
511
|
+
connect_after<K extends keyof Criteria.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Criteria.SignalSignatures[K]>): number;
|
|
512
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
513
|
+
|
|
514
|
+
/** @signal */
|
|
515
|
+
emit<K extends keyof Criteria.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Criteria.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
516
|
+
emit(signal: string, ...args: any[]): void;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
namespace DataStream {
|
|
521
|
+
// Signal signatures
|
|
522
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
523
|
+
"notify::stream": (pspec: GObject.ParamSpec) => void;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
// Constructor properties interface
|
|
527
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
528
|
+
stream: never;
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* @gir-type Class
|
|
534
|
+
*/
|
|
535
|
+
class DataStream extends GObject.Object {
|
|
536
|
+
static $gtype: GObject.GType<DataStream>;
|
|
537
|
+
|
|
538
|
+
// Properties
|
|
539
|
+
/**
|
|
540
|
+
* @construct-only
|
|
541
|
+
*/
|
|
542
|
+
set stream(val: never);
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Compile-time signal type information.
|
|
546
|
+
*
|
|
547
|
+
* This instance property is generated only for TypeScript type checking.
|
|
548
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
549
|
+
* @internal
|
|
550
|
+
*/
|
|
551
|
+
$signals: DataStream.SignalSignatures;
|
|
552
|
+
|
|
553
|
+
// Constructors
|
|
554
|
+
constructor(properties?: Partial<DataStream.ConstructorProps>, ...args: any[]);
|
|
555
|
+
|
|
556
|
+
_init(...args: any[]): void;
|
|
557
|
+
|
|
558
|
+
// Signals
|
|
559
|
+
/** @signal */
|
|
560
|
+
connect<K extends keyof DataStream.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, DataStream.SignalSignatures[K]>): number;
|
|
561
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
562
|
+
|
|
563
|
+
/** @signal */
|
|
564
|
+
connect_after<K extends keyof DataStream.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, DataStream.SignalSignatures[K]>): number;
|
|
565
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
566
|
+
|
|
567
|
+
/** @signal */
|
|
568
|
+
emit<K extends keyof DataStream.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<DataStream.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
569
|
+
emit(signal: string, ...args: any[]): void;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
namespace Descriptor {
|
|
574
|
+
// Signal signatures
|
|
575
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
576
|
+
"notify::descriptor": (pspec: GObject.ParamSpec) => void;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// Constructor properties interface
|
|
580
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
581
|
+
descriptor: never;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* @gir-type Class
|
|
587
|
+
*/
|
|
588
|
+
abstract class Descriptor extends GObject.Object {
|
|
589
|
+
static $gtype: GObject.GType<Descriptor>;
|
|
590
|
+
|
|
591
|
+
// Properties
|
|
592
|
+
/**
|
|
593
|
+
* @construct-only
|
|
594
|
+
*/
|
|
595
|
+
set descriptor(val: never);
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Compile-time signal type information.
|
|
599
|
+
*
|
|
600
|
+
* This instance property is generated only for TypeScript type checking.
|
|
601
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
602
|
+
* @internal
|
|
603
|
+
*/
|
|
604
|
+
$signals: Descriptor.SignalSignatures;
|
|
605
|
+
|
|
606
|
+
// Constructors
|
|
607
|
+
constructor(properties?: Partial<Descriptor.ConstructorProps>, ...args: any[]);
|
|
608
|
+
|
|
609
|
+
_init(...args: any[]): void;
|
|
610
|
+
|
|
611
|
+
// Signals
|
|
612
|
+
/** @signal */
|
|
613
|
+
connect<K extends keyof Descriptor.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Descriptor.SignalSignatures[K]>): number;
|
|
614
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
615
|
+
|
|
616
|
+
/** @signal */
|
|
617
|
+
connect_after<K extends keyof Descriptor.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Descriptor.SignalSignatures[K]>): number;
|
|
618
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
619
|
+
|
|
620
|
+
/** @signal */
|
|
621
|
+
emit<K extends keyof Descriptor.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Descriptor.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
622
|
+
emit(signal: string, ...args: any[]): void;
|
|
623
|
+
|
|
624
|
+
// Methods
|
|
625
|
+
/**
|
|
626
|
+
* @param other_descriptor A {@link ArrowFlight.Descriptor} to be compared.
|
|
627
|
+
* @returns `true` if both of them represents the same descriptor, `false` otherwise.
|
|
628
|
+
*/
|
|
629
|
+
equal(other_descriptor: Descriptor): boolean;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* @returns A descriptor as a string. It should be freed with `g_free()` when no longer needed.
|
|
633
|
+
*/
|
|
634
|
+
to_string(): string;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
namespace DoPutResult {
|
|
639
|
+
// Signal signatures
|
|
640
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
641
|
+
"notify::reader": (pspec: GObject.ParamSpec) => void;
|
|
642
|
+
"notify::result": (pspec: GObject.ParamSpec) => void;
|
|
643
|
+
"notify::writer": (pspec: GObject.ParamSpec) => void;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
// Constructor properties interface
|
|
647
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
648
|
+
reader: MetadataReader;
|
|
649
|
+
result: never;
|
|
650
|
+
writer: StreamWriter;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* @gir-type Class
|
|
656
|
+
*/
|
|
657
|
+
class DoPutResult extends GObject.Object {
|
|
658
|
+
static $gtype: GObject.GType<DoPutResult>;
|
|
659
|
+
|
|
660
|
+
// Properties
|
|
661
|
+
/**
|
|
662
|
+
* A reader for application metadata from the server.
|
|
663
|
+
* @since 18.0.0
|
|
664
|
+
* @read-only
|
|
665
|
+
*/
|
|
666
|
+
get reader(): MetadataReader;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* @construct-only
|
|
670
|
+
*/
|
|
671
|
+
set result(val: never);
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* A writer to write record batches to.
|
|
675
|
+
* @since 18.0.0
|
|
676
|
+
* @read-only
|
|
677
|
+
*/
|
|
678
|
+
get writer(): StreamWriter;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Compile-time signal type information.
|
|
682
|
+
*
|
|
683
|
+
* This instance property is generated only for TypeScript type checking.
|
|
684
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
685
|
+
* @internal
|
|
686
|
+
*/
|
|
687
|
+
$signals: DoPutResult.SignalSignatures;
|
|
688
|
+
|
|
689
|
+
// Constructors
|
|
690
|
+
constructor(properties?: Partial<DoPutResult.ConstructorProps>, ...args: any[]);
|
|
691
|
+
|
|
692
|
+
_init(...args: any[]): void;
|
|
693
|
+
|
|
694
|
+
// Signals
|
|
695
|
+
/** @signal */
|
|
696
|
+
connect<K extends keyof DoPutResult.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, DoPutResult.SignalSignatures[K]>): number;
|
|
697
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
698
|
+
|
|
699
|
+
/** @signal */
|
|
700
|
+
connect_after<K extends keyof DoPutResult.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, DoPutResult.SignalSignatures[K]>): number;
|
|
701
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
702
|
+
|
|
703
|
+
/** @signal */
|
|
704
|
+
emit<K extends keyof DoPutResult.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<DoPutResult.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
705
|
+
emit(signal: string, ...args: any[]): void;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
namespace Endpoint {
|
|
710
|
+
// Signal signatures
|
|
711
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
712
|
+
"notify::ticket": (pspec: GObject.ParamSpec) => void;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
// Constructor properties interface
|
|
716
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
717
|
+
ticket: Ticket;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* @gir-type Class
|
|
723
|
+
*/
|
|
724
|
+
class Endpoint extends GObject.Object {
|
|
725
|
+
static $gtype: GObject.GType<Endpoint>;
|
|
726
|
+
|
|
727
|
+
// Properties
|
|
728
|
+
/**
|
|
729
|
+
* Opaque ticket identify; use with DoGet RPC.
|
|
730
|
+
* @since 5.0.0
|
|
731
|
+
* @read-only
|
|
732
|
+
*/
|
|
733
|
+
get ticket(): Ticket;
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Compile-time signal type information.
|
|
737
|
+
*
|
|
738
|
+
* This instance property is generated only for TypeScript type checking.
|
|
739
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
740
|
+
* @internal
|
|
741
|
+
*/
|
|
742
|
+
$signals: Endpoint.SignalSignatures;
|
|
743
|
+
|
|
744
|
+
// Constructors
|
|
745
|
+
constructor(properties?: Partial<Endpoint.ConstructorProps>, ...args: any[]);
|
|
746
|
+
|
|
747
|
+
_init(...args: any[]): void;
|
|
748
|
+
|
|
749
|
+
static ["new"](ticket: Ticket, locations: Location[]): Endpoint;
|
|
750
|
+
|
|
751
|
+
// Signals
|
|
752
|
+
/** @signal */
|
|
753
|
+
connect<K extends keyof Endpoint.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Endpoint.SignalSignatures[K]>): number;
|
|
754
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
755
|
+
|
|
756
|
+
/** @signal */
|
|
757
|
+
connect_after<K extends keyof Endpoint.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Endpoint.SignalSignatures[K]>): number;
|
|
758
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
759
|
+
|
|
760
|
+
/** @signal */
|
|
761
|
+
emit<K extends keyof Endpoint.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Endpoint.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
762
|
+
emit(signal: string, ...args: any[]): void;
|
|
763
|
+
|
|
764
|
+
// Methods
|
|
765
|
+
/**
|
|
766
|
+
* @param other_endpoint A {@link ArrowFlight.Endpoint} to be compared.
|
|
767
|
+
* @returns `true` if both of them represents the same endpoint, `false` otherwise.
|
|
768
|
+
*/
|
|
769
|
+
equal(other_endpoint: Endpoint): boolean;
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* @returns The locations in this endpoint. It must be freed with `g_list_free()` and `g_object_unref()` when no longer needed. You can use `g_list_free_full(locations, g_object_unref)`.
|
|
773
|
+
*/
|
|
774
|
+
get_locations(): Location[] | null;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
namespace Info {
|
|
779
|
+
// Signal signatures
|
|
780
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
781
|
+
"notify::info": (pspec: GObject.ParamSpec) => void;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
// Constructor properties interface
|
|
785
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
786
|
+
info: never;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* @gir-type Class
|
|
792
|
+
*/
|
|
793
|
+
class Info extends GObject.Object {
|
|
794
|
+
static $gtype: GObject.GType<Info>;
|
|
795
|
+
|
|
796
|
+
// Properties
|
|
797
|
+
/**
|
|
798
|
+
* @construct-only
|
|
799
|
+
*/
|
|
800
|
+
set info(val: never);
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Compile-time signal type information.
|
|
804
|
+
*
|
|
805
|
+
* This instance property is generated only for TypeScript type checking.
|
|
806
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
807
|
+
* @internal
|
|
808
|
+
*/
|
|
809
|
+
$signals: Info.SignalSignatures;
|
|
810
|
+
|
|
811
|
+
// Constructors
|
|
812
|
+
constructor(properties?: Partial<Info.ConstructorProps>, ...args: any[]);
|
|
813
|
+
|
|
814
|
+
_init(...args: any[]): void;
|
|
815
|
+
|
|
816
|
+
static ["new"](schema: Arrow.Schema, descriptor: Descriptor, endpoints: Endpoint[], total_records: bigint | number, total_bytes: bigint | number): Info;
|
|
817
|
+
|
|
818
|
+
// Signals
|
|
819
|
+
/** @signal */
|
|
820
|
+
connect<K extends keyof Info.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Info.SignalSignatures[K]>): number;
|
|
821
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
822
|
+
|
|
823
|
+
/** @signal */
|
|
824
|
+
connect_after<K extends keyof Info.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Info.SignalSignatures[K]>): number;
|
|
825
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
826
|
+
|
|
827
|
+
/** @signal */
|
|
828
|
+
emit<K extends keyof Info.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Info.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
829
|
+
emit(signal: string, ...args: any[]): void;
|
|
830
|
+
|
|
831
|
+
// Methods
|
|
832
|
+
/**
|
|
833
|
+
* @param other_info A {@link ArrowFlight.Info} to be compared.
|
|
834
|
+
* @returns `true` if both of them represents the same information, `false` otherwise.
|
|
835
|
+
*/
|
|
836
|
+
equal(other_info: Info): boolean;
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* @returns The {@link ArrowFlight.Descriptor} of the information.
|
|
840
|
+
*/
|
|
841
|
+
get_descriptor(): Descriptor;
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* @returns The list of {@link ArrowFlight.Endpoint} of the information.
|
|
845
|
+
*/
|
|
846
|
+
get_endpoints(): Endpoint[];
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* @param options A {@link Arrow.ReadOptions}.
|
|
850
|
+
* @returns Deserialized {@link Arrow.Schema}, `null` on error.
|
|
851
|
+
*/
|
|
852
|
+
get_schema(options: Arrow.ReadOptions | null): Arrow.Schema;
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* @returns The number of total bytes of the information.
|
|
856
|
+
*/
|
|
857
|
+
get_total_bytes(): number;
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* @returns The number of total records of the information.
|
|
861
|
+
*/
|
|
862
|
+
get_total_records(): number;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
namespace Location {
|
|
867
|
+
// Signal signatures
|
|
868
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
869
|
+
|
|
870
|
+
// Constructor properties interface
|
|
871
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* @gir-type Class
|
|
876
|
+
*/
|
|
877
|
+
class Location extends GObject.Object {
|
|
878
|
+
static $gtype: GObject.GType<Location>;
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* Compile-time signal type information.
|
|
882
|
+
*
|
|
883
|
+
* This instance property is generated only for TypeScript type checking.
|
|
884
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
885
|
+
* @internal
|
|
886
|
+
*/
|
|
887
|
+
$signals: Location.SignalSignatures;
|
|
888
|
+
|
|
889
|
+
// Constructors
|
|
890
|
+
constructor(properties?: Partial<Location.ConstructorProps>, ...args: any[]);
|
|
891
|
+
|
|
892
|
+
_init(...args: any[]): void;
|
|
893
|
+
|
|
894
|
+
static ["new"](uri: string): Location;
|
|
895
|
+
|
|
896
|
+
// Signals
|
|
897
|
+
/** @signal */
|
|
898
|
+
connect<K extends keyof Location.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Location.SignalSignatures[K]>): number;
|
|
899
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
900
|
+
|
|
901
|
+
/** @signal */
|
|
902
|
+
connect_after<K extends keyof Location.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Location.SignalSignatures[K]>): number;
|
|
903
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
904
|
+
|
|
905
|
+
/** @signal */
|
|
906
|
+
emit<K extends keyof Location.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Location.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
907
|
+
emit(signal: string, ...args: any[]): void;
|
|
908
|
+
|
|
909
|
+
// Methods
|
|
910
|
+
/**
|
|
911
|
+
* @param other_location A {@link ArrowFlight.Location} to be compared.
|
|
912
|
+
* @returns `true` if both of them represents the same URI, `false` otherwise.
|
|
913
|
+
*/
|
|
914
|
+
equal(other_location: Location): boolean;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* @returns The scheme of this URI. It should be freed with `g_free()` when no longer needed.
|
|
918
|
+
*/
|
|
919
|
+
get_scheme(): string;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* @returns A representation of this URI as a string. It should be freed with `g_free()` when no longer needed.
|
|
923
|
+
*/
|
|
924
|
+
to_string(): string;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
namespace MessageReader {
|
|
929
|
+
// Signal signatures
|
|
930
|
+
interface SignalSignatures extends RecordBatchReader.SignalSignatures {
|
|
931
|
+
"notify::is-owner": (pspec: GObject.ParamSpec) => void;
|
|
932
|
+
"notify::reader": (pspec: GObject.ParamSpec) => void;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
// Constructor properties interface
|
|
936
|
+
interface ConstructorProps extends RecordBatchReader.ConstructorProps {}
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* @gir-type Class
|
|
941
|
+
*/
|
|
942
|
+
class MessageReader extends RecordBatchReader {
|
|
943
|
+
static $gtype: GObject.GType<MessageReader>;
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* Compile-time signal type information.
|
|
947
|
+
*
|
|
948
|
+
* This instance property is generated only for TypeScript type checking.
|
|
949
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
950
|
+
* @internal
|
|
951
|
+
*/
|
|
952
|
+
$signals: MessageReader.SignalSignatures;
|
|
953
|
+
|
|
954
|
+
// Constructors
|
|
955
|
+
constructor(properties?: Partial<MessageReader.ConstructorProps>, ...args: any[]);
|
|
956
|
+
|
|
957
|
+
_init(...args: any[]): void;
|
|
958
|
+
|
|
959
|
+
// Signals
|
|
960
|
+
/** @signal */
|
|
961
|
+
connect<K extends keyof MessageReader.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MessageReader.SignalSignatures[K]>): number;
|
|
962
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
963
|
+
|
|
964
|
+
/** @signal */
|
|
965
|
+
connect_after<K extends keyof MessageReader.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MessageReader.SignalSignatures[K]>): number;
|
|
966
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
967
|
+
|
|
968
|
+
/** @signal */
|
|
969
|
+
emit<K extends keyof MessageReader.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<MessageReader.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
970
|
+
emit(signal: string, ...args: any[]): void;
|
|
971
|
+
|
|
972
|
+
// Methods
|
|
973
|
+
/**
|
|
974
|
+
* @returns The descriptor for this upload.
|
|
975
|
+
*/
|
|
976
|
+
get_descriptor(): Descriptor;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
namespace MetadataReader {
|
|
981
|
+
// Signal signatures
|
|
982
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
983
|
+
"notify::reader": (pspec: GObject.ParamSpec) => void;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
// Constructor properties interface
|
|
987
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
988
|
+
reader: never;
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* @gir-type Class
|
|
994
|
+
*/
|
|
995
|
+
class MetadataReader extends GObject.Object {
|
|
996
|
+
static $gtype: GObject.GType<MetadataReader>;
|
|
997
|
+
|
|
998
|
+
// Properties
|
|
999
|
+
/**
|
|
1000
|
+
* @construct-only
|
|
1001
|
+
*/
|
|
1002
|
+
set reader(val: never);
|
|
1003
|
+
|
|
1004
|
+
/**
|
|
1005
|
+
* Compile-time signal type information.
|
|
1006
|
+
*
|
|
1007
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1008
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1009
|
+
* @internal
|
|
1010
|
+
*/
|
|
1011
|
+
$signals: MetadataReader.SignalSignatures;
|
|
1012
|
+
|
|
1013
|
+
// Constructors
|
|
1014
|
+
constructor(properties?: Partial<MetadataReader.ConstructorProps>, ...args: any[]);
|
|
1015
|
+
|
|
1016
|
+
_init(...args: any[]): void;
|
|
1017
|
+
|
|
1018
|
+
// Signals
|
|
1019
|
+
/** @signal */
|
|
1020
|
+
connect<K extends keyof MetadataReader.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MetadataReader.SignalSignatures[K]>): number;
|
|
1021
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1022
|
+
|
|
1023
|
+
/** @signal */
|
|
1024
|
+
connect_after<K extends keyof MetadataReader.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MetadataReader.SignalSignatures[K]>): number;
|
|
1025
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1026
|
+
|
|
1027
|
+
/** @signal */
|
|
1028
|
+
emit<K extends keyof MetadataReader.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<MetadataReader.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1029
|
+
emit(signal: string, ...args: any[]): void;
|
|
1030
|
+
|
|
1031
|
+
// Methods
|
|
1032
|
+
/**
|
|
1033
|
+
* @returns The metadata on success, `null` on error.
|
|
1034
|
+
*/
|
|
1035
|
+
read(): Arrow.Buffer;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
namespace MetadataWriter {
|
|
1040
|
+
// Signal signatures
|
|
1041
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1042
|
+
"notify::writer": (pspec: GObject.ParamSpec) => void;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
// Constructor properties interface
|
|
1046
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1047
|
+
writer: never;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* @gir-type Class
|
|
1053
|
+
*/
|
|
1054
|
+
class MetadataWriter extends GObject.Object {
|
|
1055
|
+
static $gtype: GObject.GType<MetadataWriter>;
|
|
1056
|
+
|
|
1057
|
+
// Properties
|
|
1058
|
+
/**
|
|
1059
|
+
* @construct-only
|
|
1060
|
+
*/
|
|
1061
|
+
set writer(val: never);
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Compile-time signal type information.
|
|
1065
|
+
*
|
|
1066
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1067
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1068
|
+
* @internal
|
|
1069
|
+
*/
|
|
1070
|
+
$signals: MetadataWriter.SignalSignatures;
|
|
1071
|
+
|
|
1072
|
+
// Constructors
|
|
1073
|
+
constructor(properties?: Partial<MetadataWriter.ConstructorProps>, ...args: any[]);
|
|
1074
|
+
|
|
1075
|
+
_init(...args: any[]): void;
|
|
1076
|
+
|
|
1077
|
+
// Signals
|
|
1078
|
+
/** @signal */
|
|
1079
|
+
connect<K extends keyof MetadataWriter.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MetadataWriter.SignalSignatures[K]>): number;
|
|
1080
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1081
|
+
|
|
1082
|
+
/** @signal */
|
|
1083
|
+
connect_after<K extends keyof MetadataWriter.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, MetadataWriter.SignalSignatures[K]>): number;
|
|
1084
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1085
|
+
|
|
1086
|
+
/** @signal */
|
|
1087
|
+
emit<K extends keyof MetadataWriter.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<MetadataWriter.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1088
|
+
emit(signal: string, ...args: any[]): void;
|
|
1089
|
+
|
|
1090
|
+
// Methods
|
|
1091
|
+
/**
|
|
1092
|
+
* Writes metadata to the client.
|
|
1093
|
+
* @param metadata A {@link Arrow.Buffer} to be sent.
|
|
1094
|
+
* @returns `true` on success, `false` on error.
|
|
1095
|
+
*/
|
|
1096
|
+
write(metadata: Arrow.Buffer): boolean;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
namespace PathDescriptor {
|
|
1101
|
+
// Signal signatures
|
|
1102
|
+
interface SignalSignatures extends Descriptor.SignalSignatures {
|
|
1103
|
+
"notify::descriptor": (pspec: GObject.ParamSpec) => void;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
// Constructor properties interface
|
|
1107
|
+
interface ConstructorProps extends Descriptor.ConstructorProps {}
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* @gir-type Class
|
|
1112
|
+
*/
|
|
1113
|
+
class PathDescriptor extends Descriptor {
|
|
1114
|
+
static $gtype: GObject.GType<PathDescriptor>;
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* Compile-time signal type information.
|
|
1118
|
+
*
|
|
1119
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1120
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1121
|
+
* @internal
|
|
1122
|
+
*/
|
|
1123
|
+
$signals: PathDescriptor.SignalSignatures;
|
|
1124
|
+
|
|
1125
|
+
// Constructors
|
|
1126
|
+
constructor(properties?: Partial<PathDescriptor.ConstructorProps>, ...args: any[]);
|
|
1127
|
+
|
|
1128
|
+
_init(...args: any[]): void;
|
|
1129
|
+
|
|
1130
|
+
static ["new"](paths: string[]): PathDescriptor;
|
|
1131
|
+
|
|
1132
|
+
// Signals
|
|
1133
|
+
/** @signal */
|
|
1134
|
+
connect<K extends keyof PathDescriptor.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, PathDescriptor.SignalSignatures[K]>): number;
|
|
1135
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1136
|
+
|
|
1137
|
+
/** @signal */
|
|
1138
|
+
connect_after<K extends keyof PathDescriptor.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, PathDescriptor.SignalSignatures[K]>): number;
|
|
1139
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1140
|
+
|
|
1141
|
+
/** @signal */
|
|
1142
|
+
emit<K extends keyof PathDescriptor.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<PathDescriptor.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1143
|
+
emit(signal: string, ...args: any[]): void;
|
|
1144
|
+
|
|
1145
|
+
// Methods
|
|
1146
|
+
/**
|
|
1147
|
+
* @returns The paths in this descriptor. It must be freed with `g_strfreev()` when no longer needed.
|
|
1148
|
+
*/
|
|
1149
|
+
get_paths(): string[] | null;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
namespace RecordBatchReader {
|
|
1154
|
+
// Signal signatures
|
|
1155
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1156
|
+
"notify::is-owner": (pspec: GObject.ParamSpec) => void;
|
|
1157
|
+
"notify::reader": (pspec: GObject.ParamSpec) => void;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
// Constructor properties interface
|
|
1161
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1162
|
+
is_owner: boolean;
|
|
1163
|
+
isOwner: boolean;
|
|
1164
|
+
reader: never;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* @gir-type Class
|
|
1170
|
+
*/
|
|
1171
|
+
abstract class RecordBatchReader extends GObject.Object {
|
|
1172
|
+
static $gtype: GObject.GType<RecordBatchReader>;
|
|
1173
|
+
|
|
1174
|
+
// Properties
|
|
1175
|
+
/**
|
|
1176
|
+
* @construct-only
|
|
1177
|
+
* @default true
|
|
1178
|
+
*/
|
|
1179
|
+
set is_owner(val: boolean);
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* @construct-only
|
|
1183
|
+
* @default true
|
|
1184
|
+
*/
|
|
1185
|
+
set isOwner(val: boolean);
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* @construct-only
|
|
1189
|
+
*/
|
|
1190
|
+
set reader(val: never);
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* Compile-time signal type information.
|
|
1194
|
+
*
|
|
1195
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1196
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1197
|
+
* @internal
|
|
1198
|
+
*/
|
|
1199
|
+
$signals: RecordBatchReader.SignalSignatures;
|
|
1200
|
+
|
|
1201
|
+
// Constructors
|
|
1202
|
+
constructor(properties?: Partial<RecordBatchReader.ConstructorProps>, ...args: any[]);
|
|
1203
|
+
|
|
1204
|
+
_init(...args: any[]): void;
|
|
1205
|
+
|
|
1206
|
+
// Signals
|
|
1207
|
+
/** @signal */
|
|
1208
|
+
connect<K extends keyof RecordBatchReader.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, RecordBatchReader.SignalSignatures[K]>): number;
|
|
1209
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1210
|
+
|
|
1211
|
+
/** @signal */
|
|
1212
|
+
connect_after<K extends keyof RecordBatchReader.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, RecordBatchReader.SignalSignatures[K]>): number;
|
|
1213
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1214
|
+
|
|
1215
|
+
/** @signal */
|
|
1216
|
+
emit<K extends keyof RecordBatchReader.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<RecordBatchReader.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1217
|
+
emit(signal: string, ...args: any[]): void;
|
|
1218
|
+
|
|
1219
|
+
// Methods
|
|
1220
|
+
/**
|
|
1221
|
+
* @returns The all data on success, `null` on error.
|
|
1222
|
+
*/
|
|
1223
|
+
read_all(): Arrow.Table;
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* @returns The next chunk on success, `null` on end of stream, `null` on error.
|
|
1227
|
+
*/
|
|
1228
|
+
read_next(): StreamChunk;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
namespace RecordBatchStream {
|
|
1233
|
+
// Signal signatures
|
|
1234
|
+
interface SignalSignatures extends DataStream.SignalSignatures {
|
|
1235
|
+
"notify::reader": (pspec: GObject.ParamSpec) => void;
|
|
1236
|
+
"notify::stream": (pspec: GObject.ParamSpec) => void;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
// Constructor properties interface
|
|
1240
|
+
interface ConstructorProps extends DataStream.ConstructorProps {
|
|
1241
|
+
reader: Arrow.RecordBatchReader;
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* @gir-type Class
|
|
1247
|
+
*/
|
|
1248
|
+
class RecordBatchStream extends DataStream {
|
|
1249
|
+
static $gtype: GObject.GType<RecordBatchStream>;
|
|
1250
|
+
|
|
1251
|
+
// Properties
|
|
1252
|
+
/**
|
|
1253
|
+
* The reader that produces record batches.
|
|
1254
|
+
* @since 6.0.0
|
|
1255
|
+
* @construct-only
|
|
1256
|
+
*/
|
|
1257
|
+
get reader(): Arrow.RecordBatchReader;
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* Compile-time signal type information.
|
|
1261
|
+
*
|
|
1262
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1263
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1264
|
+
* @internal
|
|
1265
|
+
*/
|
|
1266
|
+
$signals: RecordBatchStream.SignalSignatures;
|
|
1267
|
+
|
|
1268
|
+
// Constructors
|
|
1269
|
+
constructor(properties?: Partial<RecordBatchStream.ConstructorProps>, ...args: any[]);
|
|
1270
|
+
|
|
1271
|
+
_init(...args: any[]): void;
|
|
1272
|
+
|
|
1273
|
+
static ["new"](reader: Arrow.RecordBatchReader, options: Arrow.WriteOptions | null): RecordBatchStream;
|
|
1274
|
+
|
|
1275
|
+
// Signals
|
|
1276
|
+
/** @signal */
|
|
1277
|
+
connect<K extends keyof RecordBatchStream.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, RecordBatchStream.SignalSignatures[K]>): number;
|
|
1278
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1279
|
+
|
|
1280
|
+
/** @signal */
|
|
1281
|
+
connect_after<K extends keyof RecordBatchStream.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, RecordBatchStream.SignalSignatures[K]>): number;
|
|
1282
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1283
|
+
|
|
1284
|
+
/** @signal */
|
|
1285
|
+
emit<K extends keyof RecordBatchStream.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<RecordBatchStream.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1286
|
+
emit(signal: string, ...args: any[]): void;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
namespace RecordBatchWriter {
|
|
1291
|
+
// Signal signatures
|
|
1292
|
+
interface SignalSignatures extends Arrow.RecordBatchWriter.SignalSignatures {
|
|
1293
|
+
"notify::record-batch-writer": (pspec: GObject.ParamSpec) => void;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
// Constructor properties interface
|
|
1297
|
+
interface ConstructorProps extends Arrow.RecordBatchWriter.ConstructorProps {}
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* @gir-type Class
|
|
1302
|
+
*/
|
|
1303
|
+
abstract class RecordBatchWriter extends Arrow.RecordBatchWriter {
|
|
1304
|
+
static $gtype: GObject.GType<RecordBatchWriter>;
|
|
1305
|
+
|
|
1306
|
+
/**
|
|
1307
|
+
* Compile-time signal type information.
|
|
1308
|
+
*
|
|
1309
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1310
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1311
|
+
* @internal
|
|
1312
|
+
*/
|
|
1313
|
+
$signals: RecordBatchWriter.SignalSignatures;
|
|
1314
|
+
|
|
1315
|
+
// Constructors
|
|
1316
|
+
constructor(properties?: Partial<RecordBatchWriter.ConstructorProps>, ...args: any[]);
|
|
1317
|
+
|
|
1318
|
+
_init(...args: any[]): void;
|
|
1319
|
+
|
|
1320
|
+
// Signals
|
|
1321
|
+
/** @signal */
|
|
1322
|
+
connect<K extends keyof RecordBatchWriter.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, RecordBatchWriter.SignalSignatures[K]>): number;
|
|
1323
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1324
|
+
|
|
1325
|
+
/** @signal */
|
|
1326
|
+
connect_after<K extends keyof RecordBatchWriter.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, RecordBatchWriter.SignalSignatures[K]>): number;
|
|
1327
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1328
|
+
|
|
1329
|
+
/** @signal */
|
|
1330
|
+
emit<K extends keyof RecordBatchWriter.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<RecordBatchWriter.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1331
|
+
emit(signal: string, ...args: any[]): void;
|
|
1332
|
+
|
|
1333
|
+
// Methods
|
|
1334
|
+
/**
|
|
1335
|
+
* Begins writing data with the given schema. Only used with
|
|
1336
|
+
* `DoExchange`.
|
|
1337
|
+
* @param schema A {@link Arrow.Schema}.
|
|
1338
|
+
* @param options A {@link Arrow.WriteOptions}.
|
|
1339
|
+
* @returns `true` on success, `false` on error.
|
|
1340
|
+
*/
|
|
1341
|
+
begin(schema: Arrow.Schema, options: Arrow.WriteOptions | null): boolean;
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* Write metadata.
|
|
1345
|
+
* @param metadata A {@link Arrow.Buffer}.
|
|
1346
|
+
* @returns `true` on success, `false` on error.
|
|
1347
|
+
*/
|
|
1348
|
+
write_metadata(metadata: Arrow.Buffer): boolean;
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* Write a record batch with metadata.
|
|
1352
|
+
* @param record_batch A {@link Arrow.RecordBatch}.
|
|
1353
|
+
* @param metadata A {@link Arrow.Buffer}.
|
|
1354
|
+
* @returns `true` on success, `false` on error.
|
|
1355
|
+
*/
|
|
1356
|
+
write_record_batch(record_batch: Arrow.RecordBatch, metadata: Arrow.Buffer | null): boolean;
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* @param args
|
|
1360
|
+
*/
|
|
1361
|
+
// Conflicted with Arrow.RecordBatchWriter.write_record_batch
|
|
1362
|
+
write_record_batch(...args: never[]): any;
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
|
|
1366
|
+
namespace Server {
|
|
1367
|
+
// Signal signatures
|
|
1368
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {}
|
|
1369
|
+
|
|
1370
|
+
// Constructor properties interface
|
|
1371
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps, Servable.ConstructorProps {}
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* @gir-type Class
|
|
1376
|
+
*/
|
|
1377
|
+
abstract class Server extends GObject.Object implements Servable {
|
|
1378
|
+
static $gtype: GObject.GType<Server>;
|
|
1379
|
+
|
|
1380
|
+
/**
|
|
1381
|
+
* Compile-time signal type information.
|
|
1382
|
+
*
|
|
1383
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1384
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1385
|
+
* @internal
|
|
1386
|
+
*/
|
|
1387
|
+
$signals: Server.SignalSignatures;
|
|
1388
|
+
|
|
1389
|
+
// Constructors
|
|
1390
|
+
constructor(properties?: Partial<Server.ConstructorProps>, ...args: any[]);
|
|
1391
|
+
|
|
1392
|
+
_init(...args: any[]): void;
|
|
1393
|
+
|
|
1394
|
+
// Signals
|
|
1395
|
+
/** @signal */
|
|
1396
|
+
connect<K extends keyof Server.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Server.SignalSignatures[K]>): number;
|
|
1397
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1398
|
+
|
|
1399
|
+
/** @signal */
|
|
1400
|
+
connect_after<K extends keyof Server.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Server.SignalSignatures[K]>): number;
|
|
1401
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1402
|
+
|
|
1403
|
+
/** @signal */
|
|
1404
|
+
emit<K extends keyof Server.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Server.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1405
|
+
emit(signal: string, ...args: any[]): void;
|
|
1406
|
+
|
|
1407
|
+
// Virtual methods
|
|
1408
|
+
/**
|
|
1409
|
+
* A virtual function to implement `DoGet` API.
|
|
1410
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1411
|
+
* @param ticket A {@link ArrowFlight.Ticket}.
|
|
1412
|
+
* @virtual
|
|
1413
|
+
*/
|
|
1414
|
+
vfunc_do_get(context: ServerCallContext, ticket: Ticket): DataStream;
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* Processes a stream of IPC payloads sent from a client.
|
|
1418
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1419
|
+
* @param reader A {@link ArrowFlight.MessageReader}.
|
|
1420
|
+
* @param writer A {@link ArrowFlight.MetadataWriter}.
|
|
1421
|
+
* @virtual
|
|
1422
|
+
*/
|
|
1423
|
+
vfunc_do_put(context: ServerCallContext, reader: MessageReader, writer: MetadataWriter): boolean;
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1427
|
+
* @param request A {@link ArrowFlight.Descriptor}.
|
|
1428
|
+
* @virtual
|
|
1429
|
+
*/
|
|
1430
|
+
vfunc_get_flight_info(context: ServerCallContext, request: Descriptor): Info;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* A virtual function to implement `ListFlights` API.
|
|
1434
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1435
|
+
* @param criteria A {@link ArrowFlight.Criteria}.
|
|
1436
|
+
* @virtual
|
|
1437
|
+
*/
|
|
1438
|
+
vfunc_list_flights(context: ServerCallContext, criteria: Criteria | null): Info[];
|
|
1439
|
+
|
|
1440
|
+
// Methods
|
|
1441
|
+
/**
|
|
1442
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1443
|
+
* @param ticket A {@link ArrowFlight.Ticket}.
|
|
1444
|
+
* @returns {@link ArrowFlight.DataStream} on success, `null` on error.
|
|
1445
|
+
*/
|
|
1446
|
+
do_get(context: ServerCallContext, ticket: Ticket): DataStream;
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* Processes a stream of IPC payloads sent from a client.
|
|
1450
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1451
|
+
* @param reader A {@link ArrowFlight.MessageReader}.
|
|
1452
|
+
* @param writer A {@link ArrowFlight.MetadataWriter}.
|
|
1453
|
+
* @returns `true` on success, `false` on error.
|
|
1454
|
+
*/
|
|
1455
|
+
do_put(context: ServerCallContext, reader: MessageReader, writer: MetadataWriter): boolean;
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1459
|
+
* @param request A {@link ArrowFlight.Descriptor}.
|
|
1460
|
+
* @returns A {@link ArrowFlight.Info} on success, `null` on error.
|
|
1461
|
+
*/
|
|
1462
|
+
get_flight_info(context: ServerCallContext, request: Descriptor): Info;
|
|
1463
|
+
|
|
1464
|
+
get_port(): number;
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1468
|
+
* @param criteria A {@link ArrowFlight.Criteria}.
|
|
1469
|
+
* @returns {@link GLib.List} of {@link ArrowFlight.Info} on success, `null` on error.
|
|
1470
|
+
*/
|
|
1471
|
+
list_flights(context: ServerCallContext, criteria: Criteria | null): Info[];
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* @param options A {@link ArrowFlight.ServerOptions}.
|
|
1475
|
+
* @returns `true` on success, `false` on error.
|
|
1476
|
+
*/
|
|
1477
|
+
listen(options: ServerOptions): boolean;
|
|
1478
|
+
|
|
1479
|
+
/**
|
|
1480
|
+
* Shuts down the serve. This function can be called from signal
|
|
1481
|
+
* handler or another thread.
|
|
1482
|
+
* @returns `true` on success, `false` on error.
|
|
1483
|
+
*/
|
|
1484
|
+
shutdown(): boolean;
|
|
1485
|
+
|
|
1486
|
+
wait(): boolean;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
|
|
1490
|
+
namespace ServerAuthHandler {
|
|
1491
|
+
// Signal signatures
|
|
1492
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1493
|
+
"notify::handler": (pspec: GObject.ParamSpec) => void;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
// Constructor properties interface
|
|
1497
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1498
|
+
handler: never;
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* @gir-type Class
|
|
1504
|
+
*/
|
|
1505
|
+
abstract class ServerAuthHandler extends GObject.Object {
|
|
1506
|
+
static $gtype: GObject.GType<ServerAuthHandler>;
|
|
1507
|
+
|
|
1508
|
+
// Properties
|
|
1509
|
+
/**
|
|
1510
|
+
* @construct-only
|
|
1511
|
+
*/
|
|
1512
|
+
set handler(val: never);
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* Compile-time signal type information.
|
|
1516
|
+
*
|
|
1517
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1518
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1519
|
+
* @internal
|
|
1520
|
+
*/
|
|
1521
|
+
$signals: ServerAuthHandler.SignalSignatures;
|
|
1522
|
+
|
|
1523
|
+
// Constructors
|
|
1524
|
+
constructor(properties?: Partial<ServerAuthHandler.ConstructorProps>, ...args: any[]);
|
|
1525
|
+
|
|
1526
|
+
_init(...args: any[]): void;
|
|
1527
|
+
|
|
1528
|
+
// Signals
|
|
1529
|
+
/** @signal */
|
|
1530
|
+
connect<K extends keyof ServerAuthHandler.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ServerAuthHandler.SignalSignatures[K]>): number;
|
|
1531
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1532
|
+
|
|
1533
|
+
/** @signal */
|
|
1534
|
+
connect_after<K extends keyof ServerAuthHandler.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ServerAuthHandler.SignalSignatures[K]>): number;
|
|
1535
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1536
|
+
|
|
1537
|
+
/** @signal */
|
|
1538
|
+
emit<K extends keyof ServerAuthHandler.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ServerAuthHandler.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1539
|
+
emit(signal: string, ...args: any[]): void;
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
namespace ServerAuthReader {
|
|
1544
|
+
// Signal signatures
|
|
1545
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1546
|
+
"notify::reader": (pspec: GObject.ParamSpec) => void;
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1549
|
+
// Constructor properties interface
|
|
1550
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1551
|
+
reader: never;
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
/**
|
|
1556
|
+
* @gir-type Class
|
|
1557
|
+
*/
|
|
1558
|
+
class ServerAuthReader extends GObject.Object {
|
|
1559
|
+
static $gtype: GObject.GType<ServerAuthReader>;
|
|
1560
|
+
|
|
1561
|
+
// Properties
|
|
1562
|
+
/**
|
|
1563
|
+
* @construct-only
|
|
1564
|
+
*/
|
|
1565
|
+
set reader(val: never);
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* Compile-time signal type information.
|
|
1569
|
+
*
|
|
1570
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1571
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1572
|
+
* @internal
|
|
1573
|
+
*/
|
|
1574
|
+
$signals: ServerAuthReader.SignalSignatures;
|
|
1575
|
+
|
|
1576
|
+
// Constructors
|
|
1577
|
+
constructor(properties?: Partial<ServerAuthReader.ConstructorProps>, ...args: any[]);
|
|
1578
|
+
|
|
1579
|
+
_init(...args: any[]): void;
|
|
1580
|
+
|
|
1581
|
+
// Signals
|
|
1582
|
+
/** @signal */
|
|
1583
|
+
connect<K extends keyof ServerAuthReader.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ServerAuthReader.SignalSignatures[K]>): number;
|
|
1584
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1585
|
+
|
|
1586
|
+
/** @signal */
|
|
1587
|
+
connect_after<K extends keyof ServerAuthReader.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ServerAuthReader.SignalSignatures[K]>): number;
|
|
1588
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1589
|
+
|
|
1590
|
+
/** @signal */
|
|
1591
|
+
emit<K extends keyof ServerAuthReader.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ServerAuthReader.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1592
|
+
emit(signal: string, ...args: any[]): void;
|
|
1593
|
+
|
|
1594
|
+
// Methods
|
|
1595
|
+
/**
|
|
1596
|
+
* Reads a message from the client.
|
|
1597
|
+
* @returns Read data as {@link GLib.Bytes} on success, `null` on error.
|
|
1598
|
+
*/
|
|
1599
|
+
read(): GLib.Bytes | null;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
|
|
1603
|
+
namespace ServerAuthSender {
|
|
1604
|
+
// Signal signatures
|
|
1605
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1606
|
+
"notify::sender": (pspec: GObject.ParamSpec) => void;
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
// Constructor properties interface
|
|
1610
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1611
|
+
sender: never;
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
/**
|
|
1616
|
+
* @gir-type Class
|
|
1617
|
+
*/
|
|
1618
|
+
class ServerAuthSender extends GObject.Object {
|
|
1619
|
+
static $gtype: GObject.GType<ServerAuthSender>;
|
|
1620
|
+
|
|
1621
|
+
// Properties
|
|
1622
|
+
/**
|
|
1623
|
+
* @construct-only
|
|
1624
|
+
*/
|
|
1625
|
+
set sender(val: never);
|
|
1626
|
+
|
|
1627
|
+
/**
|
|
1628
|
+
* Compile-time signal type information.
|
|
1629
|
+
*
|
|
1630
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1631
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1632
|
+
* @internal
|
|
1633
|
+
*/
|
|
1634
|
+
$signals: ServerAuthSender.SignalSignatures;
|
|
1635
|
+
|
|
1636
|
+
// Constructors
|
|
1637
|
+
constructor(properties?: Partial<ServerAuthSender.ConstructorProps>, ...args: any[]);
|
|
1638
|
+
|
|
1639
|
+
_init(...args: any[]): void;
|
|
1640
|
+
|
|
1641
|
+
// Signals
|
|
1642
|
+
/** @signal */
|
|
1643
|
+
connect<K extends keyof ServerAuthSender.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ServerAuthSender.SignalSignatures[K]>): number;
|
|
1644
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1645
|
+
|
|
1646
|
+
/** @signal */
|
|
1647
|
+
connect_after<K extends keyof ServerAuthSender.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ServerAuthSender.SignalSignatures[K]>): number;
|
|
1648
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1649
|
+
|
|
1650
|
+
/** @signal */
|
|
1651
|
+
emit<K extends keyof ServerAuthSender.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ServerAuthSender.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1652
|
+
emit(signal: string, ...args: any[]): void;
|
|
1653
|
+
|
|
1654
|
+
// Methods
|
|
1655
|
+
/**
|
|
1656
|
+
* Writes a message to the client.
|
|
1657
|
+
* @param message A {@link GLib.Bytes} to be sent.
|
|
1658
|
+
* @returns `true` on success, `false` on error.
|
|
1659
|
+
*/
|
|
1660
|
+
write(message: GLib.Bytes | Uint8Array): boolean;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
namespace ServerCallContext {
|
|
1665
|
+
// Signal signatures
|
|
1666
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1667
|
+
"notify::call-context": (pspec: GObject.ParamSpec) => void;
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
// Constructor properties interface
|
|
1671
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1672
|
+
call_context: never;
|
|
1673
|
+
callContext: never;
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* @gir-type Class
|
|
1679
|
+
*/
|
|
1680
|
+
class ServerCallContext extends GObject.Object {
|
|
1681
|
+
static $gtype: GObject.GType<ServerCallContext>;
|
|
1682
|
+
|
|
1683
|
+
// Properties
|
|
1684
|
+
/**
|
|
1685
|
+
* @construct-only
|
|
1686
|
+
*/
|
|
1687
|
+
set call_context(val: never);
|
|
1688
|
+
|
|
1689
|
+
/**
|
|
1690
|
+
* @construct-only
|
|
1691
|
+
*/
|
|
1692
|
+
set callContext(val: never);
|
|
1693
|
+
|
|
1694
|
+
/**
|
|
1695
|
+
* Compile-time signal type information.
|
|
1696
|
+
*
|
|
1697
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1698
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1699
|
+
* @internal
|
|
1700
|
+
*/
|
|
1701
|
+
$signals: ServerCallContext.SignalSignatures;
|
|
1702
|
+
|
|
1703
|
+
// Constructors
|
|
1704
|
+
constructor(properties?: Partial<ServerCallContext.ConstructorProps>, ...args: any[]);
|
|
1705
|
+
|
|
1706
|
+
_init(...args: any[]): void;
|
|
1707
|
+
|
|
1708
|
+
// Signals
|
|
1709
|
+
/** @signal */
|
|
1710
|
+
connect<K extends keyof ServerCallContext.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ServerCallContext.SignalSignatures[K]>): number;
|
|
1711
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1712
|
+
|
|
1713
|
+
/** @signal */
|
|
1714
|
+
connect_after<K extends keyof ServerCallContext.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ServerCallContext.SignalSignatures[K]>): number;
|
|
1715
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1716
|
+
|
|
1717
|
+
/** @signal */
|
|
1718
|
+
emit<K extends keyof ServerCallContext.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ServerCallContext.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1719
|
+
emit(signal: string, ...args: any[]): void;
|
|
1720
|
+
|
|
1721
|
+
// Methods
|
|
1722
|
+
/**
|
|
1723
|
+
* Iterates over all incoming headers.
|
|
1724
|
+
* @param func The user's callback function.
|
|
1725
|
+
*/
|
|
1726
|
+
foreach_incoming_header(func: HeaderFunc): void;
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
namespace ServerCustomAuthHandler {
|
|
1731
|
+
// Signal signatures
|
|
1732
|
+
interface SignalSignatures extends ServerAuthHandler.SignalSignatures {
|
|
1733
|
+
"notify::handler": (pspec: GObject.ParamSpec) => void;
|
|
1734
|
+
}
|
|
1735
|
+
|
|
1736
|
+
// Constructor properties interface
|
|
1737
|
+
interface ConstructorProps extends ServerAuthHandler.ConstructorProps {}
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* @gir-type Class
|
|
1742
|
+
*/
|
|
1743
|
+
class ServerCustomAuthHandler extends ServerAuthHandler {
|
|
1744
|
+
static $gtype: GObject.GType<ServerCustomAuthHandler>;
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* Compile-time signal type information.
|
|
1748
|
+
*
|
|
1749
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1750
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1751
|
+
* @internal
|
|
1752
|
+
*/
|
|
1753
|
+
$signals: ServerCustomAuthHandler.SignalSignatures;
|
|
1754
|
+
|
|
1755
|
+
// Constructors
|
|
1756
|
+
constructor(properties?: Partial<ServerCustomAuthHandler.ConstructorProps>, ...args: any[]);
|
|
1757
|
+
|
|
1758
|
+
_init(...args: any[]): void;
|
|
1759
|
+
|
|
1760
|
+
// Signals
|
|
1761
|
+
/** @signal */
|
|
1762
|
+
connect<K extends keyof ServerCustomAuthHandler.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ServerCustomAuthHandler.SignalSignatures[K]>): number;
|
|
1763
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1764
|
+
|
|
1765
|
+
/** @signal */
|
|
1766
|
+
connect_after<K extends keyof ServerCustomAuthHandler.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ServerCustomAuthHandler.SignalSignatures[K]>): number;
|
|
1767
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1768
|
+
|
|
1769
|
+
/** @signal */
|
|
1770
|
+
emit<K extends keyof ServerCustomAuthHandler.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ServerCustomAuthHandler.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1771
|
+
emit(signal: string, ...args: any[]): void;
|
|
1772
|
+
|
|
1773
|
+
// Virtual methods
|
|
1774
|
+
/**
|
|
1775
|
+
* Authenticates the client on initial connection. The server can send
|
|
1776
|
+
* and read responses from the client at any time.
|
|
1777
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1778
|
+
* @param sender A {@link ArrowFlight.ServerAuthSender}.
|
|
1779
|
+
* @param reader A {@link ArrowFlight.ServerAuthReader}.
|
|
1780
|
+
* @virtual
|
|
1781
|
+
*/
|
|
1782
|
+
vfunc_authenticate(context: ServerCallContext, sender: ServerAuthSender, reader: ServerAuthReader): void;
|
|
1783
|
+
|
|
1784
|
+
/**
|
|
1785
|
+
* Validates a per-call client token.
|
|
1786
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1787
|
+
* @param token The client token. May be the empty string if the client does not provide a token.
|
|
1788
|
+
* @virtual
|
|
1789
|
+
*/
|
|
1790
|
+
vfunc_is_valid(context: ServerCallContext, token: GLib.Bytes): GLib.Bytes | Uint8Array | null;
|
|
1791
|
+
|
|
1792
|
+
// Methods
|
|
1793
|
+
/**
|
|
1794
|
+
* Authenticates the client on initial connection. The server can send
|
|
1795
|
+
* and read responses from the client at any time.
|
|
1796
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1797
|
+
* @param sender A {@link ArrowFlight.ServerAuthSender}.
|
|
1798
|
+
* @param reader A {@link ArrowFlight.ServerAuthReader}.
|
|
1799
|
+
*/
|
|
1800
|
+
authenticate(context: ServerCallContext, sender: ServerAuthSender, reader: ServerAuthReader): void;
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* Validates a per-call client token.
|
|
1804
|
+
* @param context A {@link ArrowFlight.ServerCallContext}.
|
|
1805
|
+
* @param token The client token. May be the empty string if the client does not provide a token.
|
|
1806
|
+
* @returns The identity of the peer, if this authentication method supports it.
|
|
1807
|
+
*/
|
|
1808
|
+
is_valid(context: ServerCallContext, token: GLib.Bytes | Uint8Array): GLib.Bytes | null;
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
|
|
1812
|
+
namespace ServerOptions {
|
|
1813
|
+
// Signal signatures
|
|
1814
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1815
|
+
"notify::auth-handler": (pspec: GObject.ParamSpec) => void;
|
|
1816
|
+
"notify::location": (pspec: GObject.ParamSpec) => void;
|
|
1817
|
+
}
|
|
1818
|
+
|
|
1819
|
+
// Constructor properties interface
|
|
1820
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1821
|
+
auth_handler: ServerAuthHandler;
|
|
1822
|
+
authHandler: ServerAuthHandler;
|
|
1823
|
+
location: Location;
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
/**
|
|
1828
|
+
* @gir-type Class
|
|
1829
|
+
*/
|
|
1830
|
+
class ServerOptions extends GObject.Object {
|
|
1831
|
+
static $gtype: GObject.GType<ServerOptions>;
|
|
1832
|
+
|
|
1833
|
+
// Properties
|
|
1834
|
+
/**
|
|
1835
|
+
* The authentication handler.
|
|
1836
|
+
* @since 12.0.0
|
|
1837
|
+
*/
|
|
1838
|
+
get auth_handler(): ServerAuthHandler;
|
|
1839
|
+
set auth_handler(val: ServerAuthHandler);
|
|
1840
|
+
|
|
1841
|
+
/**
|
|
1842
|
+
* The authentication handler.
|
|
1843
|
+
* @since 12.0.0
|
|
1844
|
+
*/
|
|
1845
|
+
get authHandler(): ServerAuthHandler;
|
|
1846
|
+
set authHandler(val: ServerAuthHandler);
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* The location to be listened.
|
|
1850
|
+
* @since 5.0.0
|
|
1851
|
+
* @construct-only
|
|
1852
|
+
*/
|
|
1853
|
+
get location(): Location;
|
|
1854
|
+
|
|
1855
|
+
/**
|
|
1856
|
+
* Compile-time signal type information.
|
|
1857
|
+
*
|
|
1858
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1859
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1860
|
+
* @internal
|
|
1861
|
+
*/
|
|
1862
|
+
$signals: ServerOptions.SignalSignatures;
|
|
1863
|
+
|
|
1864
|
+
// Constructors
|
|
1865
|
+
constructor(properties?: Partial<ServerOptions.ConstructorProps>, ...args: any[]);
|
|
1866
|
+
|
|
1867
|
+
_init(...args: any[]): void;
|
|
1868
|
+
|
|
1869
|
+
static ["new"](location: Location): ServerOptions;
|
|
1870
|
+
|
|
1871
|
+
// Signals
|
|
1872
|
+
/** @signal */
|
|
1873
|
+
connect<K extends keyof ServerOptions.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ServerOptions.SignalSignatures[K]>): number;
|
|
1874
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1875
|
+
|
|
1876
|
+
/** @signal */
|
|
1877
|
+
connect_after<K extends keyof ServerOptions.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, ServerOptions.SignalSignatures[K]>): number;
|
|
1878
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1879
|
+
|
|
1880
|
+
/** @signal */
|
|
1881
|
+
emit<K extends keyof ServerOptions.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<ServerOptions.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1882
|
+
emit(signal: string, ...args: any[]): void;
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
|
|
1886
|
+
namespace StreamChunk {
|
|
1887
|
+
// Signal signatures
|
|
1888
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
1889
|
+
"notify::chunk": (pspec: GObject.ParamSpec) => void;
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
// Constructor properties interface
|
|
1893
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
1894
|
+
chunk: never;
|
|
1895
|
+
}
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* @gir-type Class
|
|
1900
|
+
*/
|
|
1901
|
+
class StreamChunk extends GObject.Object {
|
|
1902
|
+
static $gtype: GObject.GType<StreamChunk>;
|
|
1903
|
+
|
|
1904
|
+
// Properties
|
|
1905
|
+
/**
|
|
1906
|
+
* @construct-only
|
|
1907
|
+
*/
|
|
1908
|
+
set chunk(val: never);
|
|
1909
|
+
|
|
1910
|
+
/**
|
|
1911
|
+
* Compile-time signal type information.
|
|
1912
|
+
*
|
|
1913
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1914
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1915
|
+
* @internal
|
|
1916
|
+
*/
|
|
1917
|
+
$signals: StreamChunk.SignalSignatures;
|
|
1918
|
+
|
|
1919
|
+
// Constructors
|
|
1920
|
+
constructor(properties?: Partial<StreamChunk.ConstructorProps>, ...args: any[]);
|
|
1921
|
+
|
|
1922
|
+
_init(...args: any[]): void;
|
|
1923
|
+
|
|
1924
|
+
// Signals
|
|
1925
|
+
/** @signal */
|
|
1926
|
+
connect<K extends keyof StreamChunk.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, StreamChunk.SignalSignatures[K]>): number;
|
|
1927
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1928
|
+
|
|
1929
|
+
/** @signal */
|
|
1930
|
+
connect_after<K extends keyof StreamChunk.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, StreamChunk.SignalSignatures[K]>): number;
|
|
1931
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1932
|
+
|
|
1933
|
+
/** @signal */
|
|
1934
|
+
emit<K extends keyof StreamChunk.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<StreamChunk.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1935
|
+
emit(signal: string, ...args: any[]): void;
|
|
1936
|
+
|
|
1937
|
+
// Methods
|
|
1938
|
+
/**
|
|
1939
|
+
* @returns The data of the chunk.
|
|
1940
|
+
*/
|
|
1941
|
+
get_data(): Arrow.RecordBatch;
|
|
1942
|
+
|
|
1943
|
+
/**
|
|
1944
|
+
* @param args
|
|
1945
|
+
*/
|
|
1946
|
+
// Conflicted with GObject.Object.get_data
|
|
1947
|
+
get_data(...args: never[]): any;
|
|
1948
|
+
|
|
1949
|
+
/**
|
|
1950
|
+
* @returns The metadata of the chunk. The metadata may be NULL.
|
|
1951
|
+
*/
|
|
1952
|
+
get_metadata(): Arrow.Buffer | null;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
|
|
1956
|
+
namespace StreamReader {
|
|
1957
|
+
// Signal signatures
|
|
1958
|
+
interface SignalSignatures extends RecordBatchReader.SignalSignatures {
|
|
1959
|
+
"notify::is-owner": (pspec: GObject.ParamSpec) => void;
|
|
1960
|
+
"notify::reader": (pspec: GObject.ParamSpec) => void;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
// Constructor properties interface
|
|
1964
|
+
interface ConstructorProps extends RecordBatchReader.ConstructorProps {}
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
/**
|
|
1968
|
+
* @gir-type Class
|
|
1969
|
+
*/
|
|
1970
|
+
class StreamReader extends RecordBatchReader {
|
|
1971
|
+
static $gtype: GObject.GType<StreamReader>;
|
|
1972
|
+
|
|
1973
|
+
/**
|
|
1974
|
+
* Compile-time signal type information.
|
|
1975
|
+
*
|
|
1976
|
+
* This instance property is generated only for TypeScript type checking.
|
|
1977
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
1978
|
+
* @internal
|
|
1979
|
+
*/
|
|
1980
|
+
$signals: StreamReader.SignalSignatures;
|
|
1981
|
+
|
|
1982
|
+
// Constructors
|
|
1983
|
+
constructor(properties?: Partial<StreamReader.ConstructorProps>, ...args: any[]);
|
|
1984
|
+
|
|
1985
|
+
_init(...args: any[]): void;
|
|
1986
|
+
|
|
1987
|
+
// Signals
|
|
1988
|
+
/** @signal */
|
|
1989
|
+
connect<K extends keyof StreamReader.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, StreamReader.SignalSignatures[K]>): number;
|
|
1990
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
1991
|
+
|
|
1992
|
+
/** @signal */
|
|
1993
|
+
connect_after<K extends keyof StreamReader.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, StreamReader.SignalSignatures[K]>): number;
|
|
1994
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
1995
|
+
|
|
1996
|
+
/** @signal */
|
|
1997
|
+
emit<K extends keyof StreamReader.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<StreamReader.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
1998
|
+
emit(signal: string, ...args: any[]): void;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
|
|
2002
|
+
namespace StreamWriter {
|
|
2003
|
+
// Signal signatures
|
|
2004
|
+
interface SignalSignatures extends RecordBatchWriter.SignalSignatures {
|
|
2005
|
+
"notify::record-batch-writer": (pspec: GObject.ParamSpec) => void;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
// Constructor properties interface
|
|
2009
|
+
interface ConstructorProps extends RecordBatchWriter.ConstructorProps {}
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* @gir-type Class
|
|
2014
|
+
*/
|
|
2015
|
+
class StreamWriter extends RecordBatchWriter {
|
|
2016
|
+
static $gtype: GObject.GType<StreamWriter>;
|
|
2017
|
+
|
|
2018
|
+
/**
|
|
2019
|
+
* Compile-time signal type information.
|
|
2020
|
+
*
|
|
2021
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2022
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2023
|
+
* @internal
|
|
2024
|
+
*/
|
|
2025
|
+
$signals: StreamWriter.SignalSignatures;
|
|
2026
|
+
|
|
2027
|
+
// Constructors
|
|
2028
|
+
constructor(properties?: Partial<StreamWriter.ConstructorProps>, ...args: any[]);
|
|
2029
|
+
|
|
2030
|
+
_init(...args: any[]): void;
|
|
2031
|
+
|
|
2032
|
+
// Signals
|
|
2033
|
+
/** @signal */
|
|
2034
|
+
connect<K extends keyof StreamWriter.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, StreamWriter.SignalSignatures[K]>): number;
|
|
2035
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2036
|
+
|
|
2037
|
+
/** @signal */
|
|
2038
|
+
connect_after<K extends keyof StreamWriter.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, StreamWriter.SignalSignatures[K]>): number;
|
|
2039
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2040
|
+
|
|
2041
|
+
/** @signal */
|
|
2042
|
+
emit<K extends keyof StreamWriter.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<StreamWriter.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
2043
|
+
emit(signal: string, ...args: any[]): void;
|
|
2044
|
+
|
|
2045
|
+
// Methods
|
|
2046
|
+
/**
|
|
2047
|
+
* @returns `true` on success, `false` on error.
|
|
2048
|
+
*/
|
|
2049
|
+
done_writing(): boolean;
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
|
|
2053
|
+
namespace Ticket {
|
|
2054
|
+
// Signal signatures
|
|
2055
|
+
interface SignalSignatures extends GObject.Object.SignalSignatures {
|
|
2056
|
+
"notify::data": (pspec: GObject.ParamSpec) => void;
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
// Constructor properties interface
|
|
2060
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {
|
|
2061
|
+
data: GLib.Bytes | Uint8Array;
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
/**
|
|
2066
|
+
* @gir-type Class
|
|
2067
|
+
*/
|
|
2068
|
+
class Ticket extends GObject.Object {
|
|
2069
|
+
static $gtype: GObject.GType<Ticket>;
|
|
2070
|
+
|
|
2071
|
+
// Properties
|
|
2072
|
+
/**
|
|
2073
|
+
* Opaque identifier or credential to use when requesting a data
|
|
2074
|
+
* stream with the DoGet RPC.
|
|
2075
|
+
* @since 5.0.0
|
|
2076
|
+
*/
|
|
2077
|
+
get data(): GLib.Bytes;
|
|
2078
|
+
set data(val: GLib.Bytes | Uint8Array);
|
|
2079
|
+
|
|
2080
|
+
/**
|
|
2081
|
+
* Compile-time signal type information.
|
|
2082
|
+
*
|
|
2083
|
+
* This instance property is generated only for TypeScript type checking.
|
|
2084
|
+
* It is not defined at runtime and should not be accessed in JS code.
|
|
2085
|
+
* @internal
|
|
2086
|
+
*/
|
|
2087
|
+
$signals: Ticket.SignalSignatures;
|
|
2088
|
+
|
|
2089
|
+
// Constructors
|
|
2090
|
+
constructor(properties?: Partial<Ticket.ConstructorProps>, ...args: any[]);
|
|
2091
|
+
|
|
2092
|
+
_init(...args: any[]): void;
|
|
2093
|
+
|
|
2094
|
+
static ["new"](data: GLib.Bytes | Uint8Array): Ticket;
|
|
2095
|
+
|
|
2096
|
+
// Signals
|
|
2097
|
+
/** @signal */
|
|
2098
|
+
connect<K extends keyof Ticket.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Ticket.SignalSignatures[K]>): number;
|
|
2099
|
+
connect(signal: string, callback: (...args: any[]) => any): number;
|
|
2100
|
+
|
|
2101
|
+
/** @signal */
|
|
2102
|
+
connect_after<K extends keyof Ticket.SignalSignatures>(signal: K, callback: GObject.SignalCallback<this, Ticket.SignalSignatures[K]>): number;
|
|
2103
|
+
connect_after(signal: string, callback: (...args: any[]) => any): number;
|
|
2104
|
+
|
|
2105
|
+
/** @signal */
|
|
2106
|
+
emit<K extends keyof Ticket.SignalSignatures>(signal: K, ...args: GObject.GjsParameters<Ticket.SignalSignatures[K]> extends [any, ...infer Q] ? Q : never): void;
|
|
2107
|
+
emit(signal: string, ...args: any[]): void;
|
|
2108
|
+
|
|
2109
|
+
// Methods
|
|
2110
|
+
/**
|
|
2111
|
+
* @param other_ticket A {@link ArrowFlight.Ticket} to be compared.
|
|
2112
|
+
* @returns `true` if both of them represents the same ticket, `false` otherwise.
|
|
2113
|
+
*/
|
|
2114
|
+
equal(other_ticket: Ticket): boolean;
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
/**
|
|
2119
|
+
* @gir-type Alias
|
|
2120
|
+
*/
|
|
2121
|
+
type CallOptionsClass = typeof CallOptions;
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
* @gir-type Alias
|
|
2125
|
+
*/
|
|
2126
|
+
type ClientClass = typeof Client;
|
|
2127
|
+
|
|
2128
|
+
/**
|
|
2129
|
+
* @gir-type Alias
|
|
2130
|
+
*/
|
|
2131
|
+
type ClientOptionsClass = typeof ClientOptions;
|
|
2132
|
+
|
|
2133
|
+
/**
|
|
2134
|
+
* @gir-type Alias
|
|
2135
|
+
*/
|
|
2136
|
+
type CommandDescriptorClass = typeof CommandDescriptor;
|
|
2137
|
+
|
|
2138
|
+
/**
|
|
2139
|
+
* @gir-type Alias
|
|
2140
|
+
*/
|
|
2141
|
+
type CriteriaClass = typeof Criteria;
|
|
2142
|
+
|
|
2143
|
+
/**
|
|
2144
|
+
* @gir-type Alias
|
|
2145
|
+
*/
|
|
2146
|
+
type DataStreamClass = typeof DataStream;
|
|
2147
|
+
|
|
2148
|
+
/**
|
|
2149
|
+
* @gir-type Alias
|
|
2150
|
+
*/
|
|
2151
|
+
type DescriptorClass = typeof Descriptor;
|
|
2152
|
+
|
|
2153
|
+
/**
|
|
2154
|
+
* @gir-type Alias
|
|
2155
|
+
*/
|
|
2156
|
+
type DoPutResultClass = typeof DoPutResult;
|
|
2157
|
+
|
|
2158
|
+
/**
|
|
2159
|
+
* @gir-type Alias
|
|
2160
|
+
*/
|
|
2161
|
+
type EndpointClass = typeof Endpoint;
|
|
2162
|
+
|
|
2163
|
+
/**
|
|
2164
|
+
* @gir-type Alias
|
|
2165
|
+
*/
|
|
2166
|
+
type InfoClass = typeof Info;
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* @gir-type Alias
|
|
2170
|
+
*/
|
|
2171
|
+
type LocationClass = typeof Location;
|
|
2172
|
+
|
|
2173
|
+
/**
|
|
2174
|
+
* @gir-type Alias
|
|
2175
|
+
*/
|
|
2176
|
+
type MessageReaderClass = typeof MessageReader;
|
|
2177
|
+
|
|
2178
|
+
/**
|
|
2179
|
+
* @gir-type Alias
|
|
2180
|
+
*/
|
|
2181
|
+
type MetadataReaderClass = typeof MetadataReader;
|
|
2182
|
+
|
|
2183
|
+
/**
|
|
2184
|
+
* @gir-type Alias
|
|
2185
|
+
*/
|
|
2186
|
+
type MetadataWriterClass = typeof MetadataWriter;
|
|
2187
|
+
|
|
2188
|
+
/**
|
|
2189
|
+
* @gir-type Alias
|
|
2190
|
+
*/
|
|
2191
|
+
type PathDescriptorClass = typeof PathDescriptor;
|
|
2192
|
+
|
|
2193
|
+
/**
|
|
2194
|
+
* @gir-type Alias
|
|
2195
|
+
*/
|
|
2196
|
+
type RecordBatchReaderClass = typeof RecordBatchReader;
|
|
2197
|
+
|
|
2198
|
+
/**
|
|
2199
|
+
* @gir-type Alias
|
|
2200
|
+
*/
|
|
2201
|
+
type RecordBatchStreamClass = typeof RecordBatchStream;
|
|
2202
|
+
|
|
2203
|
+
/**
|
|
2204
|
+
* @gir-type Alias
|
|
2205
|
+
*/
|
|
2206
|
+
type RecordBatchWriterClass = typeof RecordBatchWriter;
|
|
2207
|
+
|
|
2208
|
+
/**
|
|
2209
|
+
* @gir-type Alias
|
|
2210
|
+
*/
|
|
2211
|
+
type ServableInterface = typeof Servable;
|
|
2212
|
+
|
|
2213
|
+
/**
|
|
2214
|
+
* @gir-type Alias
|
|
2215
|
+
*/
|
|
2216
|
+
type ServerAuthHandlerClass = typeof ServerAuthHandler;
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* @gir-type Alias
|
|
2220
|
+
*/
|
|
2221
|
+
type ServerAuthReaderClass = typeof ServerAuthReader;
|
|
2222
|
+
|
|
2223
|
+
/**
|
|
2224
|
+
* @gir-type Alias
|
|
2225
|
+
*/
|
|
2226
|
+
type ServerAuthSenderClass = typeof ServerAuthSender;
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* @gir-type Alias
|
|
2230
|
+
*/
|
|
2231
|
+
type ServerCallContextClass = typeof ServerCallContext;
|
|
2232
|
+
|
|
2233
|
+
/**
|
|
2234
|
+
* @gir-type Alias
|
|
2235
|
+
*/
|
|
2236
|
+
type ServerClass = typeof Server;
|
|
2237
|
+
|
|
2238
|
+
/**
|
|
2239
|
+
* @gir-type Alias
|
|
2240
|
+
*/
|
|
2241
|
+
type ServerCustomAuthHandlerClass = typeof ServerCustomAuthHandler;
|
|
2242
|
+
|
|
2243
|
+
/**
|
|
2244
|
+
* @gir-type Alias
|
|
2245
|
+
*/
|
|
2246
|
+
type ServerOptionsClass = typeof ServerOptions;
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
* @gir-type Alias
|
|
2250
|
+
*/
|
|
2251
|
+
type StreamChunkClass = typeof StreamChunk;
|
|
2252
|
+
|
|
2253
|
+
/**
|
|
2254
|
+
* @gir-type Alias
|
|
2255
|
+
*/
|
|
2256
|
+
type StreamReaderClass = typeof StreamReader;
|
|
2257
|
+
|
|
2258
|
+
/**
|
|
2259
|
+
* @gir-type Alias
|
|
2260
|
+
*/
|
|
2261
|
+
type StreamWriterClass = typeof StreamWriter;
|
|
2262
|
+
|
|
2263
|
+
/**
|
|
2264
|
+
* @gir-type Alias
|
|
2265
|
+
*/
|
|
2266
|
+
type TicketClass = typeof Ticket;
|
|
2267
|
+
|
|
2268
|
+
namespace Servable {
|
|
2269
|
+
|
|
2270
|
+
// Constructor properties interface
|
|
2271
|
+
interface ConstructorProps extends GObject.Object.ConstructorProps {}
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
export interface ServableNamespace {
|
|
2275
|
+
$gtype: GObject.GType<Servable>;
|
|
2276
|
+
prototype: Servable;
|
|
2277
|
+
}
|
|
2278
|
+
/**
|
|
2279
|
+
* @gir-type Interface
|
|
2280
|
+
*/
|
|
2281
|
+
interface Servable extends GObject.Object {
|
|
2282
|
+
}
|
|
2283
|
+
|
|
2284
|
+
|
|
2285
|
+
export const Servable: ServableNamespace & {
|
|
2286
|
+
new (): Servable; // This allows `obj instanceof Servable`
|
|
2287
|
+
};
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* Name of the imported GIR library
|
|
2291
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
|
|
2292
|
+
*/
|
|
2293
|
+
const __name__: string;
|
|
2294
|
+
|
|
2295
|
+
/**
|
|
2296
|
+
* Version of the imported GIR library
|
|
2297
|
+
* `see` https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
|
|
2298
|
+
*/
|
|
2299
|
+
const __version__: string;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
export default ArrowFlight;
|
|
2303
|
+
|
|
2304
|
+
// END
|