lucca

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatEmployees

func FormatEmployees(employees []Employee) string

Format employees list

Types

type Employee

type Employee struct {
	Name      string
	Morning   bool
	Afternoon bool
	AllDay    bool
	EndDate   string
}

type LeavesResponse

type LeavesResponse struct {
	Data struct {
		Item []struct {
			IsAM        bool `json:"isAM"`
			LeavePeriod struct {
				Owner struct {
					Name string `json:"name"`
				} `json:"owner"`
				EndsOn string `json:"endsOn"`
				EndsAM bool   `json:"endsAM"`
			} `json:"leavePeriod"`
		} `json:"items"`
	} `json:"data"`
}

func GetLeaves

func GetLeaves(token string, subDomain string) LeavesResponse

func (*LeavesResponse) ListEmployees

func (lr *LeavesResponse) ListEmployees() []Employee

List employees (en build good objects)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL