Documentation ¶
Index ¶
- Variables
- func AddToChannel(channelName string, username string) error
- func BackwardFileRead(path string, count int) []string
- func CreateChannel(channelName string) error
- func CreateUser(username string, password string) error
- func DeleteChannel(channelName string) error
- func DeleteUser(username string) error
- func GetChannelMessages(channelName string, amount int) ([]string, error)
- func OpenDatabase(rootPath string)
- func RemoveFromChannel(channelName string, username string) error
- func SaveMessage(channelName string, message string)
- type Channel
- type DatabasePaths
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Paths DatabasePaths Users []User Channels []Channel )
Functions ¶
func AddToChannel ¶
func BackwardFileRead ¶
func CreateChannel ¶
func CreateUser ¶
func DeleteChannel ¶
func DeleteUser ¶
func OpenDatabase ¶
func OpenDatabase(rootPath string)
func RemoveFromChannel ¶
func SaveMessage ¶
Types ¶
type Channel ¶
func GetChannel ¶
type DatabasePaths ¶
Click to show internal directories.
Click to hide internal directories.