2022-01-17 22:38:56 +00:00
|
|
|
package protocol
|
|
|
|
|
2022-01-18 15:04:20 +00:00
|
|
|
const (
|
|
|
|
CRLF = "\r\n"
|
|
|
|
MultilineEnding = "."
|
|
|
|
)
|
|
|
|
|
2022-01-17 22:38:56 +00:00
|
|
|
const (
|
|
|
|
CommandCapabilities = "CAPABILITIES"
|
|
|
|
CommandQuit = "QUIT"
|
|
|
|
CommandDate = "DATE"
|
|
|
|
CommandMode = "MODE"
|
|
|
|
CommandList = "LIST"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2022-01-18 15:04:20 +00:00
|
|
|
CapabilityNameVersion = "VERSION"
|
|
|
|
CapabilityNameReader = "READER"
|
|
|
|
CapabilityNameIHave = "IHAVE"
|
|
|
|
CapabilityNamePost = "POST"
|
|
|
|
CapabilityNameNewNews = "NEWNEWS"
|
|
|
|
CapabilityNameHdr = "HDR"
|
|
|
|
CapabilityNameOver = "OVER"
|
|
|
|
CapabilityNameList = "LIST"
|
|
|
|
CapabilityNameImplementation = "IMPLEMENTATION"
|
|
|
|
CapabilityNameModeReader = "MODE-READER"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
MessageNNTPServiceReadyPostingProhibited = "201 YANS NNTP Service Ready, posting prohibited"
|
2022-01-17 22:38:56 +00:00
|
|
|
MessageReaderModePostingProhibited = "201 Reader mode, posting prohibited"
|
2022-01-19 21:44:27 +00:00
|
|
|
MessageNNTPServiceExitsNormally = "205 NNTP Service exits normally, bye!"
|
2022-01-17 22:38:56 +00:00
|
|
|
MessageUnknownCommand = "500 Unknown command"
|
2022-01-18 17:26:37 +00:00
|
|
|
MessageErrorHappened = "403 Failed to process command:"
|
2022-01-18 15:04:20 +00:00
|
|
|
MessageListOfNewsgroupsFollows = "215 list of newsgroups follows"
|
2022-01-18 17:43:05 +00:00
|
|
|
MessageSyntaxError = "501 Syntax Error"
|
2022-01-17 22:38:56 +00:00
|
|
|
)
|