mysql

package
v0.0.0-...-e1c34d2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLClassRepository

type MySQLClassRepository struct {
	DBConn *sql.DB
}

func NewMySQLClassRepository

func NewMySQLClassRepository(dbConn *sql.DB) *MySQLClassRepository

func (*MySQLClassRepository) FetchAllClasses

func (m *MySQLClassRepository) FetchAllClasses() ([]*class.Class, error)

func (*MySQLClassRepository) FetchAllSessions

func (m *MySQLClassRepository) FetchAllSessions() ([]*class.Session, error)

func (*MySQLClassRepository) GetClass

func (m *MySQLClassRepository) GetClass(classID string) (*class.Class, error)

func (*MySQLClassRepository) GetSession

func (m *MySQLClassRepository) GetSession(sessionID int64) (*class.Session, error)

func (*MySQLClassRepository) StoreClass

func (m *MySQLClassRepository) StoreClass(c *class.Class) error

Jump to

Keyboard shortcuts

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