Skip to content

A golang REST-client library for LinkedIn's Cruise Control

License

Notifications You must be signed in to change notification settings

tinyzimmer/go-cruise-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-cruise-control

A go REST-client library for LinkedIn's Cruise Control.

Basic Usage

package main

import (
	"fmt"

	gocc "github.com/tinyzimmer/go-cruise-control"
	"github.com/tinyzimmer/go-cruise-control/pkg/types"
)

func main() {
	client, err := gocc.New(&types.ClientOptions{
		URL: "http://localhost:8090",
	})
	if err != nil {
		panic(err)
	}
	res, err := client.GetState(types.GetStateDefaults())
	if err != nil {
		panic(err)
	}
	fmt.Println(res.MonitorState.State)
}

About

A golang REST-client library for LinkedIn's Cruise Control

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages