yans/internal/protocol/constants.go
2022-01-18 01:38:56 +03:00

18 lines
597 B
Go

package protocol
const (
CommandCapabilities = "CAPABILITIES"
CommandQuit = "QUIT"
CommandDate = "DATE"
CommandMode = "MODE"
CommandList = "LIST"
)
const (
MessageNNTPServiceReadyPostingProhibited = "201 YANS NNTP Service Ready, posting prohibited\n"
MessageReaderModePostingProhibited = "201 Reader mode, posting prohibited"
MessageNNTPServiceExitsNormally = "205 NNTP Service exits normally"
MessageUnknownCommand = "500 Unknown command"
MessageErrorHappened = "403 Failed to process command: "
)