irc

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandHandler

func CommandHandler(c *Client, cmd []string)

func RegistrationHandler

func RegistrationHandler(c *Client, cmd []string)

Types

type Client

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

func NewClient

func NewClient(conn net.Conn, botName, channelName string) *Client

type ClientHandler

type ClientHandler interface {
	Handle(c Client, cmd []string)
}

type Server

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

func NewServer

func NewServer(options *ServerOptions) (*Server, error)

func (*Server) Run

func (s *Server) Run()

func (*Server) SendAll

func (s *Server) SendAll(line string)

type ServerOptions

type ServerOptions struct {
	BotName string
	Channel string
}

Jump to

Keyboard shortcuts

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