Documentation ¶
Overview ¶
Package database provides an interface for creating and using databases.
Index ¶
- type AmazonRDS
- func (rds AmazonRDS) GetData(dataID string) string
- func (rds AmazonRDS) GetPassword() string
- func (rds AmazonRDS) GetURL() string
- func (rds AmazonRDS) GetUsername() string
- func (rds AmazonRDS) PutData(newData string) string
- func (rds *AmazonRDS) SetPassword(newPass string)
- func (rds *AmazonRDS) SetURL(newURL string)
- func (rds *AmazonRDS) SetUsername(newUsername string)
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AmazonRDS ¶
type AmazonRDS struct { URL string // contains filtered or unexported fields }
AmazonRDS is a struct that represents a database that uses Amazon RDS.
func NewAmazonRDS ¶
NewAmazonRDS is a function that returns a pointer to a new AmazonRDS struct.
func (AmazonRDS) GetData ¶
GetData will get the Data associated with the provided ID and return it from the database.
func (AmazonRDS) GetPassword ¶
GetPassword will get the password used when connecting to the database.
func (AmazonRDS) GetUsername ¶
GetUsername will return the username currently being used to connect to the database.
func (*AmazonRDS) SetPassword ¶
SetPassword will set the password used when connecting to the database.
func (*AmazonRDS) SetUsername ¶
SetUsername will set the username used when connecting to the database.
type Database ¶
type Database interface { PutData(string) string // Save data to Database and return it's ID GetData(string) string // Get data associated with the ID from the Database SetURL(string) // Set the URL of the Database struct GetURL() string // Get the URL of the Database struct SetUsername(string) // Set the username to use when connecting to the Database GetUsername() string // Get the username used by the Database struct SetPassword(string) // Set the password to use when connecting to the Database GetPassword() string // Get the password used by the Database struct }
Database is an interface that defines the methods within a database struct