core

package
v0.0.0-...-3b4effe Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a structure to manage context information about the client

func NewClient

func NewClient(endpoint *url.URL, verbose bool) *Client

NewClient creates a new client to make requests to spring boot logger endpoints

func (Client) EditLoggers

func (client Client) EditLoggers(filter string, newLevel string) (int, error)

EditLoggers sets all the available loggers published by the actuator which begins by the logger string with the provided level

func (Client) ListLoggers

func (client Client) ListLoggers(filter string) (data.Loggers, error)

ListLoggers gets all the available loggers published by the actuator which begins by the logger string

type Requests

type Requests struct {
	// contains filtered or unexported fields
}

Requests encapsulates all the REST interaction with the endpoint

func NewRequests

func NewRequests(endpoint *url.URL, verbose bool) *Requests

NewRequests creates a new struct to manage actuator requests

func (Requests) Edit

func (requests Requests) Edit(logger string, loggerLevel data.LoggerLevel) error

Edit make the list request for the actuator

func (Requests) List

func (requests Requests) List() (*data.ActuatorData, error)

List make the list request for the actuator

Jump to

Keyboard shortcuts

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