pubsub

package
v0.0.0-...-98a7958 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package pubsub implements pub/sub interfaces defined in package kolide.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInmemQueryResults

func NewInmemQueryResults() *inmemQueryResults

NewInmemQueryResults initializes a new in-memory implementation of the QueryResultStore interface.

func NewRedisPool

func NewRedisPool(server, password string, database int, useTLS bool) *redis.Pool

NewRedisPool creates a Redis connection pool using the provided server address, password and database.

func NewRedisQueryResults

func NewRedisQueryResults(pool *redis.Pool) *redisQueryResults

NewRedisQueryResults creats a new Redis implementation of the QueryResultStore interface using the provided Redis connection pool.

Types

type Error

type Error interface {
	error
	// NoSubscriber returns true if the error occurred because there are no
	// subscribers on the channel
	NoSubscriber() bool
}

Error defines the interface of errors specific to the pubsub package

Jump to

Keyboard shortcuts

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