repository

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

func (br *BaseRepo) GetHandler() *handler.Handler

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

func (br *BaseRepo) SetHandler(h *handler.Handler)

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

DisplayCurrentDataByCountry display CurrentDataByCountry

Jump to

Keyboard shortcuts

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