app

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Db    Database
	Giphy GiphyAdapter
}

Container Define the main container for the application

type Database

type Database interface {
	Close()
	Connect(dbFile string) error
	Exec(sql string, args ...interface{}) (sql.Result, error)
	Query(sql string, args ...interface{}) (rows.Rows, error)
}

Database Define same interface as database

type GiphyAdapter

type GiphyAdapter interface {
	SearchForID(s string) (string, error)
}

GiphyAdapter Interface for API

Directories

Path Synopsis
controller
web

Jump to

Keyboard shortcuts

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