common

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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