server

package
v0.0.0-...-0eaf191 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SERVER string = "grpcserver"

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcServer

type GrpcServer struct {
	pb.GrpcServer

	Redis             *redis.RedisDatabase
	RedisOtelEnricher *otelredis.RedisEnricher
	// contains filtered or unexported fields
}

func New

func New(
	log *logger.Logger,
	rdb *redis.RedisDatabase,
) *GrpcServer

func (*GrpcServer) Delete

func (s *GrpcServer) Delete(
	ctx context.Context,
	in *pb.Request,
) (
	*pb.Response,
	error,
)

func (*GrpcServer) Get

func (s *GrpcServer) Get(
	ctx context.Context,
	in *pb.Request,
) (
	*pb.Response,
	error,
)

Jump to

Keyboard shortcuts

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