db

package
v1.0.29 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallRepository

type CallRepository interface {
	Calls(from, to string) <-chan opensips.Call
}

type CallService

type CallService struct {
	Repo CallRepository
}

func NewCallService

func NewCallService(dbType string) *CallService

func (*CallService) Calls

func (c *CallService) Calls(from, to string) <-chan opensips.Call

type PhoneRepository

type PhoneRepository interface {
	Phones() ([]cti.Phone, error)
	PhonesMap() (map[string]cti.Phone, error)
}

type PhoneService

type PhoneService struct {
	Repo PhoneRepository
}

func NewPhoneService

func NewPhoneService(dbType string) *PhoneService

func (*PhoneService) Phones

func (p *PhoneService) Phones() ([]cti.Phone, error)

func (*PhoneService) PhonesMap

func (p *PhoneService) PhonesMap() (map[string]cti.Phone, error)

Directories

Path Synopsis
mysql
cti

Jump to

Keyboard shortcuts

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