events

package
v3.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package events contains the internal events APi for the Console.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c Component, opts ...Option) web.Registerer

New returns an events API handler for the Console.

Types

type Component

type Component interface {
	task.Starter
	Context() context.Context
	RateLimiter() ratelimit.Interface
	GetBaseConfig(context.Context) config.ServiceBase
}

Component is the interface of the component to the events API handler.

type Option

type Option func(*eventsHandler)

Option configures the events API handler.

func WithSubscriber

func WithSubscriber(subscriber events.Subscriber) Option

WithSubscriber configures the Subscriber to use for events.

Directories

Path Synopsis
Package eventsmux implements the events mux.
Package eventsmux implements the events mux.
Package middleware implements the events middleware.
Package middleware implements the events middleware.
Package protocol implements the protocol for the events package.
Package protocol implements the protocol for the events package.
Package subscriptions implements the events mux subscriptions.
Package subscriptions implements the events mux subscriptions.

Jump to

Keyboard shortcuts

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