daemon

package
v0.0.0-...-6b328a2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: AGPL-3.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backlog

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

func NewBacklog

func NewBacklog(logdir string, address string) *Backlog

func (*Backlog) AddMessage

func (b *Backlog) AddMessage(msg *irc.Message) error

type ChannelMetadata

type ChannelMetadata struct {
	Active bool             // Are we currently in this channel?
	Nicks  map[string]int64 // map of nick -> last seen ts
	Topic  string
}

type Daemon

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

func New

func New(config *common.Config, net common.NetworkConfig) *Daemon

func (*Daemon) Start

func (d *Daemon) Start()

type IrcConnection

type IrcConnection struct {
	Data chan *irc.Message
	// contains filtered or unexported fields
}

func NewIrcConnection

func NewIrcConnection(config *common.DaemonConfig) *IrcConnection

func (*IrcConnection) Dial

func (c *IrcConnection) Dial(address string) error

func (*IrcConnection) Send

func (c *IrcConnection) Send(msg *irc.Message) error

func (*IrcConnection) Start

func (c *IrcConnection) Start()

type Metadata

type Metadata struct {
	Channels    map[string]*ChannelMetadata
	CurrentNick string
}

Jump to

Keyboard shortcuts

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