workspace

package
v0.0.0-...-7c3836c Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidArgument       = errors.New("invalid argument")
	ErrProclaimParamsRefused = errors.New("参数校验未通过.")
)

Functions

func MakeHandler

func MakeHandler(svc Service, logger kitlog.Logger) http.Handler

Types

type Service

type Service interface {
	// 工作台 当前空间的CPU及内存使用
	Metrice(ctx context.Context, ns string) (res map[string]interface{}, err error)
	Active(ctx context.Context) (res []map[string]interface{}, err error)
}

func NewLoggingService

func NewLoggingService(logger log.Logger, s Service) Service

func NewService

func NewService(logger log.Logger, cf *config.Config, build repository.BuildRepository) Service

Jump to

Keyboard shortcuts

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