Documentation ¶
Index ¶
- Constants
- Variables
- func DBConnect(addr, name string)
- func New() bbs.BBS
- func Setup(name, desc, realtimePath string)
- type ETI
- func (eti *ETI) BookmarkList(m bbs.ListCommand) (bmm bbs.BookmarkListMessage, err error)
- func (client *ETI) Get(m bbs.GetCommand) (t bbs.ThreadMessage, err error)
- func (eti *ETI) Hello() bbs.HelloMessage
- func (eti *ETI) IsLoggedIn() bool
- func (client *ETI) List(m bbs.ListCommand) (ret bbs.ListMessage, err error)
- func (eti *ETI) LogIn(m bbs.LoginCommand) bool
- func (eti *ETI) LogOut(m bbs.LogoutCommand) bbs.OKMessage
- func (client *ETI) Post(m bbs.PostCommand) (okm bbs.OKMessage, err error)
- func (eti *ETI) Register(m bbs.RegisterCommand) (okm bbs.OKMessage, err error)
- func (client *ETI) Reply(m bbs.ReplyCommand) (okm bbs.OKMessage, err error)
Constants ¶
View Source
const ETITopicsPerPage = 50.0
Variables ¶
View Source
var AllPosts = bbs.Range{1, 5000}
View Source
var DefaultRange = bbs.Range{1, 50}
View Source
var Hello = bbs.HelloMessage{ Command: "hello", Name: "ETI Relay", ProtocolVersion: 0, Description: "End of the Internet -> BBS Relay", Options: []string{"tags", "avatars", "usertitles", "filter", "signatures", "range", "bookmarks"}, Access: bbs.AccessInfo{ GuestCommands: []string{"hello", "login", "logout"}, UserCommands: []string{"get", "list", "post", "reply", "info"}, }, Formats: []string{"html", "text"}, Lists: []string{"thread", "bookmark"}, ServerVersion: "eti-relay 0.2", IconURL: "/static/eti.png", DefaultRange: DefaultRange, }
Functions ¶
Types ¶
type ETI ¶
type ETI struct { HTTPClient *http.Client Username string // contains filtered or unexported fields }
func (*ETI) BookmarkList ¶
func (eti *ETI) BookmarkList(m bbs.ListCommand) (bmm bbs.BookmarkListMessage, err error)
func (*ETI) Get ¶
func (client *ETI) Get(m bbs.GetCommand) (t bbs.ThreadMessage, err error)
func (*ETI) Hello ¶
func (eti *ETI) Hello() bbs.HelloMessage
func (*ETI) IsLoggedIn ¶
func (*ETI) List ¶
func (client *ETI) List(m bbs.ListCommand) (ret bbs.ListMessage, err error)
Click to show internal directories.
Click to hide internal directories.