Documentation
¶
Overview ¶
Package batch contains both interactive and non-interactive maintenence commands.
The interactive batch commands are as follows:
- `install` does the initial install for bulletin. This will create and seed the database and create the initial user. It will also create the user's crontab entries.
- `new-user` creates a new user.
The non-interactive batch commands are run from the user's crontab.
- `reboot` is supposed to be run on system reboot and will delete all shutdown messages.
- `expire` removes all expired messages and deletes broadcast messages older than 3 days.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUser ¶
NewUser creates a new user based on command line arguments.
Types ¶
type SeedMessage ¶
SeedMessage is the struct version of the messages.
func GetSeedMessages ¶
func GetSeedMessages() ([]SeedMessage, error)
GetSeedMessages gets the embedded seed messages and returns them in a data structure.
Source Files
¶
- batch.go
- file.go
- messages.go
Click to show internal directories.
Click to hide internal directories.