Versions in this module Expand all Collapse all v1 v1.21.0 Nov 18, 2026 Changes in this version + const DefaultMessageFetchingBackoff + const DefaultMessagesPrintingFrequency + const DefaultStreamExhaustionGracePeriod + func FormatMessage(msg IMessage) (s string, err error) + func FormatMessageWithOptions(msg IMessage, option ...FormatterOption) (s string, err error) + func NewMockNotificationFeedPage(ctx context.Context, hasNext, hasFuture bool) (f *client.NotificationFeed, err error) + func NewMockNotificationFeedPaginator(ctx context.Context) (pagination.IPaginatorAndPageFetcher, error) + func NewMockNotificationFeedStreamPaginator(ctx context.Context) (pagination.IStreamPaginatorAndPageFetcher, error) + type FormatterOption func(*FormatterOptions) *FormatterOptions + var WithSeverity FormatterOption = func(o *FormatterOptions) *FormatterOptions { ... } + var WithSource FormatterOption = func(o *FormatterOptions) *FormatterOptions { ... } + var WithTimeStamp FormatterOption = func(o *FormatterOptions) *FormatterOptions { ... } + type FormatterOptions struct + type IMessage interface + GetCtimeOk func() (*time.Time, bool) + GetMessageOk func() (*string, bool) + GetSeverityOk func() (*string, bool) + GetSourceOk func() (*string, bool) + type IMessageLogger interface + LogEmptyMessageError func() + LogMarshallingError func(rawMessage *any) + LogMessage func(msg IMessage) + LogMessagesCollection func(ctx context.Context, messagePaginator pagination.IGenericPaginator) error + func NewBasicAsynchronousMessageLogger(ctx context.Context, rawLogger logging.ILogger) (IMessageLogger, error) + func NewBasicAsynchronousMessageLoggerWithFormatter(ctx context.Context, rawLogger logging.ILogger, msgFormatter *MessageFormatter) (IMessageLogger, error) + func NewBasicSynchronousMessageLogger(ctx context.Context, rawLogger logging.ILogger) (IMessageLogger, error) + func NewBasicSynchronousMessageLoggerWithFormatter(ctx context.Context, rawLogger logging.ILogger, msgFormatter *MessageFormatter) (IMessageLogger, error) + func NewPeriodicAsynchronousMessageLogger(ctx context.Context, rawLogger logging.ILogger, printPeriod time.Duration) (IMessageLogger, error) + func NewPeriodicAsynchronousMessageLoggerWithFormatter(ctx context.Context, rawLogger logging.ILogger, printPeriod time.Duration, ...) (IMessageLogger, error) + func NewPeriodicSynchronousMessageLogger(ctx context.Context, rawLogger logging.ILogger, printPeriod time.Duration) (IMessageLogger, error) + func NewPeriodicSynchronousMessageLoggerWithFormatter(ctx context.Context, rawLogger logging.ILogger, printPeriod time.Duration, ...) (IMessageLogger, error) + type MessageFormatter struct + func DefaultMessageFormatter() *MessageFormatter + func NewMessageFormatter(option ...FormatterOption) *MessageFormatter + func (f *MessageFormatter) FormatMessage(msg IMessage) (s string, err error) + type MessageLoggerFactory struct + func NewMessageLoggerFactory(logger logging.ILogger, asynchronous bool, printingPeriod time.Duration) *MessageLoggerFactory + func NewMessageLoggerFactoryWithFormatter(logger logging.ILogger, asynchronous bool, printingPeriod time.Duration, ...) *MessageLoggerFactory + func NewMessageLoggerFactoryWithFormattingOptions(logger logging.ILogger, asynchronous bool, printingPeriod time.Duration, ...) *MessageLoggerFactory + func (f *MessageLoggerFactory) Create(ctx context.Context) (IMessageLogger, error) + type PaginatorFactory struct + func NewMockMessagePaginatorFactory(pageNumber int) *PaginatorFactory + func NewPaginatorFactory(runOutTimeOut, backoff time.Duration, ...) *PaginatorFactory + func (f *PaginatorFactory) Create(ctx context.Context, ...) (paginator pagination.IStreamPaginatorAndPageFetcher, err error) + func (f *PaginatorFactory) UpdateBackOffPeriod(backoff time.Duration) *PaginatorFactory + func (f *PaginatorFactory) UpdateRunOutTimeout(runOutTimeOut time.Duration) *PaginatorFactory Other modules containing this package github.com/ARM-software/embedded-development-services-client-utils/utils