api

package
v0.0.0-...-c5462c8 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package api provides general types and functions for leanmanager

Package api contains the types used and exposed by the API Server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertTime

func ConvertTime(h string) (time.Time, error)

ConvertTime transforms a string typed by the user to the time.Time type

Types

type Channel

type Channel struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	TeamID string `json:"teamId"`
}

Channel represents a channel or group where members chat

type DailyMeeting

type DailyMeeting struct {
	ChannelID string         `json:"channelId"`
	LastDaily time.Time      `json:"lastDaily"`
	StartTime time.Time      `json:"startTime"`
	LimitTime time.Time      `json:"limitTime"`
	Days      []time.Weekday `json:"days"`
}

DailyMeeting represents a Daily Meeting with its status

type Member

type Member struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	ChannelID string `json:"channelId"`
	TeamID    string `json:"teamId"`
}

Member represents a member of the team

type PredefinedDailyReply

type PredefinedDailyReply struct {
	ChannelID string `json:"channelId"`
	Question  int    `json:"question"`
	Reply     string `json:"reply"`
	Exp       string `json:"regularExpression"`
	Match     bool   `json:"match"`
}

PredefinedDailyReply represents an automated reply to answers in the Daily Meeting following the exp criteria

type Team

type Team struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Token string `json:"slackToken"`
}

Team represents a group of persons who work together

Jump to

Keyboard shortcuts

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