Documentation ¶
Index ¶
- type DriverRepository
- type DriverRepositoryImpl
- func (repo DriverRepositoryImpl) Create(name string, token string, state interface{}) error
- func (repo DriverRepositoryImpl) Delete(name string) error
- func (repo DriverRepositoryImpl) Fetch(name string) (models.DriverModel, error)
- func (repo DriverRepositoryImpl) Key(name string) []byte
- func (repo DriverRepositoryImpl) List() ([]string, error)
- func (repo DriverRepositoryImpl) Update(driver models.DriverModel) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriverRepository ¶
type DriverRepository interface { List() ([]string, error) Create(name, token string, state interface{}) error Fetch(name string) (models.DriverModel, error) Update(driver models.DriverModel) error Delete(name string) error }
func NewDriverRepository ¶
func NewDriverRepository(db *badger.DB) DriverRepository
type DriverRepositoryImpl ¶
type DriverRepositoryImpl struct {
// contains filtered or unexported fields
}
func (DriverRepositoryImpl) Create ¶
func (repo DriverRepositoryImpl) Create(name string, token string, state interface{}) error
func (DriverRepositoryImpl) Delete ¶
func (repo DriverRepositoryImpl) Delete(name string) error
func (DriverRepositoryImpl) Fetch ¶
func (repo DriverRepositoryImpl) Fetch(name string) (models.DriverModel, error)
func (DriverRepositoryImpl) Key ¶
func (repo DriverRepositoryImpl) Key(name string) []byte
func (DriverRepositoryImpl) List ¶
func (repo DriverRepositoryImpl) List() ([]string, error)
func (DriverRepositoryImpl) Update ¶
func (repo DriverRepositoryImpl) Update(driver models.DriverModel) error
Click to show internal directories.
Click to hide internal directories.