types

package
v0.0.0-...-8cead45 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advise

type Advise interface {
	GetDescription() string
	GetResolvers() []resolvers.Resolver
}

type DefaultAdvise

type DefaultAdvise struct {
	Description string
	Resolvers   []resolvers.Resolver
}

func (*DefaultAdvise) GetDescription

func (da *DefaultAdvise) GetDescription() string

func (*DefaultAdvise) GetResolvers

func (da *DefaultAdvise) GetResolvers() []resolvers.Resolver

type DefaultDiagnosticReport

type DefaultDiagnosticReport struct {
	Symptom []Symptom
}

func (*DefaultDiagnosticReport) Add

func (ddr *DefaultDiagnosticReport) Add(syms []Symptom)

func (*DefaultDiagnosticReport) GetSymptom

func (ddr *DefaultDiagnosticReport) GetSymptom() []Symptom

func (*DefaultDiagnosticReport) Print

func (ddr *DefaultDiagnosticReport) Print()

type DefaultMetricsSection

type DefaultMetricsSection struct {
	Name    string
	Metrics map[string]string
}

func (*DefaultMetricsSection) Find

func (dms *DefaultMetricsSection) Find(name string) string

func (*DefaultMetricsSection) GetName

func (dms *DefaultMetricsSection) GetName() string

func (*DefaultMetricsSection) List

func (dms *DefaultMetricsSection) List() map[string]string

type DefaultSymptom

type DefaultSymptom struct {
	Name        string
	Description string
	Advises     []Advise
}

func (*DefaultSymptom) GetAdviseDescriptions

func (ds *DefaultSymptom) GetAdviseDescriptions() []string

func (*DefaultSymptom) GetAdvises

func (ds *DefaultSymptom) GetAdvises() []Advise

func (*DefaultSymptom) GetDescription

func (ds *DefaultSymptom) GetDescription() string

func (*DefaultSymptom) GetName

func (ds *DefaultSymptom) GetName() string

type DiagnosticReport

type DiagnosticReport interface {
	GetSymptom() []Symptom
	Print()
}

type Manager

type Manager interface {
	Empty() bool
	Start(name ...string)
}

type MetricsSection

type MetricsSection interface {
	GetName() string
	List() map[string]string
	Find(name string) string
}

type Symptom

type Symptom interface {
	GetDescription() string
	GetName() string
	GetAdvises() []Advise
	GetAdviseDescriptions() []string
}

func CreateTextDefaultSymptom

func CreateTextDefaultSymptom(name, desc string, adviseDescriptions []string) Symptom

Jump to

Keyboard shortcuts

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