Documentation
¶
Index ¶
- Variables
- func CloseClient(dsn string) error
- type Client
- type ClientPostgres
- type ClientRedis
- func (c *ClientRedis) Close() error
- func (c *ClientRedis) Columns(ctx context.Context, s string, n string) ([]ColumnSQL, error)
- func (c *ClientRedis) Get(ctx context.Context, key string) (any, error)
- func (c *ClientRedis) GetDB() (*bun.DB, error)
- func (c *ClientRedis) GetWithExpiration(ctx context.Context, key string) (any, *int64, error)
- func (c *ClientRedis) Keys(ctx context.Context, input string) ([]string, error)
- func (c *ClientRedis) Set(ctx context.Context, t string, k string, v any) error
- func (c *ClientRedis) SetWithExpiration(ctx context.Context, t string, k string, v any, e *int64) error
- func (c *ClientRedis) Tables(ctx context.Context) ([]TableSQL, error)
- func (c *ClientRedis) TestConnection(ctx context.Context) error
- type ClientSQL
- type ColumnPostgres
- type ColumnSQL
- type TablePostgres
- type TableSQL
Constants ¶
This section is empty.
Variables ¶
View Source
var Clients = make(map[string]Client)
Functions ¶
func CloseClient ¶
Types ¶
type Client ¶
type ClientPostgres ¶ added in v1.1.0
type ClientPostgres struct {
*ClientSQL
}
func NewCLientPostgres ¶ added in v1.1.0
func NewCLientPostgres(dsn string) (*ClientPostgres, error)
type ClientRedis ¶
type ClientRedis struct {
Client *redis.Client
}
func NewClientRedis ¶
func NewClientRedis(dsn string) (*ClientRedis, error)
func (*ClientRedis) Close ¶
func (c *ClientRedis) Close() error
func (*ClientRedis) GetWithExpiration ¶
func (*ClientRedis) SetWithExpiration ¶
func (*ClientRedis) Tables ¶ added in v1.1.0
func (c *ClientRedis) Tables(ctx context.Context) ([]TableSQL, error)
func (*ClientRedis) TestConnection ¶
func (c *ClientRedis) TestConnection(ctx context.Context) error
type ClientSQL ¶ added in v1.1.0
type ClientSQL struct {
// contains filtered or unexported fields
}
type ColumnPostgres ¶ added in v1.1.0
type TablePostgres ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.