Versions in this module Expand all Collapse all v0 v0.1.0 Oct 3, 2023 Changes in this version + var ErrPbxIPNotDefined = errors.New("pbx ip address not defined") + var ErrRTPEnginePublicIPNotDefined = errors.New("rtp engine public ip address not defined") + var ErrSbcFqdnNotDefined = errors.New("sbc fqdn not defined") + func DefaultDBLocation() string + type IDB interface + Close func() error + CreateFreshDB func() error + GetAllFqdnNames func() ([]string, error) + GetContainerIDsFromSbcFqdn func(sbcFqdn string) []string + GetKamailioInsertID func(sbcFqdn string) int64 + GetLetsEncryptNodeID func() (string, error) + GetRTPEngineInsertID func(sbcFqdn string) int64 + GetSBCIdFromFqdn func(sbcFqdn string) int64 + GetSBCParameters func(sbcID int64) (types.Sbc, error) + RemoveLetsEncryptInfo func(nodeID string) error + RemoveSbcInfo func(sbcFqdn string) error + RevertLastInsert func() + SaveContainerID func(rowID int64, tableName, id string) error + SaveSBCInformation func() (int64, error) + func NewDB(logger hclog.Logger, dbLocation string) (IDB, error)