diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-05-01 07:56:25 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-05-01 07:56:25 -0600 |
commit | 9a2da81b11ad0064cca24ce7974827d032309369 (patch) | |
tree | 4313224dc089208423e78bffc3ec50833e35bcea /gopher/serve.go | |
parent | 21e2758145d100d74013060f7090d84679cae683 (diff) |
name change gus -> sliderule
Diffstat (limited to 'gopher/serve.go')
-rw-r--r-- | gopher/serve.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gopher/serve.go b/gopher/serve.go index 572fa55..bad7935 100644 --- a/gopher/serve.go +++ b/gopher/serve.go @@ -8,14 +8,14 @@ import ( "net" "strings" - "tildegit.org/tjp/gus" - "tildegit.org/tjp/gus/internal" - "tildegit.org/tjp/gus/logging" + sr "tildegit.org/tjp/sliderule" + "tildegit.org/tjp/sliderule/internal" + "tildegit.org/tjp/sliderule/logging" ) type gopherServer struct { internal.Server - handler gus.Handler + handler sr.Handler } func (gs gopherServer) Protocol() string { return "GOPHER" } @@ -26,9 +26,9 @@ func NewServer( hostname string, network string, address string, - handler gus.Handler, + handler sr.Handler, errLog logging.Logger, -) (gus.Server, error) { +) (sr.Server, error) { gs := &gopherServer{handler: handler} if strings.IndexByte(hostname, ':') < 0 { @@ -45,7 +45,7 @@ func NewServer( } func (gs *gopherServer) handleConn(conn net.Conn) { - var response *gus.Response + var response *sr.Response request, err := ParseRequest(conn) if err != nil { response = Error(errors.New("Malformed request.")).Response() |