Skip to content

clients.github #

fn connection_get #

fn connection_get() &GithubConnection

Make sure to use new first, so that the connection has been initiated then you can get it everywhere

fn new #

fn new(cache_timeout int) ?&GithubConnection

fn (GithubConnection) cache_drop #

fn (mut h GithubConnection) cache_drop(prefix string) ?

fn (GithubConnection) cache_drop_all #

fn (mut h GithubConnection) cache_drop_all() ?

fn (GithubConnection) get_json_str #

fn (mut h GithubConnection) get_json_str(prefix string, getdata string, cache bool) ?string

Get request with json data and return response as string