...

Package common

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

Overview ▾

func Register

func Register(r *gin.RouterGroup, s *Service)

Register mounts our HTTP handler on the mux.

type Service

Service defines a handler service for cluster common objects.

type Service struct {
    // contains filtered or unexported fields
}

func NewService

func NewService(
    conf *config.ChaosDashboardConfig,
    kubeCli client.Client,
    logger logr.Logger,
) *Service

NewService returns an experiment service instance.