package
0.0.0-20250228030420-588d19194d90
Repository: https://github.com/luckyakbar/atec.git
Documentation: pkg.go.dev
# Functions
CacheKeyForPackage will return a unique cache key for a package.
NewChildRepository create new instance of ChildRepository.
NewPackageRepo create new package repo instance.
NewResultRepository create new instance of ResultRepository.
NewUserRepository create a new instance of UserRepository.
# Constants
all the cache key defined here will represent a resource that is unique, or have special use thus the cache key is constant.
# Variables
known errors that might be returned by this repository's functions.
known errors that might be returned by this repository's functions.
# Structs
ChildRepository child repository.
CreateChildInput input.
CreatePackageInput input.
CreateResultInput create result input.
CreateUserInput input to create a new user data.
FindAllUserHistoryInput input.
PackageRepo repository for packages.
ResultRepository result repository.
SearchChildInput input to search child data.
SearchPackageInput input to search package.
SearchResultInput search result input.
SearchUserInput options to search users.
UpdateChildInput input.
UpdatePackageInput input.
UpdateUserInput options to update user record.
UserRepository is an instance containing functions to interact specifically to users database.
# Interfaces
ChildRepositoryIface interface.
PackageRepoIface interface for PackageRepo.
ResultRepositoryIface result repository interface.
UserRepositoryIface interface exported by UserRepository to help ease mocking.
# Type aliases
CacheKey is the standart cache key type and should be used to represent a cache key from a resource that is unique or have special use.