Expand description
C-compatible FFI bindings for geneva-uploader
Structs§
- Encoded
Batches Handle - Opaque handle holding encoded batches
- Geneva
Cert Auth Config - Configuration for certificate auth (valid only when auth_method == 1)
- Geneva
Client Handle - Opaque handle for GenevaClient
- Geneva
Config - Configuration structure for Geneva client (C-compatible, tagged union)
- Geneva
User Managed Identity Auth Config - Configuration for User-assigned Managed Identity by client ID (valid only when auth_method == 3)
- Geneva
User Managed Identity ByObject IdAuth Config - Configuration for User-assigned Managed Identity by object ID (valid only when auth_method == 4)
- Geneva
User Managed Identity ByResource IdAuth Config - Configuration for User-assigned Managed Identity by resource ID (valid only when auth_method == 5)
- Geneva
Workload Identity Auth Config - Configuration for Workload Identity auth (valid only when auth_method == 2)
Enums§
- Geneva
Error - Error codes returned by FFI functions TODO: Use cbindgen to auto-generate geneva_errors.h from this enum to eliminate duplication
Functions§
- geneva_
batches_ ⚠free - Frees encoded batches handle
- geneva_
batches_ ⚠len - Returns the number of batches in the encoded batches handle
- geneva_
client_ ⚠free - Safety
- geneva_
client_ ⚠new - Creates a new Geneva client with explicit result semantics (no TLS needed).
- geneva_
encode_ ⚠and_ compress_ logs - Encode and compress logs into batches (synchronous)
- geneva_
encode_ ⚠and_ compress_ spans - Encode and compress spans into batches (synchronous)
- geneva_
upload_ ⚠batch_ sync - Uploads a specific batch synchronously