Documentation ¶
Index ¶
Constants ¶
View Source
const ( SessionModeTransit = iota SessionModeReader )
Variables ¶
View Source
var ( Capabilities = protocol.Capabilities{ {Type: protocol.VersionCapability, Params: "2"}, {Type: protocol.ImplementationCapability, Params: fmt.Sprintf("%s %s", common.ServerName, common.ServerVersion)}, {Type: protocol.OverCapability, Params: "MSGID"}, {Type: protocol.ModeReaderCapability}, {Type: protocol.IHaveCapability}, } )
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(b backend.StorageBackend, serverDomain, uploadPath string) *Handler
type NNTPServer ¶
type NNTPServer struct {
// contains filtered or unexported fields
}
func NewNNTPServer ¶
func NewNNTPServer(cfg config.Config) (*NNTPServer, error)
func (*NNTPServer) Start ¶
func (ns *NNTPServer) Start() error
func (*NNTPServer) Stop ¶
func (ns *NNTPServer) Stop()
type SessionMode ¶
type SessionMode int
Click to show internal directories.
Click to hide internal directories.