Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶ added in v0.4.0
type Connection interface { AddPost(request models.SendPostRequest) error GetPosts(pageNum int, postsPerPage int) ([]models.PostDisplay, error) GetPostsSince(max int, since time.Time) ([]models.PostDisplay, int, error) RegisterUser(request models.RegisterRequest) error FindUser(filters map[string]string) (models.User, error) GetPublicKey(email string) (ssh.PublicKey, error) Close(context context.Context) error }
func GetConnection ¶ added in v0.4.0
func GetConnection(ctx context.Context) (Connection, error)
Click to show internal directories.
Click to hide internal directories.