Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
Types ¶
type AuthService ¶
type StaticServer ¶
type StaticServer struct { AuthService AuthService Host string Port int Path string FsDir string TlsConf conf.SSL Middlewares []func(http.HandlerFunc) http.HandlerFunc }
func NewStaticServer ¶
func NewStaticServer(authService AuthService, serverConf conf.Server, tlsConf conf.SSL) *StaticServer
func (*StaticServer) AddMiddleware ¶
func (s *StaticServer) AddMiddleware(middleware func(http.HandlerFunc) http.HandlerFunc)
func (*StaticServer) ApplyUserSpeedLimitMiddleware ¶
func (*StaticServer) Listen ¶
func (s *StaticServer) Listen()
Click to show internal directories.
Click to hide internal directories.