apilist

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID              = "apilist"
	EnableByDefault = false
)
View Source
const (
	PropertiesPrefix = "management.endpoint.apilist"
)

Variables

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

Functions

func Register

func Register()

func StaticFS

func StaticFS(fs ...fs.FS)

Types

type ApiListEndpoint

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

ApiListEndpoint implements actuator.Endpoint, actuator.WebEndpoint

func (*ApiListEndpoint) Read

func (ep *ApiListEndpoint) Read(ctx context.Context, _ *struct{}) (interface{}, error)

Read never returns error

type FSType

type FSType int

type Properties

type Properties struct {
	StaticPath string `json:"static-path"`
}

func BindProperties

func BindProperties(ctx *bootstrap.ApplicationContext) Properties

BindProperties create and bind SessionProperties, with a optional prefix

func NewProperties

func NewProperties() *Properties

NewProperties create a Properties with default values

Jump to

Keyboard shortcuts

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