repositories

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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