gopli: github.com/timakin/gopli/database Index | Files

package database

import "github.com/timakin/gopli/database"

Index

Package Files

database.go mysql.go

type DBConnector Uses

type DBConnector struct {
    SSHClient        *ssh.Client
    Host             string
    ManagementSystem string
    Name             string
    User             string
    Password         string
    IsContainer      bool
}

type DBFetcher Uses

type DBFetcher interface {
    Fetch() error
}

func CreateFetcher Uses

func CreateFetcher(dbConf Database, sshConf SSH) (fetcher DBFetcher, err error)

type DBInserter Uses

type DBInserter interface {
    Clean() error
    Insert() error
}

func CreateInserter Uses

func CreateInserter(dbConf Database, sshConf SSH) (inserter DBInserter, err error)

type MySQLFetcher Uses

type MySQLFetcher DBConnector

func (*MySQLFetcher) Fetch Uses

func (fetcher *MySQLFetcher) Fetch() error

type MySQLInserter Uses

type MySQLInserter DBConnector

func (*MySQLInserter) Clean Uses

func (inserter *MySQLInserter) Clean() error

func (*MySQLInserter) Insert Uses

func (inserter *MySQLInserter) Insert() error

Package database imports 13 packages (graph) and is imported by 2 packages. Updated 2017-02-02. Refresh now. Tools for package owners.