mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2026-01-28 17:41:13 +00:00
22 lines
291 B
Go
22 lines
291 B
Go
package api
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/patrickmn/go-cache"
|
|
)
|
|
|
|
type Client struct {
|
|
ClientID string
|
|
Cache *cache.Cache
|
|
}
|
|
|
|
func NewClient(clientId string) *Client {
|
|
client := Client{
|
|
ClientID: clientId,
|
|
Cache: cache.New(15*time.Minute, 15*time.Minute),
|
|
}
|
|
|
|
return &client
|
|
}
|