pulsar

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(config *Config, opts ...Option) (pulsarclient.Client, error)

func NewLoggerWithZerolog

func NewLoggerWithZerolog(logger *zerolog.Logger) log.Logger

NewLoggerWithZerolog creates a new logger which wraps the given zerolog.Logger

Types

type ClientManager

type ClientManager interface {
	GetClient(string) pulsarclient.Client
}

func NewClientManager

func NewClientManager(configs []Config, opts ...Option) (ClientManager, error)

type Config

type Config struct {
	Name  string `json:"name"`
	URL   string `json:"url"`
	Token string `json:"token"`
}

type Option

type Option func(*options)

func WithLogger

func WithLogger(logger *zerolog.Logger) Option

Jump to

Keyboard shortcuts

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