package protocol const ( CRLF = "\r\n" MultilineEnding = "." ) const ( CommandCapabilities = "CAPABILITIES" CommandQuit = "QUIT" CommandDate = "DATE" CommandMode = "MODE" CommandList = "LIST" CommandGroup = "GROUP" ) 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" MessageSyntaxError = "501 Syntax Error" MessageNoSuchGroup = "411 No such newsgroup" )