infrastructures

package
v0.0.0-...-6192489 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connection

func Connection(db, descriptor string, maxIdle, maxConns int) *dbr.Connection

Connection open a new database connection

Types

type IRedis

type IRedis interface {
	Client() *redis.Client
}

IRedis interface

type ISQLConnection

type ISQLConnection interface {
	EsignRead() *dbr.Session
	EsignWrite() *dbr.Session
}

ISQLConnection is

type Redis

type Redis struct{}

Redis struct

func (*Redis) Client

func (r *Redis) Client() *redis.Client

Client return new redis client from given address and password

type SQLConnection

type SQLConnection struct{}

SQLConnection define sql connection.

func (*SQLConnection) EsignRead

func (s *SQLConnection) EsignRead() *dbr.Session

EsignRead create a new bareksa_marketdata session

func (*SQLConnection) EsignWrite

func (s *SQLConnection) EsignWrite() *dbr.Session

EsignWrite create a new bareksa_marketdata session

Jump to

Keyboard shortcuts

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