Documentation
¶
Overview ¶
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NotificationHandlerWithCancellation ¶
type NotificationHandlerWithCancellation struct {
// contains filtered or unexported fields
}
NotificationHandlerWithCancellation wraps NotificationHandler with a cancellation context.
func NewNotificationHandlerWithCancellation ¶
func NewNotificationHandlerWithCancellation(ctx context.Context) *NotificationHandlerWithCancellation
NewNotificationHandlerWithCancellation creates a new instance of NotificationHandlerWithCancellation.
func (*NotificationHandlerWithCancellation) RegisterHandler ¶
func (n *NotificationHandlerWithCancellation) RegisterHandler(message ipc.Message, handler func() error)
RegisterHandler register a message handler
func (*NotificationHandlerWithCancellation) Start ¶
func (n *NotificationHandlerWithCancellation) Start() error
Start starts the handler in a separate go routine.
func (*NotificationHandlerWithCancellation) Stop ¶
func (n *NotificationHandlerWithCancellation) Stop()
Stop the handler.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.