api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Company

type Company map[string]Employee

Company describes a map of Employees by username

func Load

func Load() (Company, error)

Load employees from site

type DiffSet

type DiffSet struct {
	Added, Modified, Removed Company
}

DiffSet describes the difference between two companies

func Diff

func Diff(oldC, newC Company) DiffSet

Diff compares two company lists and returns a DiffSet

type Employee

type Employee struct {
	Username string
	Fullname string
	Title    string
	Social   map[string]string
}

Employee describes a human at Linode

func (Employee) Photo

func (e Employee) Photo() ([]byte, error)

Photo downloads the photo for an employee

Jump to

Keyboard shortcuts

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