package domain type AccountRepository interface { Insert(account Account) (int, error) FetchOneByUsername(username string) (*Account, error) FetchOneById(id int) (*Account, error) }