commit | a049ca15c62db6388d37dbdfde96bd741d9f074f | [log] [tgz] |
---|---|---|
author | Zhenxu Ke <kezhenxu94@apache.org> | Thu Apr 01 14:21:22 2021 +0800 |
committer | GitHub <noreply@github.com> | Thu Apr 01 14:21:22 2021 +0800 |
tree | 72b25235bc49de0fcd22851c4a9eeddfa358b33a | |
parent | 44170b5d980bacdd12ac295b390b86053b2da29c [diff] |
Add query protocol and documentation (#3)
This repository contains the Go files generated from the data collect protocol and the query protocol for convenient use.
You can use the following commands to install this module.
go get skywalking.apache.org/repo/goapi
To use the Go files generated from the data collect protocol, use the import path skywalking.apache.org/repo/goapi/collect
, for example,
package main
import (
"fmt"
"skywalking.apache.org/repo/goapi/collect/event/v3"
)
func main() {
event := &v3.Event{
Uuid: "",
Source: nil,
Name: "",
Type: 0,
Message: "",
Parameters: nil,
StartTime: 0,
EndTime: 0,
}
fmt.Printf("+%v", event)
}
To use the Go files generated from the query protocol, use the import path skywalking.apache.org/repo/goapi/query
, for example,
package main
import (
"fmt"
"skywalking.apache.org/repo/goapi/query"
)
func main() {
events := query.Events{
Events: nil,
Total: 0,
}
fmt.Printf("+%v", events)
}
To update this repo, update the commit sha in the dependencies.sh
file, and run make
to regenerate the Go files, then commit and open a pull request.