logstream

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogStream

type LogStream interface {
	Publish(channel string, stream io.ReadCloser) error
	HeartBeat(name string, quit chan int)
}

type RedisLogStream

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

func NewRedisClient

func NewRedisClient(url string) (*RedisLogStream, error)

func (*RedisLogStream) HeartBeat

func (r *RedisLogStream) HeartBeat(name string, quit chan int)

func (*RedisLogStream) Publish

func (r *RedisLogStream) Publish(channel string, stream io.ReadCloser) error

func (*RedisLogStream) Subscribe

func (r *RedisLogStream) Subscribe(channel string) <-chan *redis.Message

TODO: return a generic type to include Subscribe to the interface

Jump to

Keyboard shortcuts

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