Documentation ¶
Index ¶
- type Channel
- type DB
- func (db *DB) Close() error
- func (db *DB) DeleteChannel(id int64) error
- func (db *DB) DeleteNetwork(id int64) error
- func (db *DB) DeleteUser(id int64) error
- func (db *DB) GetUser(username string) (*User, error)
- func (db *DB) ListChannels(networkID int64) ([]Channel, error)
- func (db *DB) ListDeliveryReceipts(networkID int64) ([]DeliveryReceipt, error)
- func (db *DB) ListNetworks(userID int64) ([]Network, error)
- func (db *DB) ListUsers() ([]User, error)
- func (db *DB) StoreChannel(networkID int64, ch *Channel) error
- func (db *DB) StoreClientDeliveryReceipts(networkID int64, client string, receipts []DeliveryReceipt) error
- func (db *DB) StoreNetwork(userID int64, network *Network) error
- func (db *DB) StoreUser(user *User) error
- type DeliveryReceipt
- type Identd
- type Logger
- type MessageFilter
- type Network
- type SASL
- type Server
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct { ID int64 Name string Key string Detached bool DetachedInternalMsgID string RelayDetached MessageFilter ReattachOn MessageFilter DetachAfter time.Duration DetachOn MessageFilter }
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) DeleteChannel ¶
func (*DB) DeleteNetwork ¶
func (*DB) DeleteUser ¶
func (*DB) ListDeliveryReceipts ¶
func (db *DB) ListDeliveryReceipts(networkID int64) ([]DeliveryReceipt, error)
func (*DB) StoreClientDeliveryReceipts ¶
func (db *DB) StoreClientDeliveryReceipts(networkID int64, client string, receipts []DeliveryReceipt) error
type DeliveryReceipt ¶
type Identd ¶
type Identd struct {
// contains filtered or unexported fields
}
Identd implements an ident server, as described in RFC 1413.
type Logger ¶
type Logger interface { Print(v ...interface{}) Printf(format string, v ...interface{}) }
type MessageFilter ¶
type MessageFilter int
const ( // TODO: use customizable user defaults for FilterDefault FilterDefault MessageFilter = iota FilterNone FilterHighlight FilterMessage )
type Network ¶
type Network struct { ID int64 Name string Addr string Nick string Username string Realname string Pass string ConnectCommands []string SASL SASL }
func (*Network) GetRealname ¶
func (*Network) GetUsername ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.