wildfly

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2020 License: ISC Imports: 5 Imported by: 1

README

wildfly provides Go libraries and utilities using Wildfly's management HTTP API. It is not intended to be an all-encompassing library, instead providing enough to write command line utilities.

For a reference, see the godocs.

For example usage of the package, see cmd/check_wildflyfree.

Documentation

Overview

Package wildfly provides a read-only client of the Wildfly Management HTTP API. http://docs.wildfly.org/20/Admin_Guide.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*http.Client
	// contains filtered or unexported fields
}

Read-only client of the Wildfly Managment HTTP API. It should be created with NewClient.

func NewClient

func NewClient(host, user, pass string) Client

NewClient creates a new read-only client of the Wildfly server at host authenticated using user and pass the Wildfly's authentication mechanism: HTTP digest authentication (yuck).

func (*Client) StatMemory

func (c *Client) StatMemory() (MemUsage, error)

type MemUsage

type MemUsage struct {
	Used int
	Max  int
}

MemUsage represents the JVM's heap memory usage in bytes.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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