joinmgr

package
v0.0.0-...-9648343 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package joinmgr implements channel JOIN management in an environment with connection pooling and a global rate-limit in JOIN commands.

XXX: WIP, partially implemented

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JM

type JM struct {
	// contains filtered or unexported fields
}

func New

func New(per15 int) *JM

func (*JM) Connected

func (jm *JM) Connected(con *conpool.Con)

func (*JM) Disconnected

func (jm *JM) Disconnected(con *conpool.Con, err error)

func (*JM) Join

func (jm *JM) Join(target string)

Join a channel, eventually.

func (*JM) Joined

func (jm *JM) Joined(con *conpool.Con, msg *conpool.Message)

func (*JM) Part

func (jm *JM) Part(target string)

Part a channel, eventually.

func (*JM) Parted

func (jm *JM) Parted(con *conpool.Con, msg *conpool.Message)

func (*JM) Run

func (jm *JM) Run(ctx context.Context, cpool *conpool.Pool, targets []string)

Run performs channel synchronization in the background until the context is completed.

Jump to

Keyboard shortcuts

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