core

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCotainer

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

BaseCotainer 基础容器

func NewBaseCotainer

func NewBaseCotainer() *BaseCotainer

NewBaseCotainer 创建基础容器

func (*BaseCotainer) Config

func (b *BaseCotainer) Config() *config.JSON

Config JSON配置

func (*BaseCotainer) Metrics added in v0.1.3

func (b *BaseCotainer) Metrics() *container.Metrics

Metrics 指标

func (*BaseCotainer) SetConfig

func (b *BaseCotainer) SetConfig(conf *config.JSON)

SetConfig 设置JSON配置

func (*BaseCotainer) SetMetrics added in v0.1.3

func (b *BaseCotainer) SetMetrics(metrics *container.Metrics)

SetMetrics 设置指标

type Container

type Container interface {
	Start() error
	Metrics() *container.Metrics
}

Container 容器

Directories

Path Synopsis
statistics
transport

Jump to

Keyboard shortcuts

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