summaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp
ModeNameSize
-rw-r--r--ROCKO.FIXMEs491logstatsplain
d---------classes56logstatsplain
d---------conf106logstatsplain
d---------meta-aglprofilegraphical / recipes-graphics43logstatsplain
d---------meta-core80logstatsplain
d---------meta-freescale-layer121logstatsplain
d---------meta-intel84logstatsplain
d---------meta-qcom79logstatsplain
d---------meta-raspberrypi122logstatsplain
d---------meta-rcar-gen3-adas200logstatsplain
d---------meta-rcar-gen3240logstatsplain
d---------meta-ti243logstatsplain
d---------recipes-bsp / u-boot33logstatsplain
d---------recipes-graphics67logstatsplain
d---------recipes-kernel76logstatsplain
d---------recipes-support / ptest-runner39logstatsplain
d---------wic267logstatsplain
ss="cm"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package xdsserver import ( "net/http" "sync" common "gerrit.automotivelinux.org/gerrit/src/xds/xds-common.git/golib" "gerrit.automotivelinux.org/gerrit/src/xds/xds-server/lib/xsapiv1" "github.com/gin-gonic/gin" ) var confMut sync.Mutex // GetConfig returns server configuration func (s *APIService) getConfig(c *gin.Context) { confMut.Lock() defer confMut.Unlock() c.JSON(http.StatusOK, s.Config) } // SetConfig sets server configuration func (s *APIService) setConfig(c *gin.Context) { // FIXME - must be tested c.JSON(http.StatusNotImplemented, "Not implemented") var cfgArg xsapiv1.APIConfig if c.BindJSON(&cfgArg) != nil { common.APIError(c, "Invalid arguments") return } confMut.Lock() defer confMut.Unlock() s.Log.Debugln("SET config: ", cfgArg) common.APIError(c, "Not Supported") }