Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AWSKey string AWSSecret string AWSRegion string AWSBucket string MaxRequests int Keys []string }
Config holds in-memory service config data.
type Services ¶
Services holds shared functionality as independent service functions.
func (*Services) SynthesiseSpeech ¶
SynthesiseSpeech synthesises speech via AWS Polly.
func (*Services) UploadData ¶
UploadData uploads data to the configured bucket and returns the location.
type Usage ¶
type Usage struct { Started time.Time TotalRequests int HourlyUsage map[string]int // contains filtered or unexported fields }
Usage holds in-memory data about the service usage.
func (*Usage) LimitExceeded ¶
LimitExceeded returns true if the service has reached its hourly usage limit.
func (*Usage) TrackRequest ¶
func (u *Usage) TrackRequest()
TrackRequest adds an entry to the hourly usage map.
Click to show internal directories.
Click to hide internal directories.