Documentation ¶
Index ¶
- Constants
- func FSAddress() string
- func GetAll() map[string][]Service
- func OnCreate(fn func(Service))
- func OnDelete(fn func(Service))
- func OnUpdate(fn func(Service))
- func Register(typ, remoteAddr, port, connID, commonJS string) (interface{}, error)
- func Unregister(id string)
- type RegisterMessage
- type Service
Constants ¶
View Source
const ( TypeWorker = "worker" TypePBX = "pbx" TypeTaskQueue = "taskQueue" TypeCron = "cron" TypeFileStore = "fileStore" TypeQueue = "queue" PortWorker = "1234" PortPBX = "1234" PortTaskQueue = "1234" )
Services types consts
Variables ¶
This section is empty.
Functions ¶
func FSAddress ¶ added in v0.1.21
func FSAddress() string
FSAddress returns File Storage address if exists or empty string
func OnCreate ¶
func OnCreate(fn func(Service))
OnCreate pass handler func, that will call when new service will created
func OnDelete ¶
func OnDelete(fn func(Service))
OnDelete pass handler func, that will call when existing service will deleted
func OnUpdate ¶
func OnUpdate(fn func(Service))
OnUpdate pass handler func, that will call when existing service will created
Types ¶
type RegisterMessage ¶
type RegisterMessage struct {
Type string `json:"type"`
}
Click to show internal directories.
Click to hide internal directories.