百度智能云

All Product Document

          Log Service

          Install the SDK Package

          Runtime environment

          Go SDK can run in go 1.3 or higher.

          Install SDK

          Directly download from github

          Use go get to download from GitHub:

          go get github.com/baidubce/bce-sdk-go

          SDK directory structure

          bce-sdk-go
           |--auth                   //BCE signature and authorization
           |--bce                    //BCE Common basic components
           |--http                   //HTTP communication module for BCE
           |--Services               //BCE Related Service Catalog
           |  |--bls                 //BLS service directory
           |  |  |--client.go        //BLS Client Entry Point
           |  |  |--api              //BLS-related API directory
           |  |     |--fastquery.go  //BLS FastQuery-related API implementation
           |  |     |--index.go      //BLS index-related API implementation
           |  |     |--logrecord.go  //BLS logrecord-related API implementation
           |  |     |--logshipper.go //BLS logshipper-related API implementation
           |  |     |--logstore.go   //BLS logstore-related API implementation
           |  |     |--logstream.go  //BLS logstream-related API implementation
           |  |     |--model.go      //Data Models for BLS-related APIs
           |  |     |--util.go       //Tools for BLS-related API implementation
           |  |--sts                 //STS Service Catalog
           |--util                   //BCE Common Tool Implementation

          Uninstall SDK

          To uninstall SDK, delete the downloaded source code directly.

          Previous
          Initialization
          Next
          Project Operations