All checks were successful
dev test / test (push) Successful in 17s
dev test / vulnCheck (push) Successful in 30s
dev test / Ci-Lint (push) Successful in 19s
${{ github.actor }} executed Build Push Prod / build (push) Successful in 4m24s
${{ github.actor }} executed Build Push Prod / deploy (push) Successful in 18s
17 lines
605 B
Go
17 lines
605 B
Go
package ports
|
|
|
|
import "git.maximotejeda.com/maximo/dolar/internal/application/core/domain"
|
|
|
|
type DBPort interface {
|
|
GetLatest(name string) (*domain.History, error)
|
|
GetSince(name string, duration int64) ([]*domain.History, error)
|
|
GetInstByType(name string) ([]string, error)
|
|
Save(*domain.History) 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)
|
|
}
|