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
Click to show internal directories.
Click to hide internal directories.