increment

package
v0.0.0-...-45785f3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIncrementService

func NewIncrementService(repo interfaces.INumberRepository, bucket string) interfaces.IIncrementService

NewIncrementService creates a new ServiceImpl - repo: INumberRepository number repository - bucket: string bucket name

Types

type ServiceImpl

type ServiceImpl struct {
	// contains filtered or unexported fields
}

ServiceImpl is the implementation of IncrementServiceServer

func (*ServiceImpl) Increment

func (s *ServiceImpl) Increment(id string) (uint64, error)

Increment increments a number - id: the ID of the number to increment Returns the incremented number if successful, otherwise returns an error

Jump to

Keyboard shortcuts

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