client

package
v0.0.0-...-cd8f91f Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JolokiaRequestTypeRead = "read"
	JolokiaRequestTypeExec = "exec"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClient

type FakeClient struct {
	Response []byte
	Error    error
}

Fake client for testing nodetool. Will respond with given response and error.

func (*FakeClient) Do

func (c *FakeClient) Do(request interface{}) ([]byte, error)

type Interface

type Interface interface {
	Do(interface{}) ([]byte, error)
}

func New

func New(baseURL *url.URL, c *http.Client) Interface

type JolokiaExecRequest

type JolokiaExecRequest struct {
	Type      string   `json:"type"`
	MBean     string   `json:"mbean"`
	Operation string   `json:"operation"`
	Arguments []string `json:"arguments"`
}

type JolokiaReadRequest

type JolokiaReadRequest struct {
	Type      string   `json:"type"`
	MBean     string   `json:"mbean"`
	Attribute []string `json:"attribute"`
}

type JolokiaResponse

type JolokiaResponse struct {
	Value interface{} `json:"value"`
}

type StorageService

type StorageService struct {
	HostIdMap        map[string]uuid.UUID `json:""`
	LiveNodes        []string             `json:""`
	UnreachableNodes []string             `json:""`
	LeavingNodes     []string             `json:""`
	JoiningNodes     []string             `json:""`
	MovingNodes      []string             `json:""`
	LocalHostId      uuid.UUID            `json:""`
	ReleaseVersion   *version.Version     `json:""`
	OperationMode    string               `json:""`
}

Jump to

Keyboard shortcuts

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