dashboard

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dashboard

type Dashboard struct {
	Version string
	// contains filtered or unexported fields
}

Dashboard dashboard object

func New

func New(cfg *global.Configure, conn *conn.Conn, mgr *rule.Mgr, version string) *Dashboard

New create dashboard object

func (*Dashboard) Info

func (db *Dashboard) Info(w http.ResponseWriter, r *http.Request)

Info information data

func (*Dashboard) ListenAndServe

func (db *Dashboard) ListenAndServe(addr string, port uint16) error

ListenAndServe listen and serve http handler

func (*Dashboard) Render

func (db *Dashboard) Render(w http.ResponseWriter, r *http.Request)

Render render asset file

func (*Dashboard) Rules

func (db *Dashboard) Rules(w http.ResponseWriter, r *http.Request)

Rules get rule list

Jump to

Keyboard shortcuts

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