api

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 10 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

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

func EnableMonitors

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

func EnableStatic

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

func Healthy

func Healthy(ctx iris.Context)

func JwtTokenVerify

func JwtTokenVerify(ctx iris.Context)

func Ready

func Ready(ctx iris.Context)

func Router

func Router(app *iris.Application)

func Server

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

func Start

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

Types

type LogLevelReq

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

type Resp

type Resp struct {
	Code    int    `json:"code,omitempty"`
	Message string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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