MCPcopy Create free account
hub / github.com/nsf/gocode / server_set

Function server_set

server.go:234–243  ·  view source on GitHub ↗
(key, value string)

Source from the content-addressed store, hash-verified

232}
233
234func server_set(key, value string) string {
235 if key == "\x00" {
236 return g_config.list()
237 } else if value == "\x00" {
238 return g_config.list_option(key)
239 }
240 // drop cache on settings changes
241 g_daemon.drop_cache()
242 return g_config.set_option(key, value)
243}
244
245func server_options(notused int) string {
246 return g_config.options()

Callers 1

RPC_setMethod · 0.85

Calls 4

listMethod · 0.80
list_optionMethod · 0.80
drop_cacheMethod · 0.80
set_optionMethod · 0.80

Tested by

no test coverage detected