github.com/ActiveState/cli@v0.0.0-20240508170324-6801f60cd051/pkg/platform/api/svc/request/configchanged.go (about) 1 package request 2 3 type ConfigChanged struct { 4 key string 5 } 6 7 func NewConfigChanged(key string) *ConfigChanged { 8 return &ConfigChanged{key: key} 9 } 10 11 func (e *ConfigChanged) Query() string { 12 return `query($key: String!) { 13 configChanged(key: $key) { 14 received 15 } 16 }` 17 } 18 19 func (e *ConfigChanged) Vars() (map[string]interface{}, error) { 20 return map[string]interface{}{"key": e.key}, nil 21 }