testBase

package
Version: v3.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package testBase contains the information about the Airtable test base used by both stubbed and integration tests. Information includes table names and structs representing records in the different tables

Index

Constants

This section is empty.

Variables

View Source
var (
	// TasksTableName is the name of the Airtable table containing Task records
	TasksTableName = "Tasks"
	// TeamMatesTableName is the name of the Airtable table containing TeamMate records
	TeamMatesTableName = "Teammates"
	// LogTableName is the name of the Airtable table containing Log records
	LogTableName = "Log"
)

Functions

This section is empty.

Types

type Log

type Log struct {
	AirtableID string `json:"id,omitempty"`
	Fields     struct {
		AutoNumber int      `json:"Auto Number"`
		Projects   []string `json:"Projects"`
	}
}

Log represents a single record in the `Log` Airtable table

type Task

type Task struct {
	AirtableID string `json:"id,omitempty"`
	Fields     struct {
		Name      string  `json:"name"`
		Notes     string  `json:"notes"`
		Completed bool    `json:"Completed"`
		TimeEst   float64 `json:"Time Estimate (days)"`
	} `json:"fields"`
}

Task represents a single record in the `Task` Airtable table

type TeamMate

type TeamMate struct {
	AirtableID string `json:"id,omitempty"`
	Fields     struct {
		Name  string
		Photo []airtable.Attachment
	} `json:"fields"`
}

TeamMate represents a single record in the `TeamMate` Airtable table

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL