Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CreateHandler ¶
func (*Server) GetStatistics ¶
func (*Server) ResetStatistics ¶
func (s *Server) ResetStatistics()
type Stats ¶
type Stats struct { ErrorsCount int `slog:"errors"` UploadCount int `slog:"uploads"` ExistsYesCount int `slog:"exists_yes"` ExistsNoCount int `slog:"exists_no"` DownloadCount int `slog:"downloads"` DownloadNotFoundCount int `slog:"downloads_not_found"` UploadedBytes int64 `slog:"ul_bytes"` DownloadedBytes int64 `slog:"dl_bytes"` }
Stats holds statistics for server operation. Can be requested with Server.GetStatistics().
Click to show internal directories.
Click to hide internal directories.