...

Package apiserver

import "github.com/chaos-mesh/chaos-mesh/pkg/dashboard/apiserver"
Overview
Index
Subdirectories

Overview ▾

Index ▾

Package files

handler.go server.go

Variables

var (
    // Module includes the providers (gin engine and api router) and the registers.
    Module = fx.Options(
        fx.Provide(
            newEngine,
            newAPIRouter,
        ),
        handlerModule,
        fx.Provide(func() prometheus.Registerer {
            return controllermetrics.Registry
        }),
        fx.Invoke(metrics.NewChaosDashboardMetricsCollector),
        fx.Invoke(register),
    )
)

Subdirectories