convenient classes for a go api server