package
0.0.0-20200914181704-45d683643969
Repository: https://github.com/camolezi/microservicesgolang.git
Documentation: pkg.go.dev

# Functions

CloseDatabase is used to close the database connection.
CreateDataAccess returns a new data access.
CreateUser creates a new user.
GetLatestPosts for now will return all posts in the map.
GetPost retrieves a post from the database.
GetUser gets a user from the database.
InitializeDatabase is used for strating the database connection.
NewPost creates a new post.
PrintUsers is just debug for now.

# Structs

Access is used for accessing the database from services.

# Interfaces

AccessInterface defines methods to access data.
PostAccess - Maybe create separated interfaces latter.