raw

package
v0.0.0-...-df918ef Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: ISC Imports: 2 Imported by: 0

Documentation

Overview

Package raw provides an event.Handler implementation that intercepts all incoming IRC messages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler is a simple MessageHandler implementation that simply passes the message along

func (*Handler) AddCallback

func (r *Handler) AddCallback(f func(msg *event.Message) error) int

AddCallback adds a callback to RawHandler's callback list

func (*Handler) OnMessage

func (r *Handler) OnMessage(msg *event.Message) error

OnMessage is the main interface to this Handler. It implements client.MessageHandler

func (*Handler) RemoveCallback

func (r *Handler) RemoveCallback(id int)

RemoveCallback removes the callback specified by id, if it exists.

Jump to

Keyboard shortcuts

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