info

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID              = "info"
	EnableByDefault = true
)

Variables

View Source
var Module = &bootstrap.Module{
	Name:       "actuator-info",
	Precedence: actuator.MinActuatorPrecedence,
	Options: []fx.Option{
		fx.Invoke(register),
	},
}

Functions

func Register

func Register()

Types

type Info

type Info map[string]interface{}

type InfoEndpoint

type InfoEndpoint struct {
	actuator.WebEndpointBase
	// contains filtered or unexported fields
}

InfoEndpoint implements actuator.Endpoint, actuator.WebEndpoint

func (*InfoEndpoint) Read

func (ep *InfoEndpoint) Read(ctx context.Context, input *Input) (interface{}, error)

Read never returns error

type Input

type Input struct {
	Name string `uri:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳