increment

package
v0.0.0-...-054f1a3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 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 ServiceImpl

type ServiceImpl struct {
	api_v1.UnimplementedIncrementServiceServer
	// contains filtered or unexported fields
}

ServiceImpl is the implementation of IncrementServiceServer

func NewIncrementService

func NewIncrementService(repo interfaces.INumberRepository, bucket string) *ServiceImpl

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

func (*ServiceImpl) Increment

Increment increments the number in the bucket - ctx: context.Context context - req: *api_v1.IncrementRequest request Returns *api_v1.IncrementResponse response

Jump to

Keyboard shortcuts

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