コード例 #1
0
ファイル: client.go プロジェクト: koffeinsource/kaffeeshare
// Get returns an imgurclient
func Get(con *data.Context) *imgur.Client {
	var imgurclient imgur.Client
	imgurclient.ImgurClientID = config.ImgurClientID
	imgurclient.MashapeKey = config.MashapeKey
	imgurclient.HTTPClient = httpClient.Get(con)
	imgurclient.Log = con.Log

	return &imgurclient
}
コード例 #2
0
ファイル: client.go プロジェクト: koffeinsource/kaffeeshare
// Get creates a client for go-URLextract
func Get(con *data.Context) URLextract.Client {
	var conf URLextract.Client

	conf.HTTPClient = httpClient.Get(con)

	conf.Log = con.Log
	conf.AmazonAdID = config.AmazonAdID
	conf.ImgurClientID = config.ImgurClientID
	return conf
}