Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultClientTimeout = 30 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PulsarContext ¶
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 (*Session) GetAdminV3Client ¶ added in v0.1.11
func (*Session) GetPulsarClient ¶ added in v0.1.11
func (*Session) SetPulsarContext ¶ added in v0.1.11
func (s *Session) SetPulsarContext(ctx PulsarContext) error
Click to show internal directories.
Click to hide internal directories.