Documentation ¶
Index ¶
- type ActionJob
- type ActionResult
- type Actions
- func (a *Actions) Action(ap *mediaserverproto.ActionParam, domain string, actionTimeout time.Duration) (*mediaserverproto.Cache, error)
- func (a *Actions) AddClient(name string, client *ClientEntry)
- func (a *Actions) GetClient(name string) (*ClientEntry, bool)
- func (a *Actions) GetParams(_type, action, domain string) ([]string, error)
- func (a *Actions) IsEmpty() bool
- func (a *Actions) RemoveClient(name string) error
- func (a *Actions) Start() error
- func (a *Actions) Stop() error
- type Cache
- func (c *Cache) Action(ap *mediaserverproto.ActionParam, domain string) (*mediaserverproto.Cache, error)
- func (c *Cache) AddActions(typeActionsParams TypeActionParams, domains []string) error
- func (c *Cache) AddClientEntry(typeActionsParams TypeActionParams, domains []string, name string, ...)
- func (c *Cache) Close() error
- func (c *Cache) GetAction(mediaType, action, domain string) (*Actions, bool)
- func (c *Cache) GetActions(typeActions TypeAction, domains []string) (resultActions *Actions, resultOK bool)
- func (c *Cache) GetAllActionParam() TypeActionParams
- func (c *Cache) GetClientEntry(mediaType, action, domain, address string) (*ClientEntry, bool)
- func (c *Cache) GetClientEntryByName(name string) (resultClient *ClientEntry, resultDomains []string, ...)
- func (c *Cache) GetParams(mediaType string, action string) ([]string, error)
- func (c *Cache) RemoveClientEntry(address string) error
- func (c *Cache) SetAction(typeActionsParam TypeActionParams, domains []string, actionsObject *Actions)
- type ClientEntry
- type CurrentActions
- func (ca *CurrentActions) AddAction(id string) error
- func (ca *CurrentActions) AddWaiter(id string, ch chan<- *ActionResult) error
- func (ca *CurrentActions) GetWaiters(id string) []chan<- *ActionResult
- func (ca *CurrentActions) HasAction(id string) bool
- func (ca *CurrentActions) RemoveAction(id string) error
- type Queue
- type TypeAction
- type TypeActionParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionResult ¶
type ActionResult struct {
// contains filtered or unexported fields
}
type Actions ¶
type Actions struct {
// contains filtered or unexported fields
}
func (*Actions) Action ¶
func (a *Actions) Action(ap *mediaserverproto.ActionParam, domain string, actionTimeout time.Duration) (*mediaserverproto.Cache, error)
func (*Actions) AddClient ¶
func (a *Actions) AddClient(name string, client *ClientEntry)
func (*Actions) RemoveClient ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func NewCache ¶
func NewCache(actionTimeout time.Duration, dbs map[string]mediaserverproto.DatabaseClient, allDomains []string, logger zLogger.ZLogger) *Cache
func (*Cache) Action ¶
func (c *Cache) Action(ap *mediaserverproto.ActionParam, domain string) (*mediaserverproto.Cache, error)
func (*Cache) AddActions ¶
func (c *Cache) AddActions(typeActionsParams TypeActionParams, domains []string) error
func (*Cache) AddClientEntry ¶
func (c *Cache) AddClientEntry(typeActionsParams TypeActionParams, domains []string, name string, client *ClientEntry)
func (*Cache) GetActions ¶
func (c *Cache) GetActions(typeActions TypeAction, domains []string) (resultActions *Actions, resultOK bool)
func (*Cache) GetAllActionParam ¶ added in v2.0.7
func (c *Cache) GetAllActionParam() TypeActionParams
func (*Cache) GetClientEntry ¶
func (c *Cache) GetClientEntry(mediaType, action, domain, address string) (*ClientEntry, bool)
func (*Cache) GetClientEntryByName ¶ added in v2.0.20
func (c *Cache) GetClientEntryByName(name string) (resultClient *ClientEntry, resultDomains []string, resultTypeActions TypeAction, rok bool)
func (*Cache) RemoveClientEntry ¶ added in v2.0.19
type ClientEntry ¶
func NewClientEntry ¶
func NewClientEntry(name string, client mediaserverproto.ActionClient, closer io.Closer, interval time.Duration, dbs map[string]mediaserverproto.DatabaseClient, queueSize int) *ClientEntry
func (*ClientEntry) Close ¶
func (c *ClientEntry) Close() error
func (*ClientEntry) RefreshTimeout ¶
func (c *ClientEntry) RefreshTimeout(interval time.Duration)
func (*ClientEntry) SetTimeout ¶
func (c *ClientEntry) SetTimeout(expiration time.Time)
type CurrentActions ¶ added in v2.0.12
func NewCurrentActions ¶ added in v2.0.12
func NewCurrentActions() *CurrentActions
func (*CurrentActions) AddAction ¶ added in v2.0.12
func (ca *CurrentActions) AddAction(id string) error
func (*CurrentActions) AddWaiter ¶ added in v2.0.12
func (ca *CurrentActions) AddWaiter(id string, ch chan<- *ActionResult) error
func (*CurrentActions) GetWaiters ¶ added in v2.0.12
func (ca *CurrentActions) GetWaiters(id string) []chan<- *ActionResult
func (*CurrentActions) HasAction ¶ added in v2.0.12
func (ca *CurrentActions) HasAction(id string) bool
func (*CurrentActions) RemoveAction ¶ added in v2.0.12
func (ca *CurrentActions) RemoveAction(id string) error
type TypeAction ¶ added in v2.0.20
func (TypeAction) Equals ¶ added in v2.0.20
func (ta TypeAction) Equals(ta2 TypeAction) bool
func (TypeAction) String ¶ added in v2.0.20
func (ta TypeAction) String() string
type TypeActionParams ¶ added in v2.0.20
func (TypeActionParams) Equals ¶ added in v2.0.20
func (tap TypeActionParams) Equals(tap2 TypeActionParams) bool
func (TypeActionParams) GetTypeActions ¶ added in v2.0.20
func (tap TypeActionParams) GetTypeActions() TypeAction
Click to show internal directories.
Click to hide internal directories.