helloworld

package
v0.0.0-...-a6ca03e Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

This code was autogenerated from helloworld.proto, do not edit.

Package helloworld is a generated protocol buffer package.

It is generated from these files:

helloworld.proto

It has these top-level messages:

HelloRequest
HelloReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GreeterClient

type GreeterClient struct {
	Subject string
	Timeout time.Duration
	// contains filtered or unexported fields
}

func NewGreeterClient

func NewGreeterClient(nc *nats.Conn) *GreeterClient

func (*GreeterClient) SayHello

func (c *GreeterClient) SayHello(req HelloRequest) (resp HelloReply, err error)

type GreeterHandler

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

GreeterHandler provides a NATS subscription handler that can serve a subscription using a given GreeterServer implementation.

func NewGreeterHandler

func NewGreeterHandler(ctx context.Context, nc *nats.Conn, s GreeterServer) *GreeterHandler

func (*GreeterHandler) Handler

func (h *GreeterHandler) Handler(msg *nats.Msg)

func (*GreeterHandler) Subject

func (h *GreeterHandler) Subject() string

type GreeterServer

type GreeterServer interface {
	SayHello(ctx context.Context, req HelloRequest) (resp HelloReply, err error)
}

GreeterServer is the interface that providers of the service Greeter should implement.

type HelloReply

type HelloReply struct {
	Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}

The response message containing the greetings

func (*HelloReply) Descriptor

func (*HelloReply) Descriptor() ([]byte, []int)

func (*HelloReply) ProtoMessage

func (*HelloReply) ProtoMessage()

func (*HelloReply) Reset

func (m *HelloReply) Reset()

func (*HelloReply) String

func (m *HelloReply) String() string

type HelloRequest

type HelloRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

The request message containing the user's name.

func (*HelloRequest) Descriptor

func (*HelloRequest) Descriptor() ([]byte, []int)

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) Reset

func (m *HelloRequest) Reset()

func (*HelloRequest) String

func (m *HelloRequest) String() string

Jump to

Keyboard shortcuts

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