counterservice

package
v0.0.0-...-345a40a Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitApi

func InitApi(ctx context.Context, pathPrefix string, requestsReceived chan<- struct{}) (http.Handler, func() error, error)

Types

type Server

type Server struct {
	DbClient store.DbProvider
}

Server implements the Counter service

func (*Server) GetValue

func (s *Server) GetValue(ctx context.Context, req *rpc.CounterRequest) (*rpc.CounterValue, error)

func (*Server) Increment

func (s *Server) Increment(ctx context.Context, req *rpc.IncrementRequest) (*rpc.CounterValue, error)

Jump to

Keyboard shortcuts

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