irchuubase

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindUser

func FindUser(name string, db *sql.DB) (id int, foundName string, err error)

func GetMessages

func GetMessages(db *sql.DB, n int) ([]relay.Message, error)

GetMessages gets n last messages and returns them in a slice of relay.Message.

func Init

func Init(dbURI string) *sql.DB

Init creates tables needed for IRChuu and returns true on success.

func Log

func Log(msg relay.Message, db *sql.DB, logger *log.Logger)

Log inserts a message into the DB.

Types

This section is empty.

Jump to

Keyboard shortcuts

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