seph
11/07/2019, 4:50 AMapi
object, and not something that’s passed around.Andrew Guthrie
11/07/2019, 6:36 AMapi
that returned a custom struct that implements the GoQueryAPI
interface. The api
module imported by the commands is just a shim for the calls into that struct.
Maybe we can implement an option if the server calls could be standardized such that the only integration would be defining the url of each action endpoint (login basic auth/saml, connect, schedule)seph
11/07/2019, 11:51 AMAndrew Guthrie
11/07/2019, 7:54 PMseph
11/07/2019, 8:00 PMfunc main() {
intApi := myApi.New(hostname)
p := prompt.New(intApi)
p.Run()
}
vs the model today where the API is a global and I can’t really keep trackapi/driver.go
stuff move to main.Andrew Guthrie
11/07/2019, 8:42 PMseph
11/07/2019, 8:42 PMAndrew Guthrie
11/07/2019, 8:43 PMseph
11/07/2019, 8:46 PMobelisk
11/07/2019, 8:47 PMseph
11/07/2019, 8:49 PMobelisk
11/07/2019, 8:51 PMseph
11/07/2019, 8:51 PMobelisk
11/07/2019, 8:55 PMseph
11/07/2019, 8:56 PMobelisk
11/07/2019, 8:57 PMseph
11/07/2019, 8:57 PMobelisk
11/07/2019, 8:57 PMseph
11/07/2019, 8:58 PMobelisk
11/07/2019, 8:58 PMseph
11/07/2019, 8:59 PMobelisk
11/07/2019, 9:01 PMseph
11/07/2019, 9:02 PM