common

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ResourceOrgCenter = "monitor_org_center"
	ResourceRuntime   = "monitor_runtime"
	ResourceProject   = "monitor_project"
	ResourceOrgAlert  = "monitor_org_alert"
	ResourceNotify    = "notify"
)

permission resources

View Source
const (
	ResourceMonitor             string = "ResourceMonitor"
	ResourceMonitorTopology     string = "monitor_topology"
	ResourceReport              string = "report"
	ResourceMonitorProjectAlert string = "monitor_project_alert"
	ResourceMicroService        string = "microservice_metric"
)

monitor permission resources

Variables

This section is empty.

Functions

func InstanceID

func InstanceID() string

InstanceID .

Types

type ExtResponse

type ExtResponse struct {
	Success bool        `json:"success,omitempty"`
	Data    interface{} `json:"data,omitempty"`
	Err     *api.Error  `json:"err,omitempty"`
	UserIDs []string    `json:"userIDs,omitempty"`
	// contains filtered or unexported fields
}

ExtResponse .

func SuccessExt

func SuccessExt(data interface{}, userIDs []string, status ...int) *ExtResponse

SuccessExt .

func (*ExtResponse) Error

func (r *ExtResponse) Error(ctx httpserver.Context) error

Error .

func (*ExtResponse) ReadCloser

func (r *ExtResponse) ReadCloser(ctx httpserver.Context) io.ReadCloser

ReadCloser .

func (*ExtResponse) Response

func (*ExtResponse) Status

func (r *ExtResponse) Status(ctx httpserver.Context) int

Status .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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