fake

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Poller

type Poller[T any] struct {
	Update T
	Err    error
}

func (Poller[T]) Poll

func (p Poller[T]) Poll(_ context.Context) (T, error)

type Publisher

type Publisher[T any] struct {
	// contains filtered or unexported fields
}

func (*Publisher[T]) Publish

func (f *Publisher[T]) Publish(_ context.Context, value T) error

func (*Publisher[T]) Published

func (f *Publisher[T]) Published() []T

type RedisClient added in v0.2.4

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

func (*RedisClient) Get added in v0.2.4

func (f *RedisClient) Get(ctx context.Context, key string) *redis.StringCmd

func (*RedisClient) Set added in v0.2.4

func (f *RedisClient) Set(ctx context.Context, key string, value interface{}, _ time.Duration) *redis.StatusCmd

Jump to

Keyboard shortcuts

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