Documentation
¶
Index ¶
- type Core
- func (c *Core) AddSubscription(ctx context.Context, rawURL string) error
- func (c *Core) Connect(ctx context.Context, nodeID, subscriptionID string) error
- func (c *Core) Disconnect(ctx context.Context) error
- func (c *Core) MoveSubscription(id string, dir int) error
- func (c *Core) Probe(ctx context.Context, sub, id string) error
- func (c *Core) RefreshSubscription(ctx context.Context, id string) error
- func (c *Core) RefreshSubscriptions(ctx context.Context) error
- func (c *Core) RemoveSubscription(id string) error
- func (c *Core) RestartRequested() <-chan struct{}
- func (c *Core) Restore()
- func (c *Core) SetSettings(ctx context.Context, settings domain.Settings) error
- func (c *Core) SetTun(ctx context.Context, enable bool) error
- func (c *Core) Shutdown()
- func (c *Core) Snapshot() ipc.Snapshot
- func (c *Core) Watch() (ipc.Changed, <-chan ipc.Changed, func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
func New ¶
func New(st store.Disk, conn *connection.Service, subs *subscription.Service) (*Core, error)
func (*Core) AddSubscription ¶
func (*Core) RefreshSubscription ¶
func (*Core) RemoveSubscription ¶
func (*Core) RestartRequested ¶
func (c *Core) RestartRequested() <-chan struct{}
func (*Core) SetSettings ¶
Click to show internal directories.
Click to hide internal directories.