db

package
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DRIVER_NAME = "mysql" // ドライバ名(mysql固定)
	// user:password@tcp(container-name:port)/dbname ※mysql はデフォルトで用意されているDB
	DATA_SOURCE_NAME = "docker:docker@tcp(db:3306)/network-monitoring?parseTime=true"
)

DB の接続情報

Variables

View Source
var DB *sql.DB

Functions

func RecordEndAt

func RecordEndAt()

func RecordStartAt

func RecordStartAt()

TODO: disconnected data store function

Types

type DisconnectDate

type DisconnectDate struct {
	ID      int
	StartAt time.Time
	EndAt   time.Time
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL