Documentation ¶
Index ¶
- Constants
- Variables
- type FiwareRepo
- type FiwareServiceRow
- type FiwareServiceRows
- type IotaRow
- type IotaRows
- type RepoType
- type SqliteRepo
- func (sr *SqliteRepo) AddFiwareService(service string) error
- func (sr *SqliteRepo) AddIota(host string, port int, alias string) error
- func (sr *SqliteRepo) DeleteFiwareService(id string) error
- func (sr *SqliteRepo) DeleteIota(id string) error
- func (sr *SqliteRepo) FindFiwareServiceByName(name string) (FiwareServiceRows, error)
- func (sr *SqliteRepo) GetFiwareService(id string) (*FiwareServiceRow, error)
- func (sr *SqliteRepo) GetIota(id string) (*i.IoTA, error)
- func (sr *SqliteRepo) ListFiwareServices() (FiwareServiceRows, error)
- func (sr *SqliteRepo) ListIotas() (IotaRows, error)
- func (sr *SqliteRepo) SetIdGen(f func() string)
- func (sr *SqliteRepo) UpdateFiwareService(id string, name string) error
Constants ¶
View Source
const (
Sqlite = iota
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type FiwareRepo ¶
type FiwareRepo interface { AddFiwareService(string) error GetFiwareService(string) (*FiwareServiceRow, error) ListFiwareServices() (FiwareServiceRows, error) UpdateFiwareService(string, string) error DeleteFiwareService(string) error SetIdGen(func() string) FindFiwareServiceByName(string) (FiwareServiceRows, error) AddIota(string, int, string) error GetIota(string) (*i.IoTA, error) ListIotas() (IotaRows, error) DeleteIota(string) error }
func NewFiwareRepo ¶
func NewFiwareRepo(i RepoType) (FiwareRepo, error)
type FiwareServiceRow ¶
func (FiwareServiceRow) ToFiwareService ¶
func (r FiwareServiceRow) ToFiwareService() *i.FiwareService
type FiwareServiceRows ¶
type FiwareServiceRows []FiwareServiceRow
func (FiwareServiceRows) ToFiwareServices ¶
func (rs FiwareServiceRows) ToFiwareServices() []*i.FiwareService
type IotaRow ¶
type SqliteRepo ¶
type SqliteRepo struct {
// contains filtered or unexported fields
}
func (*SqliteRepo) AddFiwareService ¶
func (sr *SqliteRepo) AddFiwareService(service string) error
func (*SqliteRepo) AddIota ¶
func (sr *SqliteRepo) AddIota(host string, port int, alias string) error
func (*SqliteRepo) DeleteFiwareService ¶
func (sr *SqliteRepo) DeleteFiwareService(id string) error
func (*SqliteRepo) DeleteIota ¶
func (sr *SqliteRepo) DeleteIota(id string) error
func (*SqliteRepo) FindFiwareServiceByName ¶
func (sr *SqliteRepo) FindFiwareServiceByName(name string) (FiwareServiceRows, error)
func (*SqliteRepo) GetFiwareService ¶
func (sr *SqliteRepo) GetFiwareService(id string) (*FiwareServiceRow, error)
func (*SqliteRepo) ListFiwareServices ¶
func (sr *SqliteRepo) ListFiwareServices() (FiwareServiceRows, error)
func (*SqliteRepo) ListIotas ¶
func (sr *SqliteRepo) ListIotas() (IotaRows, error)
func (*SqliteRepo) SetIdGen ¶
func (sr *SqliteRepo) SetIdGen(f func() string)
func (*SqliteRepo) UpdateFiwareService ¶
func (sr *SqliteRepo) UpdateFiwareService(id string, name string) error
Click to show internal directories.
Click to hide internal directories.