service

package
v0.0.0-...-1327151 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package service initializes Google Cloud services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB(ctx context.Context, l *zap.Logger) (*db.DB, error)

DB opens a database connection to the Cloud SQL instance.

func Initialize

func Initialize(i Init)

Initialize runs an initializaiton function.

func Logger

func Logger() (*zap.Logger, error)

Logger builds a logger for use in service code.

func ResultsFileSystem

func ResultsFileSystem(ctx context.Context) (fs.Interface, error)

ResultsFileSystem builds filesystem access to results data files.

Types

type Init

type Init func(ctx context.Context, l *zap.Logger) error

Init is an initializaiton function.

Jump to

Keyboard shortcuts

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