Categorygithub.com/caliahub/easyops-client-go
repositorypackage
0.0.1
Repository: https://github.com/caliahub/easyops-client-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

easyops-go-sdk

Go Report Card

优维DevOps平台Go SDK,简单易用,方便Go开发人员通过openapi快速接入Easyops

快速开始

引入依赖包

go get github.com/caliahub/[email protected]

使用(示例)

package main

import (
	"fmt"
	openapi "github.com/caliahub/easyops-client-go"
	"github.com/caliahub/easyops-client-go/flowable"
)

func main() {
	// config
	config := &openapi.Config{
		AccessKey: openapi.String("xxx"),
		SecretKey: openapi.String("xxx"),
		Host:      openapi.String("xxx"),
	}
	
	// create client 
	client := flowable.NewClient(config)
	
	// request
	resp, err := client.GetProcessInstance("xxx")
	if err != nil {
		return
	}
	fmt.Println(resp)
}

接口文档