providers

package
v0.0.0-...-ffb6f1e Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var P *providers

P is providers container

Functions

func Init

func Init() (func(), error)

Init providers

func NewConfig

func NewConfig() (*config.Root, func(), error)

NewConfig getter

Types

type DB

type DB struct {
	ParserR dao.IDAO
	ParserW dao.IDAO
}

DB connections holder

func NewDB

func NewDB(cfg *config.Root) (*DB, func(), error)

NewDB getter

type Noti

type Noti struct {
	// contains filtered or unexported fields
}

Noti holder

func NewNoti

func NewNoti(cfg *config.Root) (*Noti, func(), error)

NewNoti getter

func (*Noti) Get

func (n *Noti) Get() *noti.Noti

Get default sender

type RPCPool

type RPCPool struct {
	DefaultGetRPCTimeout time.Duration
	Pool                 *pool.Pool
}

RPCPool holder

func NewRPCPool

func NewRPCPool(cfg *config.Root) (*RPCPool, func(), error)

NewRPCPool getter

func (*RPCPool) Conn

func (p *RPCPool) Conn() (*conn.Conn, *pool.Conn, error)

Conn gets connection easily

Jump to

Keyboard shortcuts

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