demo

package
v0.0.0-...-60792e1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

README

This package contains some code I wrote while figuring out channels and goroutines. It uses the Resty HTTP REST lib, as well as my fcrypt lib.

Function ProcessIncomingMsgs uses a goroutine pipeline to GET and encrypt incoming messages.

Function UnlockMsgs decrypts messages and returns their contents via the result channel.

To run the tests and benchmarks:

go test github.com/nickcabral/fcrypt/demo -bench=.

Documentation

Overview

Package demo contains some code I wrote while figuring out channels and goroutines. It uses the Resty HTTP REST lib, as well as my fcrypt lib.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessIncomingMsgs

func ProcessIncomingMsgs(dataDir string, msgCnt int) <-chan string

ProcessIncomingMsgs uses a get/lock goroutine pipeline to process incoming messages

func UnlockMsgs

func UnlockMsgs(pw, dataDir string, msgIDs []string) <-chan string

UnlockMsgs decrypts the msg for each ID and returns its contents via the result channel

Types

This section is empty.

Jump to

Keyboard shortcuts

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