reminds

package
v0.0.0-...-4080875 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2015 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Module *module.Module
)

Functions

This section is empty.

Types

type ChanNick

type ChanNick struct {
	Channel string
	Nick    string
}

type Message

type Message struct {
	From    string
	Message string

	Set    time.Time
	Expire time.Time
	// contains filtered or unexported fields
}

func ParseMessage

func ParseMessage(from, duration, msg string, timeN int) (*Message, error)

type Reminds

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

func NewReminds

func NewReminds() Reminds

func (*Reminds) Add

func (self *Reminds) Add(key ChanNick, msg *Message)

func (*Reminds) Copy

func (self *Reminds) Copy() map[ChanNick][]Message

func (*Reminds) Exit

func (self *Reminds) Exit() error

func (*Reminds) GetExpired

func (self *Reminds) GetExpired(key ChanNick) []*Message

func (*Reminds) Load

func (self *Reminds) Load(fileName string) error

func (*Reminds) Save

func (self *Reminds) Save(fileName string) error

func (*Reminds) Start

func (self *Reminds) Start() error

func (*Reminds) String

func (self *Reminds) String() string

Jump to

Keyboard shortcuts

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