package ports import ( "git.maximotejeda.com/maximo/dolar/internal/application/core/domain" ) type APIPort interface { NewHistory(history *domain.History) (*domain.History, error) GetLatest(name string) (*domain.History, error) GetSince(name string, duration int64) ([]*domain.History, error) GetInstByType(name string) ([]string, error) // TODO GetInstByName(name string) (*domain.Institution, error) TGBSubscribe(tgb_id int64, inst_name string) (bool, error) TGBUnsubscribe(tgb_id int64, inst_name string) (bool, error) TGBGetSubscribedUsers(inst_name string) ([]int64, error) TGBGetSubscribedInst(tgb_id int64) ([]string, error) }