10346: Document SDK examples uniformly
[arvados.git] / services / arv-git-httpd / server.go
1 package main
2
3 import (
4         "net/http"
5
6         "git.curoverse.com/arvados.git/sdk/go/httpserver"
7 )
8
9 type server struct {
10         httpserver.Server
11 }
12
13 func (srv *server) Start() error {
14         mux := http.NewServeMux()
15         mux.Handle("/", &authHandler{handler: newGitHandler()})
16         srv.Handler = mux
17         srv.Addr = theConfig.Listen
18         return srv.Server.Start()
19 }