Skip to content
Snippets Groups Projects
Unverified Commit a9a59a3a authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Breaking change - begin splitting things up better

parent 04bcb761
No related branches found
No related tags found
No related merge requests found
/*
Package ask provides routines to ask questions of users. It handles
getting a line of text, getting a choice from a liat and other things.
*/
package ask
// Package folders are all the routines and sql for managing folders.
package folders
import (
......
......@@ -146,7 +146,7 @@ CREATE TABLE mark (
CREATE TABLE access (
login VARCHAR(25) REFERENCES users(login) ON DELETE CASCADE ON UPDATE CASCADE,
folder VARCHAR(25) REFERENCES folders(name) ON DELETE CASCADE ON UPDATE CASCADE,
PRIMARY KEY (login, folder),
PRIMARY KEY (login, folder)
) WITHOUT ROWID;
--- TODO: The following is incomplete:
......@@ -161,6 +161,7 @@ CREATE TABLE config (
--- System configs.
CREATE TABLE system (
name VARCHAR(12) NOT NULL PRIMARY KEY,
default_expire INT NOT NULL DEFAULT -1,
expire_limit INT NOT NULL DEFAULT -1,
) WITHOUT ROWID;
expire_limit INT NOT NULL DEFAULT -1
);
/*
Package pager implements the pager. This is used for any large block of
text that bulletin needs to show.
*/
package pager
/*
Package storage handles storage for the bulletin system.
*/
package storage
/*
Package this has the current state of the running bulletin process.
Each bulletin process is run by a single user. The `this` package
tracks the current user state - it has the user login, the current
folder, the current message id and other things.
TODO: Eventually `this` will need to handle broadcast messages.
*/
package this
// Package accounts manages accounts.
package accounts
// Package users manages accounts.
package users
import (
"errors"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment