repository

package
v0.0.0-...-7e06a17 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MaponRepository

type MaponRepository interface {
	GetInfo(ctx context.Context, from, till time.Time) ([]*model.MaponRoute, error)
}

MaponRepository implements a repository for Mapon data.

func NewMaponRespository

func NewMaponRespository(config *cfg.MaponConfig) MaponRepository

NewMaponRespository creates a new instance of MaponRepository with a given configuration for Mapon API Rest connection.

type UserRepository

type UserRepository interface {
	// CreateUser creates an user in the application repository.
	CreateUser(ctx context.Context, user *model.User) error
	// GetUser finds an user by email from the application repository.
	GetUser(ctx context.Context, email string) (*model.User, error)
}

UserRepository implements user storage.

func NewMongoUserRepository

func NewMongoUserRepository(collection helper.CollectionHelper) UserRepository

NewMongoUserRepository creates an instance of UserRepository given a Mongo collection.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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