counter

package
v0.0.0-...-4347b6b Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	service.Lifecycle

	Count(namespace, name string, userID uint64) (uint64, error)
	CountAll(namespace, name string) (uint64, error)
	Set(namespace, name string, userID, value uint64) error
}

Service for counter interactions.

func PostgresService

func PostgresService(db *sqlx.DB) Service

type ServiceMiddleware

type ServiceMiddleware func(Service) Service

ServiceMiddleware is a chainable behaviour modifier for Service.

Jump to

Keyboard shortcuts

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