s

package module
v0.0.0-...-fd9f2d0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

README

S

GoDoc

S is a simple persistent message/task stack. It is written in Golang.

It has the following features:

Messages in S are very safe. They exist until the consumer confirms clearly, otherwise messages would be recycled and added back to stack again.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stack

type Stack struct {
	Path string `json:"path"`
	// contains filtered or unexported fields
}

func NewStack

func NewStack(path string) (*Stack, error)

func (*Stack) Close

func (s *Stack) Close()

func (*Stack) Confirm

func (s *Stack) Confirm(key string) error

func (*Stack) Drop

func (s *Stack) Drop()

func (*Stack) Pop

func (s *Stack) Pop(timeout int64) (string, string, error)

func (*Stack) Push

func (s *Stack) Push(data string) error

func (*Stack) Status

func (s *Stack) Status() map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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