pulsar

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultClientTimeout = 30 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PulsarContext

type PulsarContext struct {
	ServiceURL                    string
	WebServiceURL                 string
	Token                         string
	AuthPlugin                    string
	AuthParams                    string
	TLSAllowInsecureConnection    bool
	TLSEnableHostnameVerification bool
	TLSTrustCertsFilePath         string
	TLSCertFile                   string
	TLSKeyFile                    string
}

type Session added in v0.1.11

type Session struct {
	Ctx             PulsarContext
	Client          pulsar.Client
	AdminClient     cmdutils.Client
	AdminV3Client   cmdutils.Client
	ClientOptions   pulsar.ClientOptions
	PulsarCtlConfig *cmdutils.ClusterConfig
	// contains filtered or unexported fields
}

Session represents a Pulsar session

func NewSession added in v0.1.11

func NewSession(ctx PulsarContext) (*Session, error)

NewSession creates a new Pulsar session with the given context This function dynamically constructs clients without relying on global state

func (*Session) GetAdminClient added in v0.1.11

func (s *Session) GetAdminClient() (cmdutils.Client, error)

func (*Session) GetAdminV3Client added in v0.1.11

func (s *Session) GetAdminV3Client() (cmdutils.Client, error)

func (*Session) GetPulsarClient added in v0.1.11

func (s *Session) GetPulsarClient() (pulsar.Client, error)

func (*Session) SetPulsarContext added in v0.1.11

func (s *Session) SetPulsarContext(ctx PulsarContext) error

Jump to

Keyboard shortcuts

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