irc

package
v0.0.0-...-d24fe34 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(mux *http.ServeMux)

Types

type Client

type Client struct {
	*textproto.Conn
	// contains filtered or unexported fields
}

func NewClient

func NewClient(server, nick string) (c *Client, err error)

func (*Client) HandleEvent

func (cli *Client) HandleEvent(command, prefix string, args []string)

func (*Client) ReadLines

func (cli *Client) ReadLines() error

func (*Client) Send

func (cli *Client) Send(cmd string, args ...interface{})

type Event

type Event struct {
	Line    string `json:"line,omitempty"`
	Message string `json:"system,omitempty"`
}

type Form

type Form struct {
	Nick, Chan, Serv string
}

Jump to

Keyboard shortcuts

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