redis

package
v0.0.325 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Package__1i719d = &core.Package{
		PackageName: "namespacelabs.dev/foundation/universe/db/redis",
	}

	Provider__1i719d = core.Provider{
		Package:     Package__1i719d,
		Instantiate: makeDeps__1i719d,
	}
)
View Source
var File_universe_db_redis_provider_proto protoreflect.FileDescriptor

Functions

func ProvideRedis

func ProvideRedis(ctx context.Context, args *RedisArgs, deps ExtensionDeps) (*redis.Client, error)

Types

type ExtensionDeps

type ExtensionDeps struct {
	OpenTelemetry  tracing.DeferredTracerProvider
	ReadinessCheck core.Check
}

Dependencies that are instantiated once for the lifetime of the extension.

type RedisArgs

type RedisArgs struct {
	Database int32 `protobuf:"varint,1,opt,name=database,proto3" json:"database,omitempty"`
	// contains filtered or unexported fields
}

func (*RedisArgs) Descriptor deprecated

func (*RedisArgs) Descriptor() ([]byte, []int)

Deprecated: Use RedisArgs.ProtoReflect.Descriptor instead.

func (*RedisArgs) GetDatabase

func (x *RedisArgs) GetDatabase() int32

func (*RedisArgs) ProtoMessage

func (*RedisArgs) ProtoMessage()

func (*RedisArgs) ProtoReflect

func (x *RedisArgs) ProtoReflect() protoreflect.Message

func (*RedisArgs) Reset

func (x *RedisArgs) Reset()

func (*RedisArgs) String

func (x *RedisArgs) String() string

Jump to

Keyboard shortcuts

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