wildfly – git.sr.ht/~otl/wildfly Index | Files | Directories

package wildfly

import "git.sr.ht/~otl/wildfly"

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

Index

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.

Source Files

doc.go wildfly.go

Directories

PathSynopsis
cmd
cmd/check_wildflyfree
Version
v0.1.0 (latest)
Published
Dec 22, 2020
Platform
linux/amd64
Imports
5 packages
Last checked
2 months ago

Tools for package owners.