repository

package
v0.0.0-...-ff6ca5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCursor

func DecodeCursor(encodedTime string) (time.Time, error)

DecodeCursor will decode cursor from user for mysql

func EncodeCursor

func EncodeCursor(t time.Time) string

EncodeCursor will encode cursor from mysql to user

func NewMongoRepository

func NewMongoRepository(db *mongo.Database) models.ArticleRepository

NewMongoRepository will create the article mongo repository

func NewMysqlRepository

func NewMysqlRepository(db *sql.DB) models.ArticleRepository

NewMysqlRepository will create the article mysql repository

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL