Apache SkyWalking API in Golang.

Clone this repo:

Branches

  1. 01fe14e Merge pull request #4 from CalvinKirs/patch-1 by 吴晟 Wu Sheng · 3 weeks ago main
  2. 6c6aa85 Update NOTICE year to 2021 by Kirs · 3 weeks ago
  3. a049ca1 Add query protocol and documentation (#3) by Zhenxu Ke · 6 weeks ago
  4. 44170b5 Use customized domain name import (#2) by Zhenxu Ke · 6 weeks ago
  5. 7b9b842 Add scripts to update and commit the first version (#1) by Zhenxu Ke · 6 weeks ago

SkyWalking Go APIs

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

Data Collect Protocol

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)
}

Query Protocol

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)
}

Development

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.