datastore

package
v0.0.0-...-0149ed5 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Client *redis.Client
}

func NewRedis

func NewRedis(ctx context.Context, cfg *config.Config) (*Cache, error)

func (*Cache) Ping

func (c *Cache) Ping(ctx context.Context) error

type Database

type Database struct {
	Client *ent.Client
	// contains filtered or unexported fields
}

func NewMySQL

func NewMySQL(ctx context.Context, cfg *config.Config) (*Database, error)

func (*Database) Ping

func (d *Database) Ping(ctx context.Context) error

Jump to

Keyboard shortcuts

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