Documentation ¶
Index ¶
Constants ¶
View Source
const (
STORAGE_MONGODB = "mongodb"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountRepository ¶
type AccountRepository interface { Save(*domain.Account) error GetByEmail(email string) (*domain.Account, error) GetByUsername(username string) (*domain.Account, error) GetById(id string) (*domain.Account, error) }
AccountRepository type
func MakeRepositoryFromEnv ¶
func MakeRepositoryFromEnv() (AccountRepository, error)
MakeRepository factory
Click to show internal directories.
Click to hide internal directories.