api

package
v0.0.0-...-3b7466e Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2018 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Overview

Package api is a generated protocol buffer package.

It is generated from these files:

api.proto

It has these top-level messages:

TextRequest
TextReply

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterApiServer

func RegisterApiServer(s *grpc.Server, srv ApiServer)

Types

type ApiClient

type ApiClient interface {
	Text(ctx context.Context, in *TextRequest, opts ...grpc.CallOption) (*TextReply, error)
}

func NewApiClient

func NewApiClient(cc *grpc.ClientConn) ApiClient

type ApiServer

type ApiServer interface {
	Text(context.Context, *TextRequest) (*TextReply, error)
}

type TextReply

type TextReply struct {
	Data string `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
}

The response message containing the greetings

func (*TextReply) Descriptor

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

func (*TextReply) GetData

func (m *TextReply) GetData() string

func (*TextReply) ProtoMessage

func (*TextReply) ProtoMessage()

func (*TextReply) Reset

func (m *TextReply) Reset()

func (*TextReply) String

func (m *TextReply) String() string

type TextRequest

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

The request message containing the user's name.

func (*TextRequest) Descriptor

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

func (*TextRequest) GetName

func (m *TextRequest) GetName() string

func (*TextRequest) GetText

func (m *TextRequest) GetText() string

func (*TextRequest) ProtoMessage

func (*TextRequest) ProtoMessage()

func (*TextRequest) Reset

func (m *TextRequest) Reset()

func (*TextRequest) String

func (m *TextRequest) String() string

Jump to

Keyboard shortcuts

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