examples

package
v0.0.0-...-4007d0a Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package examples is a generated protocol buffer package.

It is generated from these files:

service.proto

It has these top-level messages:

In
Out

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SubscribeRPC

func SubscribeRPC(ctx context.Context, nc *nats.Conn, subject, queue string, service RPC, filters ...nats_protobuf.Filter) (<-chan struct{}, error)

Types

type In

type In struct {
	Input string `protobuf:"bytes,1,opt,name=input" json:"input,omitempty"`
}

func (*In) Descriptor

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

func (*In) GetInput

func (m *In) GetInput() string

func (*In) ProtoMessage

func (*In) ProtoMessage()

func (*In) Reset

func (m *In) Reset()

func (*In) String

func (m *In) String() string

type Out

type Out struct {
	Output string `protobuf:"bytes,1,opt,name=output" json:"output,omitempty"`
}

func (*Out) Descriptor

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

func (*Out) GetOutput

func (m *Out) GetOutput() string

func (*Out) ProtoMessage

func (*Out) ProtoMessage()

func (*Out) Reset

func (m *Out) Reset()

func (*Out) String

func (m *Out) String() string

type RPC

type RPC interface {
	InOut(ctx context.Context, in *In) (*Out, error)
}

func NewRPC

func NewRPC(nc *nats.Conn, subject string, filters ...nats_protobuf.Filter) RPC

Directories

Path Synopsis
Package main is a generated protocol buffer package.
Package main is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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