Documentation ¶
Index ¶
- Variables
- type Supervisor
- func (s *Supervisor) DisablePorterContext(ctx context.Context, porterContext *modelsupervisor.PorterContext) error
- func (s *Supervisor) GetContextController(ctx context.Context, id model.InternalID) *modelsupervisor.PorterContextController
- func (s *Supervisor) GetFeatureSummary() *modelsupervisor.ServerFeatureSummary
- func (s *Supervisor) GetHeartbeatInterval() time.Duration
- func (s *Supervisor) GetInstanceController(ctx context.Context, address string) *modelsupervisor.PorterInstanceController
- func (s *Supervisor) HasAccountPlatform(platform string) bool
- func (s *Supervisor) HasAppInfoSource(source string) bool
- func (s *Supervisor) HasFeedItemAction(request *modelsupervisor.FeatureRequest) bool
- func (s *Supervisor) HasFeedSource(source *modelsupervisor.FeatureRequest) bool
- func (s *Supervisor) HasNotifyDestination(destination *modelsupervisor.FeatureRequest) bool
- func (s *Supervisor) QueuePorterContext(ctx context.Context, porterContext modelsupervisor.PorterContext) error
- func (s *Supervisor) RefreshAliveInstances(ctx context.Context) ([]*modelsupervisor.PorterInstance, error)
- func (s *Supervisor) WithAccountPlatform(ctx context.Context, platform string) context.Context
- func (s *Supervisor) WithAppInfoSource(ctx context.Context, source string) context.Context
- func (s *Supervisor) WithFeedItemAction(ctx context.Context, request *modelsupervisor.FeatureRequest) context.Context
- func (s *Supervisor) WithFeedSource(ctx context.Context, source *modelsupervisor.FeatureRequest) context.Context
- func (s *Supervisor) WithNotifyDestination(ctx context.Context, destination *modelsupervisor.FeatureRequest) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewSupervisor)
Functions ¶
This section is empty.
Types ¶
type Supervisor ¶
type Supervisor struct { UUID int64 // contains filtered or unexported fields }
func NewSupervisor ¶
func NewSupervisor( c *conf.Porter, mq *libmq.MQ, auth *libauth.Auth, porter *client.Porter, systemNotify *libmq.Topic[modelnetzach.SystemNotify], instanceCache *libcache.Map[string, modelsupervisor.PorterInstance], instanceContextCache *libcache.Map[model.InternalID, modelsupervisor.PorterContext], ) (*Supervisor, error)
func (*Supervisor) DisablePorterContext ¶ added in v0.2.11
func (s *Supervisor) DisablePorterContext( ctx context.Context, porterContext *modelsupervisor.PorterContext, ) error
func (*Supervisor) GetContextController ¶ added in v0.2.11
func (s *Supervisor) GetContextController( ctx context.Context, id model.InternalID, ) *modelsupervisor.PorterContextController
func (*Supervisor) GetFeatureSummary ¶
func (s *Supervisor) GetFeatureSummary() *modelsupervisor.ServerFeatureSummary
func (*Supervisor) GetHeartbeatInterval ¶ added in v0.2.11
func (s *Supervisor) GetHeartbeatInterval() time.Duration
func (*Supervisor) GetInstanceController ¶ added in v0.2.11
func (s *Supervisor) GetInstanceController( ctx context.Context, address string, ) *modelsupervisor.PorterInstanceController
func (*Supervisor) HasAccountPlatform ¶ added in v0.2.11
func (s *Supervisor) HasAccountPlatform(platform string) bool
func (*Supervisor) HasAppInfoSource ¶ added in v0.2.11
func (s *Supervisor) HasAppInfoSource(source string) bool
func (*Supervisor) HasFeedItemAction ¶ added in v0.2.11
func (s *Supervisor) HasFeedItemAction(request *modelsupervisor.FeatureRequest) bool
func (*Supervisor) HasFeedSource ¶ added in v0.2.11
func (s *Supervisor) HasFeedSource(source *modelsupervisor.FeatureRequest) bool
func (*Supervisor) HasNotifyDestination ¶ added in v0.2.11
func (s *Supervisor) HasNotifyDestination(destination *modelsupervisor.FeatureRequest) bool
func (*Supervisor) QueuePorterContext ¶ added in v0.2.11
func (s *Supervisor) QueuePorterContext( ctx context.Context, porterContext modelsupervisor.PorterContext, ) error
func (*Supervisor) RefreshAliveInstances ¶
func (s *Supervisor) RefreshAliveInstances( ctx context.Context, ) ([]*modelsupervisor.PorterInstance, error)
func (*Supervisor) WithAccountPlatform ¶ added in v0.2.11
func (*Supervisor) WithAppInfoSource ¶ added in v0.2.11
func (*Supervisor) WithFeedItemAction ¶ added in v0.2.11
func (s *Supervisor) WithFeedItemAction(ctx context.Context, request *modelsupervisor.FeatureRequest) context.Context
func (*Supervisor) WithFeedSource ¶ added in v0.2.11
func (s *Supervisor) WithFeedSource(ctx context.Context, source *modelsupervisor.FeatureRequest) context.Context
func (*Supervisor) WithNotifyDestination ¶ added in v0.2.11
func (s *Supervisor) WithNotifyDestination(ctx context.Context, destination *modelsupervisor.FeatureRequest) context.Context
Click to show internal directories.
Click to hide internal directories.