update linter settings

This commit is contained in:
aler9
2020-12-08 12:40:12 +01:00
parent 07aefbcd5d
commit 2f6c928c92
3 changed files with 8 additions and 1 deletions

View File

@@ -9,18 +9,22 @@ import (
"github.com/aler9/gortsplib/pkg/multibuffer"
)
// ServerHandler is the interface that must be implemented to use a Server.
type ServerHandler interface {
}
// Server is a RTSP server.
type Server struct {
conf ServerConf
listener *net.TCPListener
}
// Close closes the server.
func (s *Server) Close() error {
return s.listener.Close()
}
// Accept accepts a connection.
func (s *Server) Accept() (*ServerConn, error) {
nconn, err := s.listener.Accept()
if err != nil {