Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
Authenticator verifies BBS credentials (satisfied by *user.UserMgr).
type Deps ¶
type Deps struct {
Config config.QWKAPIConfig
ConfigDir string // where auto TLS certs live
Users Authenticator
Service PacketService
AuthorizeFor func(u *user.User) func(area *message.MessageArea) bool
}
Deps are the collaborators the API server needs.
type PacketService ¶
type PacketService interface {
BuildPacket(opts qwkservice.ExportOptions) (*qwkservice.ExportResult, error)
CommitExport(handle string, res *qwkservice.ExportResult)
ImportREP(data []byte, opts qwkservice.ImportOptions) (*qwkservice.ImportResult, error)
}
PacketService is the subset of *qwkservice.Service the API needs.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the QWK packet transport API.
Click to show internal directories.
Click to hide internal directories.