package
0.0.0-20240913133817-493af604c9fb
Repository: https://github.com/kothawoc/go-nntp.git
Documentation: pkg.go.dev

# Functions

Distinguishes between an Article-ID and an Article Number using the syntax of the id-String.
Utility function: Assures the return value does not deceed the minimum value.
Utility function: Retrieves all Newsgroups headers, splits ","-concatenated lists, trimms all names.
NewServer builds a new server handle request to a backend.
No description provided by the author
Utility function: Assures the return value does not exceed the maximum value.

# Variables

ErrAuthRejected is returned for invalid authentication.
ErrAuthRequired is returned to indicate authentication is required to proceed.
ErrIHaveFailed is returned when an attempt to ihave an article fails AFTER the transfer of the article.
ErrIHaveNopPossible is the same as ErrIHaveFailed, except the text.
ErrIHaveRejected is returned when an attempt to ihave an article is rejected due the server not wanting the article.
ErrInvalidArticleNumber is returned when an article is requested that can't be found.
ErrInvalidMessageID is returned when a message is requested that can't be found.
ErrNoCurrentArticle is returned when a command is executed that requires a current article when one has not been selected.
ErrNoSuchGroup is returned for a request that requires a current group when none has been selected.
ErrNoNextArticle is returned when LAST or NEXT reaches the end of its iteration.
ErrNoPreviousArticle is returned when LAST or NEXT reaches the end of its iteration.
ErrNoSuchGroup is returned for a request for a group that can't be found.
ErrNotAuthenticated is returned when a command is issued that requires authentication, but authentication was not provided.
ErrNotWanted is returned when an attempt to ihave an article is rejected due the server not wanting the article.
ErrPostingFailed is returned when an attempt to post an article fails.
ErrPostingNotPermitted is returned as the response to an attempt to post an article where posting is not permitted.
ErrSyntax is returned when a command can't be parsed.
ErrUnknownCommand is returned for unknown comands.

# Structs

An NNTPError is a coded NNTP error message.
A NumberedArticle provides local sequence numbers to articles When listing articles in a group.
The Server handle.
No description provided by the author
No description provided by the author

# Interfaces

The Backend that provides the things and does the stuff.
An optional Interface Backend-objects may provide.
An optional Interface Backend-objects may provide.
No description provided by the author

# Type aliases

No description provided by the author
Handler is a low-level protocol handler.