database

package
v0.0.0-...-ff00275 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Context context.Context
	Driver  string
	DSN     string

	Log *zap.Logger
}

type Database

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

func New

func New(cfg Config) (*Database, error)

func (*Database) PutSignature

func (d *Database) PutSignature(ctx context.Context, model *models.Signature) (*models.Signature, error)

func (*Database) Stop

func (d *Database) Stop() error

Jump to

Keyboard shortcuts

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