clients

package
v0.0.0-...-76fd6e2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthClient

type EthClient struct {
	*ethclient.Client
}

func NewEthClient

func NewEthClient(ethUrl string) (*EthClient, error)

func (*EthClient) Disconnect

func (c *EthClient) Disconnect()

type MongoClient

type MongoClient struct {
	Database *mongo.Database
}

func NewMongoClient

func NewMongoClient(mongoUri string, mongoDb string) (*MongoClient, error)

func (*MongoClient) Disconnect

func (c *MongoClient) Disconnect(ctx context.Context) error

type PostgreClient

type PostgreClient struct {
	Database *sql.DB
}

func NewPostgreClient

func NewPostgreClient(uri string) (*PostgreClient, error)

func (*PostgreClient) Disconnect

func (c *PostgreClient) Disconnect() error

Jump to

Keyboard shortcuts

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