ldb

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() *sql.DB

Connect to db

func GetActiveStations added in v0.2.7

func GetActiveStations() []map[string]string

GetActiveStations todo doc

Types

type ResServer added in v0.2.12

type ResServer interface {
	GetAllRoadstead(idPortinformer string) []map[string]string
	GetAllMoored(idPortinformer string) []map[string]string
	GetTodayArrivals(idPortinformer string, idArrivalPrevision int) []map[string]string
	GetTodayDepartures(idPortinformer string, idDepartureState int) []map[string]string
	GetArrivalPrevisions(idPortinformer string) []map[string]string
	GetTodayShippedGoods(idPortinformer string) []map[string]string
	GetTodayTrafficList(idPortinformer string) []map[string]string
	GetShiftingPrevisions(idPortinformer string) []map[string]string
	GetDeparturePrevisions(idPortinformer string) []map[string]string
	GetTodayShiftings(idPortinformer string) []map[string]string
	GetArrivalsRegister(idPortinformer string, idArrivalPrevision int, start string, stop string) []map[string]string
	GetMooredRegister(idPortinformer string, start string, stop string) []map[string]string
	GetRoadsteadRegister(idPortinformer string, start string, stop string) []map[string]string
	GetDeparturesRegister(idPortinformer string, idDepartureState int, start string, stop string) []map[string]string
	GetShiftingsRegister(idPortinformer string, start string, stop string) []map[string]string
	GetShippedGoodsRegister(idPortinformer string, start string, stop string) []map[string]string
	GetRegisterTrafficList(idPortinformer string, start string, stop string) []map[string]string
}

ResServer calls interface

func NewRepository added in v0.2.12

func NewRepository(db *sql.DB) ResServer

NewRepository connector builder

Jump to

Keyboard shortcuts

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