Skip to content

Instantly share code, notes, and snippets.

@nidhi-ag
nidhi-ag / ssdb_priority_queue.go
Last active January 15, 2018 12:15
Use ssdb as priority queue in GO
import (
"github.com/ssdb/gossdb/ssdb"
"strconv"
"time"
)
var priorityQueue *ssdb.Client
func pushToQueue() {
key := "xyz" // Some unique key
FROM nidhi11594/node-go:latest
# Install glide
RUN curl https://glide.sh/get | sh
RUN mkdir -p /go/src/github.com/App
COPY . /go/src/github.com/App
WORKDIR /go/src/github.com/App
# Install node packages
FROM golang:1.7
# Install glide
RUN curl https://glide.sh/get | sh
RUN mkdir -p /go/src/github.com/App
COPY . /go/src/github.com/App
WORKDIR /go/src/github.com/App
# Install go packages