infrastructure

package
v0.0.0-...-f20c94d Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2016 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Port       int
	DbPassword string
}

Configuration struct holding different options

func LoadConfigurations

func LoadConfigurations() *Configuration

LoadConfigurations loads configurations from pubkeymanager.conf and then returns a pointer

type SqliteHandler

type SqliteHandler struct {
	Conn *sql.DB
}

SqliteHandler struct

func NewSqliteHandler

func NewSqliteHandler(dbfileName string, password string) *SqliteHandler

NewSqliteHandler creates a new Ciphered SqliteHandler

func (*SqliteHandler) Execute

func (handler *SqliteHandler) Execute(statement string, args ...interface{}) (interfaces.Result, error)

Execute function contained on SqliteHandler

func (*SqliteHandler) Query

func (handler *SqliteHandler) Query(statement string, args ...interface{}) (interfaces.Row, error)

Query function contained on SqliteHandler

type SqliteResult

type SqliteResult struct {
	Result sql.Result
}

SqliteResult struct

func (SqliteResult) LastInsertId

func (r SqliteResult) LastInsertId() (int64, error)

LastInsertId function contained on SqliteResult

func (SqliteResult) RowsAffected

func (r SqliteResult) RowsAffected() (int64, error)

RowsAffected function contained on SqliteResult

type SqliteRow

type SqliteRow struct {
	Rows *sql.Rows
}

SqliteRow struct

func (SqliteRow) Close

func (r SqliteRow) Close()

Close function contained on SqliteRow

func (SqliteRow) Next

func (r SqliteRow) Next() bool

Next function contained on SqliteRow

func (SqliteRow) Scan

func (r SqliteRow) Scan(dest ...interface{})

Scan function contained on SqliteResult

Jump to

Keyboard shortcuts

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