proto

package
v0.0.0-...-7e6416f Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSampleDomainServer

func RegisterSampleDomainServer(s *grpc.Server, srv SampleDomainServer)

Types

type SampleDomainClient

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

SampleDomainClient is the client API for SampleDomain service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSampleDomainClient

func NewSampleDomainClient(cc *grpc.ClientConn) SampleDomainClient

type SampleDomainServer

type SampleDomainServer interface {
	GetText(context.Context, *TextRequest) (*TextReply, error)
}

SampleDomainServer is the server API for SampleDomain service.

type TextReply

type TextReply struct {
	Text                 string   `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TextReply) Descriptor

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

func (*TextReply) GetText

func (m *TextReply) GetText() string

func (*TextReply) ProtoMessage

func (*TextReply) ProtoMessage()

func (*TextReply) Reset

func (m *TextReply) Reset()

func (*TextReply) String

func (m *TextReply) String() string

func (*TextReply) XXX_DiscardUnknown

func (m *TextReply) XXX_DiscardUnknown()

func (*TextReply) XXX_Marshal

func (m *TextReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TextReply) XXX_Merge

func (m *TextReply) XXX_Merge(src proto.Message)

func (*TextReply) XXX_Size

func (m *TextReply) XXX_Size() int

func (*TextReply) XXX_Unmarshal

func (m *TextReply) XXX_Unmarshal(b []byte) error

type TextRequest

type TextRequest struct {
	Text                 string   `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TextRequest) Descriptor

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

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

func (*TextRequest) XXX_DiscardUnknown

func (m *TextRequest) XXX_DiscardUnknown()

func (*TextRequest) XXX_Marshal

func (m *TextRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TextRequest) XXX_Merge

func (m *TextRequest) XXX_Merge(src proto.Message)

func (*TextRequest) XXX_Size

func (m *TextRequest) XXX_Size() int

func (*TextRequest) XXX_Unmarshal

func (m *TextRequest) XXX_Unmarshal(b []byte) error

type UnimplementedSampleDomainServer

type UnimplementedSampleDomainServer struct {
}

UnimplementedSampleDomainServer can be embedded to have forward compatible implementations.

func (*UnimplementedSampleDomainServer) GetText

Jump to

Keyboard shortcuts

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