api

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LivenessHandler func() int
View Source
var MonitorPrefix = "/m"
View Source
var ReadinessHandler func() int

Functions

func EnableComponents added in v1.0.2

func EnableComponents(srv *server.Server, components ...server.Component) (err error)

func EnableMonitors added in v1.6.4

func EnableMonitors(srv *server.Server) (err error)

func EnableStatic added in v1.0.2

func EnableStatic(srv *server.Server, assetFile func() http.FileSystem) (err error)

func Healthy added in v1.5.0

func Healthy(ctx iris.Context)

func Ready added in v1.5.0

func Ready(ctx iris.Context)

func Router added in v1.5.0

func Router(app *iris.Application)

func Server

func Server(conf server.Config) (srv *server.Server, err error)

func Start added in v1.0.2

func Start(ctx context.Context, srv *server.Server) (err error)

Types

type LogLevelReq added in v1.8.8

type LogLevelReq struct {
	Level string `json:"level,omitempty"`
}

Jump to

Keyboard shortcuts

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