Documentation ¶
Index ¶
- func NewCurrentRepo(h *handler.Handler) (domRepo.ICurrentRepo, error)
- type BaseRepo
- func (br *BaseRepo) AddAdapter(alias, provider string, adapter infC19Adp.ICovid19Adapter)
- func (br *BaseRepo) GetAdapters() map[string]C19RepoAdapter
- func (br *BaseRepo) GetHandler() *handler.Handler
- func (br *BaseRepo) SelectAdapterByProvider(providerCode string) (*C19RepoAdapter, error)
- func (br *BaseRepo) SelectedAdaptersByProviders(providers domSchema.ProviderList) map[string]C19RepoAdapter
- func (br *BaseRepo) SetHandler(h *handler.Handler)
- type C19RepoAdapter
- type CurrentRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCurrentRepo ¶
func NewCurrentRepo(h *handler.Handler) (domRepo.ICurrentRepo, error)
NewCurrentRepo new CurrentRepo
Types ¶
type BaseRepo ¶
type BaseRepo struct {
// contains filtered or unexported fields
}
BaseRepo represent BaseRepo
func (*BaseRepo) AddAdapter ¶
func (br *BaseRepo) AddAdapter(alias, provider string, adapter infC19Adp.ICovid19Adapter)
AddAdapter is a function to Add Adapter Repository
func (*BaseRepo) GetAdapters ¶
func (br *BaseRepo) GetAdapters() map[string]C19RepoAdapter
GetAdapters is a function to get availables adapters
func (*BaseRepo) GetHandler ¶
GetHandler set Handler
func (*BaseRepo) SelectAdapterByProvider ¶
func (br *BaseRepo) SelectAdapterByProvider(providerCode string) (*C19RepoAdapter, error)
SelectAdapterByProvider select Adapter by Provider Code
func (*BaseRepo) SelectedAdaptersByProviders ¶
func (br *BaseRepo) SelectedAdaptersByProviders(providers domSchema.ProviderList) map[string]C19RepoAdapter
SelectedAdaptersByProviders is a funtion to select selected adapters from selected providers
func (*BaseRepo) SetHandler ¶
SetHandler set Handler
type C19RepoAdapter ¶
type C19RepoAdapter struct { Provider string Adapter infC19Adp.ICovid19Adapter }
C19RepoAdapter type
type CurrentRepo ¶
type CurrentRepo struct {
BaseRepo
}
CurrentRepo implement domRepo.CurrentRepo
func (*CurrentRepo) DisplayCurrentDataByCountry ¶
func (r *CurrentRepo) DisplayCurrentDataByCountry(req *domSchema.DisplayCurrentDataByCountryRequest, i identity.Identity) (*domSchema.DisplayCurrentDataByCountryResponse, error)
DisplayCurrentDataByCountry display CurrentDataByCountry
Click to show internal directories.
Click to hide internal directories.