Documentation ¶
Index ¶
- Constants
- func IndexAirtableRecords(recs []*airtable.Record, field string) (atIndex, error)
- type Config
- type Oats
- func (oats *Oats) AirtableBase() string
- func (cmd *Oats) GetRecord(tableName string, id string) (*airtable.Record, error)
- func (cmd *Oats) GetRecordsFilterFields(tableName string, filter string, fields []string) ([]*airtable.Record, error)
- func (cmd *Oats) PostRecords(tableName string, records []*airtable.Record) ([]*airtable.Record, error)
Constants ¶
View Source
const ( COL_ID = "ID" COL_AI_ID = "AI_ID" COL_STATUS = "Status" COL_DOI = "DOI" COL_DOI_CONF = "DOI_Confirmed" COL_OA_STATUS = "OA_status" COL_OA_LINK = "OA_Link" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Airtable struct { APIKey string Base struct { Production string Test string } TableName string Tasks string ActivityInsight string `yaml:"activity_insight"` } Unpaywall struct { Email string } OpenAccessButton struct { Key string } ScholarSphere struct { APIKey string Production string Test string } `yaml:"scholarsphere"` RMDB struct { APIKey string Production string Test string } `yaml:"rmdb"` ArticlePath string `yaml:"article_path"` }
Config is the global configuration for command line utility
type Oats ¶
type Oats struct { *Config Production bool // run in production mode or not // contains filtered or unexported fields }
func (*Oats) AirtableBase ¶
Click to show internal directories.
Click to hide internal directories.