info

package
v1.45.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InfoBuilder

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

func (*InfoBuilder) WithDetail

func (i *InfoBuilder) WithDetail(key string, value any)

func (*InfoBuilder) WithDetails

func (i *InfoBuilder) WithDetails(details map[string]any)

type InfoContributor

type InfoContributor interface {
	Contribute(builder *InfoBuilder)
}

type InfoContributorOut

type InfoContributorOut struct {
	fx.Out
	InfoContributor InfoContributor `group:"info"`
}

type InfoContributorsOut

type InfoContributorsOut struct {
	fx.Out
	InfoContributors []InfoContributor `group:"info"`
}

type InfoService

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

func New

func New(log *zap.SugaredLogger, c infoContributors) *InfoService

func (*InfoService) AddInfoContributor

func (is *InfoService) AddInfoContributor(contributor InfoContributor)

AddInfoContributor a method to register an info contributor post DI lifecycle phase

func (*InfoService) GetInfoContent

func (is *InfoService) GetInfoContent() *map[string]any

Jump to

Keyboard shortcuts

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