Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IpcManager ¶
type IpcManager struct {
// contains filtered or unexported fields
}
IpcManager has the global IPC, it takes care of informing all fetcher when IPC is changed
func (*IpcManager) ChangeIPC ¶
func (im *IpcManager) ChangeIPC()
ChangeIPC change IPC and inform all subscribers about the change
func (*IpcManager) EnableSwitchIPC ¶ added in v1.0.0
func (im *IpcManager) EnableSwitchIPC()
EnableSwitchIPC enable ForceChangeIPC
func (*IpcManager) ForceChangeIPC ¶ added in v1.0.0
func (im *IpcManager) ForceChangeIPC()
ForceChangeIPC force change ipc, otherwise panic
func (*IpcManager) SetIPC ¶
func (im *IpcManager) SetIPC(ipcs []string) error
SetIPC gets called from main
func (*IpcManager) Subscribe ¶
func (im *IpcManager) Subscribe(sub *IpcSubscriber)
Subscribe method for a subscriber to call
type IpcSubscriber ¶
IpcSubscriber interface for subscribers
Click to show internal directories.
Click to hide internal directories.