Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provisioner ¶
type Provisioner struct {
// contains filtered or unexported fields
}
func New ¶
func New(opt *Options) (*Provisioner, error)
func (*Provisioner) Heartbeat ¶
func (p *Provisioner) Heartbeat(shardID string) error
func (*Provisioner) Release ¶
func (p *Provisioner) Release(shardID string) error
func (*Provisioner) TTL ¶
func (p *Provisioner) TTL() time.Duration
func (*Provisioner) TryAcquire ¶
func (p *Provisioner) TryAcquire(shardID string) error
Click to show internal directories.
Click to hide internal directories.