helloworld

package
v0.0.0-...-5182803 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package helloworld is a generated protocol buffer package.

It is generated from these files:

helloworld.proto

It has these top-level messages:

HelloReq
HelloResp

Index

Constants

View Source
const HelloWorldPathPrefix string = "/xservice/example.helloworld.HelloWorld/"

//[HelloWorldPathPrefix HelloWorld] is used for all URL paths on a %!s(MISSING) server. Requests are always: POST HelloWorldPathPrefix /method It can be used in an HTTP mux to route requests

Variables

This section is empty.

Functions

func NewHelloWorldServer

func NewHelloWorldServer(svc HelloWorld, hooks *hooks.ServerHooks, errorFunc ...transport.LogErrorFunc) server.Server

NewHelloWorldServer constructs a new server, and implements HelloWorld

Types

type HelloReq

type HelloReq struct {
	Subject string `protobuf:"bytes,1,opt,name=subject" json:"subject,omitempty"`
}

func (*HelloReq) Descriptor

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

func (*HelloReq) GetSubject

func (m *HelloReq) GetSubject() string

func (*HelloReq) ProtoMessage

func (*HelloReq) ProtoMessage()

func (*HelloReq) Reset

func (m *HelloReq) Reset()

func (*HelloReq) String

func (m *HelloReq) String() string

type HelloResp

type HelloResp struct {
	Text string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
}

func (*HelloResp) Descriptor

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

func (*HelloResp) GetText

func (m *HelloResp) GetText() string

func (*HelloResp) ProtoMessage

func (*HelloResp) ProtoMessage()

func (*HelloResp) Reset

func (m *HelloResp) Reset()

func (*HelloResp) String

func (m *HelloResp) String() string

type HelloWorld

type HelloWorld interface {
	Hello(ctx context.Context, req *HelloReq) (*HelloResp, error)
}

func NewHelloWorldJSONClient

func NewHelloWorldJSONClient(addr string, client transport.HTTPClient) HelloWorld

NewHelloWorldJSONClient constructs a new client, which wraps the http.client and implements HelloWorld

func NewHelloWorldProtobufferClient

func NewHelloWorldProtobufferClient(addr string, client transport.HTTPClient) HelloWorld

NewHelloWorldProtobufferClient constructs a new client, which wraps the http.client and implements HelloWorld

Jump to

Keyboard shortcuts

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