-
Notifications
You must be signed in to change notification settings - Fork 9
/
env.go
79 lines (55 loc) · 2.15 KB
/
env.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package pdk
type extismPointer uint64
//go:wasmimport extism:host/env input_length
func extism_input_length() uint64
//go:wasmimport extism:host/env length
func extism_length(extismPointer) uint64
//go:wasmimport extism:host/env length_unsafe
func extism_length_unsafe(extismPointer) uint64
//go:wasmimport extism:host/env alloc
func extism_alloc(uint64) extismPointer
//go:wasmimport extism:host/env free
func extism_free(extismPointer)
//go:wasmimport extism:host/env input_load_u8
func extism_input_load_u8_(extismPointer) uint32
func extism_input_load_u8(p extismPointer) uint8 {
return uint8(extism_input_load_u8_(p))
}
//go:wasmimport extism:host/env input_load_u64
func extism_input_load_u64(extismPointer) uint64
//go:wasmimport extism:host/env output_set
func extism_output_set(extismPointer, uint64)
//go:wasmimport extism:host/env error_set
func extism_error_set(extismPointer)
//go:wasmimport extism:host/env config_get
func extism_config_get(extismPointer) extismPointer
//go:wasmimport extism:host/env var_get
func extism_var_get(extismPointer) extismPointer
//go:wasmimport extism:host/env var_set
func extism_var_set(extismPointer, extismPointer)
//go:wasmimport extism:host/env store_u8
func extism_store_u8_(extismPointer, uint32)
func extism_store_u8(p extismPointer, v uint8) {
extism_store_u8_(p, uint32(v))
}
//go:wasmimport extism:host/env load_u8
func extism_load_u8_(extismPointer) uint32
func extism_load_u8(p extismPointer) uint8 {
return uint8(extism_load_u8_(p))
}
//go:wasmimport extism:host/env store_u64
func extism_store_u64(extismPointer, uint64)
//go:wasmimport extism:host/env load_u64
func extism_load_u64(extismPointer) uint64
//go:wasmimport extism:host/env http_request
func extism_http_request(extismPointer, extismPointer) extismPointer
//go:wasmimport extism:host/env http_status_code
func extism_http_status_code() int32
//go:wasmimport extism:host/env log_info
func extism_log_info(extismPointer)
//go:wasmimport extism:host/env log_debug
func extism_log_debug(extismPointer)
//go:wasmimport extism:host/env log_warn
func extism_log_warn(extismPointer)
//go:wasmimport extism:host/env log_error
func extism_log_error(extismPointer)