Add validate-golint target and script …
… and *lint* the latest piece of code. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
parent
7607eb173b
commit
40391c57c2
8 changed files with 78 additions and 33 deletions
4
web.go
4
web.go
|
@ -14,6 +14,8 @@ import (
|
|||
"github.com/unrolled/render"
|
||||
)
|
||||
|
||||
// WebProvider is a provider.Provider implementation that provides the UI.
|
||||
// FIXME to be handled another way.
|
||||
type WebProvider struct {
|
||||
Address string
|
||||
CertFile, KeyFile string
|
||||
|
@ -25,6 +27,8 @@ var (
|
|||
})
|
||||
)
|
||||
|
||||
// Provide allows the provider to provide configurations to traefik
|
||||
// using the given configuration channel.
|
||||
func (provider *WebProvider) Provide(configurationChan chan<- types.ConfigMessage) error {
|
||||
systemRouter := mux.NewRouter()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue