Skip to content

Commit

Permalink
doc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Plescia committed Mar 16, 2020
1 parent 99800e6 commit dc45beb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion aws/s3/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var (
log, _ = util.InitLoggerWithLevel(nil)
)

//Downloads a file from an S3 event's S3 Event Record. Takes in a pointer to a downloader object.
//DownloadFileFromS3EventRecord downloads a file from an S3 event's S3 Event Record. Takes in a pointer to a downloader object.
// for _, eventObject := range event.Records {
// file, err := s3.DownloadFileFromS3EventRecord(downloader, eventObject)
// if err != nil {
Expand Down
7 changes: 2 additions & 5 deletions aws/secretsmanager/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var (
log, _ = util.InitLoggerWithLevel(nil)
)

//Retrieve a secret from Secrets Manager. Searches for a secret stored under the input
//GetSecret retrieves a secret from Secrets Manager. Searches for a secret stored under the input
// secretId
func GetSecret(secretId string) string {
sess, err := session.NewSession(&aws.Config{
Expand All @@ -28,7 +28,7 @@ func GetSecret(secretId string) string {
return *output.SecretString
}

//Create a Secrets Manager secret using a given CreateSecretInput. Return errors, if any.
//CreateSecret creates a Secrets Manager secret using a given CreateSecretInput. Return errors, if any.
func CreateSecret(opts secretsmanager.CreateSecretInput) error {
sess, err := session.NewSession(&aws.Config{
Region: aws.String(util.GetEnvOrDefault("AWS_REGION", "us-east-1")),
Expand All @@ -43,6 +43,3 @@ func CreateSecret(opts secretsmanager.CreateSecretInput) error {
}
return err
}



2 changes: 1 addition & 1 deletion db/redis/doc.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//Generic Utilities for dealing with Redis Clusters. Directly compatible with AWS ElastiCache.
//Package redis contains generic utilities for dealing with Redis Clusters. Directly compatible with AWS ElastiCache.
package redis
8 changes: 4 additions & 4 deletions db/redis/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ var (
log, _ = util.InitLoggerWithLevel(nil)
)

//Creates a pointer to a redis cluster client. By default looks for a redis cluster at
//ClusterClient creates a pointer to a redis cluster client. By default looks for a redis cluster at
//localhost on port 7000. Address can be configured with the REDIS_HOST environment
//variable. An example for elasticache:
// somecluster.amazonaws.com:6379
Expand All @@ -29,7 +29,7 @@ func ClusterClient() *redis.ClusterClient {
return clusterClient
}

//Creates a pointer to a redis cluster client. Supports passing a pointer to a redis.Options struct with
//ClusterClientWithOpts creates a pointer to a redis cluster client. Supports passing a pointer to a redis.Options struct with
////configurable parameters. An example for elasticache:
// somecluster.amazonaws.com:6379
func ClusterClientWithOpts(options *redis.ClusterOptions) *redis.ClusterClient {
Expand All @@ -43,7 +43,7 @@ func ClusterClientWithOpts(options *redis.ClusterOptions) *redis.ClusterClient {
return clusterClient
}

//Creates a pointer to a redis client. By default looks for a redis server at
//StandardClient creates a pointer to a redis client. By default looks for a redis server at
//localhost on port 6379. Address can be configured with the REDIS_HOST environment
//variable. An example for elasticache:
// someserver.amazonaws.com:6379
Expand All @@ -59,7 +59,7 @@ func StandardClient() *redis.Client {
return client
}

//Creates a pointer to a redis client. Supports passing a pointer to a redis.Options struct with
//StandardClientWithOpts creates a pointer to a redis client. Supports passing a pointer to a redis.Options struct with
//configurable parameters. An example for elasticache:
// someserver.amazonaws.com:6379
func StandardClientWithOpts(options *redis.Options) *redis.Client {
Expand Down
2 changes: 1 addition & 1 deletion db/sql/postgres/doc.go
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
//Generic Utilities for dealing with Postgres Databases. Directly compatible with AWS RDS.
//Package postgres contains generic utilities for dealing with Postgres Databases. Directly compatible with AWS RDS.
package postgres

0 comments on commit dc45beb

Please sign in to comment.