libqueue

package module
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 0 Imported by: 5

README

libqueue

License


Introduction

libqueue is a public library supporting different message queue functions,currently supports etcd and redis.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IClient

type IClient interface {
}

type IPubSub

type IPubSub interface {
	SetClient(iClient *IClient) IPubSub
	SetChannel(channel string) IPubSub
	Publish(msg string) error
	ReceiveMessage() chan string
	Close() error
}

type IQueue

type IQueue interface {
	SetClient(iClient *IClient) IQueue
	SetTopic(topic string) IQueue
	Enqueue(string) error
	Dequeue() (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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