gocc

package module
v0.0.0-...-2643bdd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

README

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new CruiseControl client with the supplied options

Types

This section is empty.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL