redis

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

README

To compile protocol buffer definitions, you need to have installed the standard C++ implementation of protocol buffers and the Go compiler plugin, protoc-gen-go. See here for installation instructions.

Run the following command within this directory: protoc --go_out=build/gen *.proto

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() (redis.Conn, error)

func Record

func Record(logger *zap.Logger, triggerName string, recorderName string, reqUID string, request *http.Request, originalUrl url.URL, payload string, response *http.Response, namespace string, timestamp int64)

func RecordsFilterByFunction

func RecordsFilterByFunction(logger *zap.Logger, queriedFunctionName string, recorders *fv1.RecorderList, triggers *fv1.HTTPTriggerList) ([]byte, error)

func RecordsFilterByTime

func RecordsFilterByTime(logger *zap.Logger, from string, to string) ([]byte, error)

Input: `from` (hours ago, between 0 [today] and 5) and `to` (same units) Note: Fractional values don't seem to work -- document that for the user

func RecordsFilterByTrigger

func RecordsFilterByTrigger(logger *zap.Logger, queriedTriggerName string, recorders *fv1.RecorderList, triggers *fv1.HTTPTriggerList) ([]byte, error)

func RecordsListAll

func RecordsListAll(logger *zap.Logger) ([]byte, error)

func ReplayByReqUID

func ReplayByReqUID(logger *zap.Logger, routerUrl string, queriedID string) ([]byte, error)

func ReplayRequest

func ReplayRequest(routerUrl string, request *redisCache.Request) ([]string, error)

Types

This section is empty.

Directories

Path Synopsis
build
gen

Jump to

Keyboard shortcuts

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