simplegrpc

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by sysl DO NOT EDIT.

Code generated by sysl DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetStuffClient

type GetStuffClient struct {
	PostStuff func(ctx context.Context, req *simple.PostStuffRequest) (*simple.Str, error)
}

GetStuff Client

type GrpcServiceHandler

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

GrpcServiceHandler for SimpleGrpc API

func NewGrpcServiceHandler

func NewGrpcServiceHandler(genCallback core.GrpcGenCallback, serviceInterface *GrpcServiceInterface, simpleSimpleService simple.Service) *GrpcServiceHandler

NewGrpcServiceHandler for SimpleGrpc

func (*GrpcServiceHandler) GetStuff

GetStuff ...

func (*GrpcServiceHandler) RegisterServer

func (s *GrpcServiceHandler) RegisterServer(ctx context.Context, server *grpc.Server)

RegisterServer registers the SimpleGrpc gRPC service

type GrpcServiceInterface

type GrpcServiceInterface struct {
	GetStuff func(ctx context.Context, req *pb.GetStuffRequest, client GetStuffClient) (*pb.GetStuffResponse, error)
}

GrpcServiceInterface for SimpleGrpc

Jump to

Keyboard shortcuts

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