message

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditKeyProtoBuilder

type AuditKeyProtoBuilder struct {
	AuditResult  []*protocol.AuditReport
	Audit        *job.Audit
	ProfileStore protocol.ProfileStore
}

func (*AuditKeyProtoBuilder) Build

func (a *AuditKeyProtoBuilder) Build() (proto.Message, error)

type AuditValueProtoBuilder

type AuditValueProtoBuilder struct {
	AuditResult  []*protocol.AuditReport
	Audit        *job.Audit
	ProfileStore protocol.ProfileStore
}

func (*AuditValueProtoBuilder) Build

func (a *AuditValueProtoBuilder) Build() (proto.Message, error)

type ProfileKeyProtoBuilder

type ProfileKeyProtoBuilder struct {
	Metrics []*metric.Metric
	Profile *job.Profile
}

func (*ProfileKeyProtoBuilder) Build

func (p *ProfileKeyProtoBuilder) Build() (proto.Message, error)

type ProfileValueProtoBuilder

type ProfileValueProtoBuilder struct {
	Metrics       []*metric.Metric
	Profile       *job.Profile
	MetadataStore protocol.MetadataStore
}

func (*ProfileValueProtoBuilder) Build

type Provider

type Provider struct {
	KeyBuilder   protocol.ProtoBuilder
	ValueBuilder protocol.ProtoBuilder
}

func (*Provider) Get

func (p *Provider) Get() (*protocol.Message, error)

type ProviderFactory

type ProviderFactory struct {
	ProfileStore  protocol.ProfileStore
	MetadataStore protocol.MetadataStore
}

func NewProviderFactory

func NewProviderFactory(profileStore protocol.ProfileStore, metadataStore protocol.MetadataStore) *ProviderFactory

func (*ProviderFactory) CreateAuditMessage

func (d *ProviderFactory) CreateAuditMessage(audit *job.Audit, auditResults []*protocol.AuditReport) []protocol.MessageProvider

func (*ProviderFactory) CreateProfileMessage

func (d *ProviderFactory) CreateProfileMessage(profile *job.Profile, metrics []*metric.Metric) []protocol.MessageProvider

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳