client

package
v0.5.32 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(c Config, conn channel.WriteFlusher, binaryWriter channel.BinaryWriter, errs chan<- Error) *Client

func (*Client) Bot

func (c *Client) Bot() bool

func (*Client) Channels

func (c *Client) Channels() []string

func (*Client) Name

func (c *Client) Name() string

func (*Client) Queue

func (c *Client) Queue(job Job)

func (*Client) Run

func (c *Client) Run()

func (*Client) Stop

func (c *Client) Stop()

type Config

type Config struct {
	FrameWriter bool
	Proto       channel.Proto
	Name        string
	Channels    []string
	JobBuffer   int
}

type Error

type Error struct {
	Client *Client
	Err    error
}

type Job

type Job struct {
	WG      *sync.WaitGroup
	Channel string
	Msgs    []channel.Msg
}

Jump to

Keyboard shortcuts

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