Documentation
¶
Index ¶
- func ConvertWWTStrToMins(wwtStr string) (uint, error)
- func InitConf() error
- func IsConflictErr(err error) bool
- func IsNoActivityRunningErr(err error) bool
- type Client
- func (c *Client) AddActivity(desc string, start *time.Time, end *time.Time) (*pkg.Activity, error)
- func (c *Client) AddEmployee(name string, surname string, login string, pw string, wwt uint, nwwd uint, ...) error
- func (c *Client) AddHoliday(desc string, start time.Time, end time.Time, legalHoliday bool, sick bool) error
- func (c *Client) CalcCurrentOverview(t time.Time) error
- func (c *Client) ChangeAccount(cn bool, cs bool, cl bool, cp bool, cwwt bool, cwwd bool, nhd bool, ...) error
- func (c *Client) CreateActivitiesIcalShareLink(name string) (string, error)
- func (c *Client) CreateHolidayIcalShareLink(name string) (string, error)
- func (c *Client) CreateToken(name string, readonly bool) (*pkg.Token, error)
- func (c *Client) CreateTokenViaCli(name string, readonly bool) error
- func (c *Client) DeleteActivity(id uint) error
- func (c *Client) DeleteEmployee(login string, adminToken string) error
- func (c *Client) DeleteHoliday(id uint) error
- func (c *Client) DeleteToken(id uint) error
- func (c *Client) Export(since *time.Time, output string) error
- func (c *Client) GetAccount() error
- func (c *Client) GetActivities(start time.Time, end time.Time) ([]pkg.Activity, error)
- func (c *Client) GetHolidays(start time.Time, end time.Time, asJSON bool) error
- func (c *Client) GetHolidaysByType(start time.Time, end time.Time, asJSON bool, hType pkg.HolidayType) error
- func (c *Client) GetTokens() error
- func (c *Client) Import(input string) error
- func (c *Client) ImportKimai(filePath string) error
- func (c *Client) LinkApp() error
- func (c *Client) StartActivity(desc string) (*pkg.Activity, error)
- func (c *Client) StopActivity() (*pkg.Activity, error)
- func (c *Client) UpdateActivity(desc string, start *time.Time, end *time.Time, id uint) (*pkg.Activity, error)
- func (c *Client) UpdateHoliday(desc string, start *time.Time, end *time.Time, id uint, legalHoliday bool, ...) error
- type ExportData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertWWTStrToMins ¶
func IsConflictErr ¶
func IsNoActivityRunningErr ¶
Types ¶
type Client ¶
type Client struct { APIHost string // contains filtered or unexported fields }
func (*Client) AddActivity ¶
func (*Client) AddEmployee ¶
func (*Client) AddHoliday ¶
func (*Client) ChangeAccount ¶
func (*Client) CreateActivitiesIcalShareLink ¶
func (*Client) CreateHolidayIcalShareLink ¶
func (*Client) CreateToken ¶
func (*Client) CreateTokenViaCli ¶
func (*Client) DeleteActivity ¶
func (*Client) DeleteEmployee ¶
func (*Client) DeleteHoliday ¶
func (*Client) DeleteToken ¶
func (*Client) GetAccount ¶
func (*Client) GetActivities ¶
func (*Client) GetHolidays ¶
func (*Client) GetHolidaysByType ¶
func (*Client) ImportKimai ¶
func (*Client) UpdateActivity ¶
Click to show internal directories.
Click to hide internal directories.