counter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRevision

func ApplyRevision(ctx context.Context, domain string) (int64, error)

ApplyRevision increase revision number and return modified value

Types

type Counter

type Counter struct {
	Name  string `bson:"name,omitempty"`
	Count int64  `bson:"count,omitempty"`
}

Counter is db schema

type Service

type Service struct {
}

Service is the implementation

func (*Service) GetRevision

func (s *Service) GetRevision(ctx context.Context, domain string) (int64, error)

GetRevision return current revision number

Jump to

Keyboard shortcuts

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