package exporter import "code.gitea.io/sdk/gitea" //Credentials is data that is needed to login at the Gitea API type Credentials struct { URL string Token string } func (c *Credentials) ToClient() *gitea.Client { return gitea.NewClient(c.URL, c.Token) } // Repo represents a Gitea Repository type Repo struct { Owner string Repository string } type Timetracker struct { Credentials Credentials Repository Repo }