Skip to content

Commit

Permalink
Server TLS function added on engine. (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
tugbadm authored and mustafaakin committed Nov 16, 2017
1 parent 67c9a06 commit b899c3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ func (e *Engine) ListenAndServe(addr string) error {
return http.ListenAndServe(addr, e.actualRouter)
}

// ListenAndServeTLS serves the given engine with a specific address on HTTPs.
func (e *Engine) ListenAndServeTLS(addr, certFile, keyFile string) error {
return http.ListenAndServeTLS(addr, certFile, keyFile, e.actualRouter)
}

// Provide provides with "default" key
func (e *Engine) Provide(value interface{}) {
e.injector.Provide(value, "default")
Expand Down

0 comments on commit b899c3c

Please sign in to comment.