sql

package
v0.0.0-...-e6a9073 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLog

type AccessLog struct {
	DoorId int64
	State  doorservicepb.DoorState
	UserId *int64
}

Represents an access log to store in database

type Sql

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

Represents SQL database connection

func New

func New() (*Sql, error)

Creates a new Sql instance

func (*Sql) StoreAccessLog

func (sql *Sql) StoreAccessLog(accessLog AccessLog) error

Jump to

Keyboard shortcuts

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