relaychat

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package relaychat implements the internet relay chat daemon service. RFC: https://tools.ietf.org/html/rfc1459

Index

Constants

This section is empty.

Variables

View Source
var ErrServiceClosed = errors.New("irc: Service closed")

ErrServiceClosed is returned by the Service's Serve method after a call to Shutdown.

Functions

This section is empty.

Types

type IRC

type IRC struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

IRC represents an IRC service in the application.

func New

func New(ctx context.Context, store *storage.Storage, pool pooling.Pool) *IRC

New IRC struct.

func (*IRC) Serve

func (i *IRC) Serve() error

Serve loop request direct messages from the IRC server. Serve returns an error.

func (*IRC) Shutdown added in v0.16.0

func (i *IRC) Shutdown() error

Shutdown shuts down the IRC service, it always retuan a nil error.

Jump to

Keyboard shortcuts

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