pubsub

package
v0.1.43 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisService

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

RedisService service

func NewPubSub

func NewPubSub() *RedisService

NewPubSUb returns a new service using pool with host/port/password from environment variabls.

func (*RedisService) Publish

func (s *RedisService) Publish(key string, value string) (err error)

Publish publish key value

func (*RedisService) Subscribe

func (s *RedisService) Subscribe(key []string, msg chan []byte) (err error)

Subscribe subscribe

Jump to

Keyboard shortcuts

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