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.
Click to show internal directories.
Click to hide internal directories.