grpctesting

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package grpctesting is a generated protocol buffer package.

It is generated from these files:

grpctesting/test.proto

It has these top-level messages:

SimpleRequest
SimpleResponse
ProcessFileRequest
ProcessFileResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTestServiceServer

func RegisterTestServiceServer(s *grpc.Server, srv TestServiceServer)

Types

type ProcessFileRequest

type ProcessFileRequest struct {
	Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}

func (*ProcessFileRequest) Descriptor

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

func (*ProcessFileRequest) GetData

func (m *ProcessFileRequest) GetData() []byte

func (*ProcessFileRequest) GetName

func (m *ProcessFileRequest) GetName() []byte

func (*ProcessFileRequest) ProtoMessage

func (*ProcessFileRequest) ProtoMessage()

func (*ProcessFileRequest) Reset

func (m *ProcessFileRequest) Reset()

func (*ProcessFileRequest) String

func (m *ProcessFileRequest) String() string

type ProcessFileResponse

type ProcessFileResponse struct {
}

func (*ProcessFileResponse) Descriptor

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

func (*ProcessFileResponse) ProtoMessage

func (*ProcessFileResponse) ProtoMessage()

func (*ProcessFileResponse) Reset

func (m *ProcessFileResponse) Reset()

func (*ProcessFileResponse) String

func (m *ProcessFileResponse) String() string

type SimpleRequest

type SimpleRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"`
}

func (*SimpleRequest) Descriptor

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

func (*SimpleRequest) GetUsername

func (m *SimpleRequest) GetUsername() string

func (*SimpleRequest) ProtoMessage

func (*SimpleRequest) ProtoMessage()

func (*SimpleRequest) Reset

func (m *SimpleRequest) Reset()

func (*SimpleRequest) String

func (m *SimpleRequest) String() string

type SimpleResponse

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

func (*SimpleResponse) Descriptor

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

func (*SimpleResponse) GetMessage

func (m *SimpleResponse) GetMessage() string

func (*SimpleResponse) ProtoMessage

func (*SimpleResponse) ProtoMessage()

func (*SimpleResponse) Reset

func (m *SimpleResponse) Reset()

func (*SimpleResponse) String

func (m *SimpleResponse) String() string

type TestServiceClient

type TestServiceClient interface {
	EmptyCall(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
	SimpleCall(ctx context.Context, in *SimpleRequest, opts ...grpc.CallOption) (*SimpleResponse, error)
	ProcessFile(ctx context.Context, in *ProcessFileRequest, opts ...grpc.CallOption) (*ProcessFileResponse, error)
}

func NewTestServiceClient

func NewTestServiceClient(cc *grpc.ClientConn) TestServiceClient

Jump to

Keyboard shortcuts

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