mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-08 14:50:59 +00:00
42 lines
1.4 KiB
Go
42 lines
1.4 KiB
Go
package protocol
|
|
|
|
const (
|
|
CRLF = "\r\n"
|
|
MultilineEnding = "."
|
|
)
|
|
|
|
const (
|
|
CommandCapabilities = "CAPABILITIES"
|
|
CommandQuit = "QUIT"
|
|
CommandDate = "DATE"
|
|
CommandMode = "MODE"
|
|
CommandList = "LIST"
|
|
CommandGroup = "GROUP"
|
|
CommandNewGroups = "NEWGROUPS"
|
|
)
|
|
|
|
const (
|
|
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"
|
|
MessageReaderModePostingProhibited = "201 Reader mode, posting prohibited"
|
|
MessageNNTPServiceExitsNormally = "205 NNTP Service exits normally, bye!"
|
|
MessageUnknownCommand = "500 Unknown command"
|
|
MessageErrorHappened = "403 Failed to process command:"
|
|
MessageListOfNewsgroupsFollows = "215 list of newsgroups follows"
|
|
MessageNewGroupsListOfNewsgroupsFollows = "231 list of new newsgroups follows"
|
|
MessageSyntaxError = "501 Syntax Error"
|
|
MessageNoSuchGroup = "411 No such newsgroup"
|
|
)
|