eti

package
v0.0.0-...-c94f36e Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2014 License: BSD-2-Clause Imports: 20 Imported by: 0

Documentation

Index

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

func DBConnect

func DBConnect(addr, name string)

func New

func New() bbs.BBS

func Setup

func Setup(name, desc, realtimePath string)

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 *ETI) IsLoggedIn() bool

func (*ETI) List

func (client *ETI) List(m bbs.ListCommand) (ret bbs.ListMessage, err error)

func (*ETI) LogIn

func (eti *ETI) LogIn(m bbs.LoginCommand) bool

func (*ETI) LogOut

func (eti *ETI) LogOut(m bbs.LogoutCommand) bbs.OKMessage

func (*ETI) Post

func (client *ETI) Post(m bbs.PostCommand) (okm bbs.OKMessage, err error)

func (*ETI) Register

func (eti *ETI) Register(m bbs.RegisterCommand) (okm bbs.OKMessage, err error)

func (*ETI) Reply

func (client *ETI) Reply(m bbs.ReplyCommand) (okm bbs.OKMessage, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL