Debian Codegraph @

api/v1/lib/httpcli/httpexec/util.go

raw symbols SCIP
1 package httpexec
2
3 import (
4 "github.com/mesos/mesos-go/api/v1/lib/client"
5 "github.com/mesos/mesos-go/api/v1/lib/executor"
6 "github.com/mesos/mesos-go/api/v1/lib/httpcli"
7 )
8
9 func classifyResponse(c *executor.Call) (rc client.ResponseClass, err error) {
10 switch name := executor.Call_Type_name[int32(c.GetType())]; name {
11 case "", "UNKNOWN":
12 err = httpcli.ProtocolError("unsupported call type")
13 default:
14 rc = client.ResponseClassAuto // TODO(jdef) fix this, ResponseClassAuto is deprecated
15 }
16 return
17 }