- Documentation
Torch Log Service
SDK reference
Go SDK
Import Kafka data using the Go SDK
Go SDK
Import Kafka data using the Go SDK
Import Kafka data using the Go SDK
TLS supports importing Kafka data via the SDK. This document demonstrates how to import data from Kafka into TLS using sample code with the Go SDK.
- TLS Go SDK has been installed. For more information, see Install Go SDK.
- The following commands have been executed to install the proto dependency package.
- The VOLCENGINE_ACCESS_KEY_ID and other environment variables have been added. For details on the environment variable configuration method, please refer to Configure authentication information.
warning
It is recommended to use environment variables to dynamically obtain Volcengine keys and other authentication information in order to avoid data security risks caused by hardcoding AccessKey.
This document uses sample code to demonstrate how to use the GO SDK to create a Kafka data import task in a specified project. For related feature overview, important notes, and cost details, please refer to Import data from Kafka. - After you send an API request through the SDK, you will receive a response from the server. If the response contains a status code other than 200, it indicates that the API call has failed. You can refer to the documentation for each API to view the corresponding error code information.
- The APIs related to data import tasks are as follows. You can refer to the API documentation to view detailed information about the corresponding interface.
Last updated: 2025.10.11 16:44:08