Documentation ¶
Index ¶
- type ActionJob
- type ActionParams
- type ActionResult
- type Actions
- func (a *Actions) Action(ap *mediaserverationactionproto.ActionParam, actionTimeout time.Duration) (*mediaserverdbproto.Cache, error)
- func (a *Actions) AddClient(name string, client *ClientEntry)
- func (a *Actions) GetClient(name string) (*ClientEntry, bool)
- func (a *Actions) GetParams(action string) ([]string, error)
- func (a *Actions) RemoveClient(name string)
- type Cache
- func (c *Cache) Action(ap *mediaserverationactionproto.ActionParam) (*mediaserverdbproto.Cache, error)
- func (c *Cache) AddActions(mediaType string, actions []string)
- func (c *Cache) AddClientEntry(mediaType, action, address string, client *ClientEntry)
- func (c *Cache) GetActions(mediaType, action string) (*Actions, bool)
- func (c *Cache) GetClientEntry(mediaType, action, address string) (*ClientEntry, bool)
- func (c *Cache) GetParams(mediaType string, action string) ([]string, error)
- func (c *Cache) SetAction(mediaType string, action string, actions *Actions)
- type ClientEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionParams ¶
func (ActionParams) Del ¶
func (ap ActionParams) Del(key string)
func (ActionParams) Get ¶
func (ap ActionParams) Get(key string) string
func (ActionParams) Has ¶
func (ap ActionParams) Has(key string) bool
func (ActionParams) Set ¶
func (ap ActionParams) Set(key, value string)
func (ActionParams) SetString ¶
func (ap ActionParams) SetString(paramStr string, keys []string)
func (ActionParams) String ¶
func (ap ActionParams) String() string
type ActionResult ¶
type ActionResult struct {
// contains filtered or unexported fields
}
type Actions ¶
type Actions struct {
// contains filtered or unexported fields
}
func NewActions ¶
func (*Actions) Action ¶
func (a *Actions) Action(ap *mediaserverationactionproto.ActionParam, actionTimeout time.Duration) (*mediaserverdbproto.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, db mediaserverdbproto.DBControllerClient, logger zLogger.ZLogger) *Cache
func (*Cache) Action ¶
func (c *Cache) Action(ap *mediaserverationactionproto.ActionParam) (*mediaserverdbproto.Cache, error)
func (*Cache) AddActions ¶
func (*Cache) AddClientEntry ¶
func (c *Cache) AddClientEntry(mediaType, action, address string, client *ClientEntry)
func (*Cache) GetClientEntry ¶
func (c *Cache) GetClientEntry(mediaType, action, address string) (*ClientEntry, bool)
type ClientEntry ¶
func NewClientEntry ¶
func NewClientEntry(name string, client pb.ActionControllerClient, closer io.Closer, interval time.Duration, db mediaserverdbproto.DBControllerClient) *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)
Click to show internal directories.
Click to hide internal directories.