service

package
v0.0.0-...-74c7ceb Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Greeter

type Greeter struct {
}

Greeter implement grpc GreeterServiceServer

func New

func New() *Greeter

New Greeter

func (*Greeter) SayHello

func (s *Greeter) SayHello(ctx context.Context, req *pb.HelloRequest) (*pb.HelloReply, error)

SayHello name hello reply

func (*Greeter) SayTime

func (s *Greeter) SayTime(ctx context.Context, req *types.Empty) (*types.Timestamp, error)

SayTime current time reply

func (*Greeter) SubscribeTime

func (s *Greeter) SubscribeTime(
	req *pb.TimeRequest,
	stream pb.GreeterService_SubscribeTimeServer) error

SubscribeTime multiple current time reply

Jump to

Keyboard shortcuts

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