jsync

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeforeInsertCallback added in v1.1.0

type BeforeInsertCallback func(map[any]any) map[any]any

type JSync

type JSync struct {
	L zerolog.Logger
	// contains filtered or unexported fields
}

func New

func New(cfg *config.JetimobCfg, version string) (*JSync, error)

func (JSync) Config

func (j JSync) Config() *config.JetimobCfg

func (JSync) Db

func (j JSync) Db() *db.Db

func (*JSync) ForEachTenant

func (j *JSync) ForEachTenant(f func() error) error

func (JSync) GetBannersTable

func (j JSync) GetBannersTable() string

func (JSync) GetBrokersTable

func (j JSync) GetBrokersTable() string

func (JSync) GetCondominiumsTable

func (j JSync) GetCondominiumsTable() string

func (JSync) GetPropertiesTable

func (j JSync) GetPropertiesTable() string

func (JSync) GetTenants

func (j JSync) GetTenants() []config.TenantMapping

func (JSync) MarkPropertiesAsActive

func (j JSync) MarkPropertiesAsActive(tx *sql.Tx, ids []int) error

func (JSync) Requester

func (j JSync) Requester() *http.Requester

func (*JSync) SetCurrentTenant

func (j *JSync) SetCurrentTenant(t config.TenantMapping)

func (JSync) SyncActiveProperties

func (j JSync) SyncActiveProperties(tx *sql.Tx) error

func (JSync) SyncAll

func (j JSync) SyncAll() error

func (JSync) SyncBanners

func (j JSync) SyncBanners(tx *sql.Tx) error

func (JSync) SyncBrokers

func (j JSync) SyncBrokers(tx *sql.Tx) error

func (JSync) SyncCondominiums

func (j JSync) SyncCondominiums(tx *sql.Tx) error

func (JSync) SyncProperties

func (j JSync) SyncProperties(tx *sql.Tx) error

Jump to

Keyboard shortcuts

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