irchuubase

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: BSD-3-Clause Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close added in v0.10.0

func Close() error

func FindUser

func FindUser(name string) (id int, foundName string, err error)

func GetMessages

func GetMessages(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)

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

func IsAvailable added in v0.10.0

func IsAvailable() bool

IsAvailable checks whether database functionality is available.

func Log

func Log(msg relay.Message, 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