redis

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InitOpts

type InitOpts struct {
	RedisHost     string
	RedisPort     string
	RedisUsername string
	RedisPassword string
	RedisDB       int
}

type RedisLogStorageManager

type RedisLogStorageManager struct {
	// contains filtered or unexported fields
}

func NewRedisLogStorageManager

func NewRedisLogStorageManager(opts *InitOpts) (*RedisLogStorageManager, error)

func (*RedisLogStorageManager) ClearLogs

func (c *RedisLogStorageManager) ClearLogs(ctx context.Context, path string) error

func (*RedisLogStorageManager) GetID

func (c *RedisLogStorageManager) GetID() string

func (*RedisLogStorageManager) PushLogLine

func (c *RedisLogStorageManager) PushLogLine(ctx context.Context, path string, log []byte) error

func (*RedisLogStorageManager) ReadLogs

func (*RedisLogStorageManager) StreamLogs

Jump to

Keyboard shortcuts

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