mysql

package
v0.0.0-...-f1b8dfb Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2017 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func Open

func Open(conn string) (*Database, error)

func (*Database) CreateAction

func (d *Database) CreateAction(in *pb.Action) (*pb.Action, error)

func (*Database) CreateOccurrence

func (d *Database) CreateOccurrence(in *pb.Occurrence) (*pb.Occurrence, error)

func (*Database) ReadActionByID

func (d *Database) ReadActionByID(id int64) (*pb.Action, error)

func (*Database) ReadActionByNameAndUserID

func (d *Database) ReadActionByNameAndUserID(name string, userID int64) (*pb.Action, error)

Jump to

Keyboard shortcuts

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