longpoll

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCancelled = errors.New("Cancelled")

Functions

This section is empty.

Types

type LongPollService added in v0.6.0

type LongPollService struct {
	// contains filtered or unexported fields
}

func NewLongPollService added in v0.6.0

func NewLongPollService(redis *redis.Client, key string) *LongPollService

func (*LongPollService) Push added in v0.6.0

func (pa *LongPollService) Push(ctx context.Context, runnerId string, data any) error

func (*LongPollService) Wait added in v0.6.0

func (pa *LongPollService) Wait(ctx context.Context, runnerId string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL