gateway

package
v0.0.0-...-fb91958 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemDBClient

type MemDBClient interface {
	Ping(ctx context.Context) error
	Set(ctx context.Context, key string, value any, duration time.Duration) error
	SetNX(ctx context.Context, key string, value any, duration time.Duration) (bool, error)
	Get(ctx context.Context, key string) (string, error)
	Del(ctx context.Context, key string) error
	SAdd(ctx context.Context, key string, values ...any) error
	SRem(ctx context.Context, key string, members ...any) error
	SMembers(ctx context.Context, key string) ([]string, error)
	PublishStream(ctx context.Context, streamKey string, messages map[string]any) error
	ReadStream(ctx context.Context, streamKey, messageKey, previousID string) (id, message string, err error)
	ReadStreamLatest(ctx context.Context, streamKey, messageKey string) (message string, err error)
	Expire(ctx context.Context, key string, duration time.Duration) error
}

Jump to

Keyboard shortcuts

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