counterservice

package
v0.0.0-...-003cb1b Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitApi

func InitApi(ctx context.Context, dbProvider store.DbProvider, mux *http.ServeMux, pathPrefix string, requestsReceived chan<- struct{}) (func() error, error)

Types

type Server

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

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