service

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package service contains echo service implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoService

type EchoService struct {
	echopb.UnimplementedEchoServiceServer
}

EchoService implements the EchoServiceServer interface.

func (*EchoService) AppendTimestampInterceptor

func (*EchoService) AppendTimestampInterceptor(
	ctx context.Context,
	req any,
	_ *grpc.UnaryServerInfo,
	handler grpc.UnaryHandler,
) (resp any, err error)

AppendTimestampInterceptor appends timestamps to the echo response.

func (*EchoService) Echo

func (s *EchoService) Echo(ctx context.Context, req *echopb.EchoRequest) (resp *echopb.EchoResponse, err error)

Echo returns the request as a response with some additional timestamps.

Jump to

Keyboard shortcuts

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