proto

package
v0.0.0-...-fe632b3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEchoTestServiceServer

func RegisterEchoTestServiceServer(s *grpc.Server, srv EchoTestServiceServer)

Types

type EchoRequest

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

func (*EchoRequest) Descriptor

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

func (*EchoRequest) GetMessage

func (m *EchoRequest) GetMessage() string

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) Reset

func (m *EchoRequest) Reset()

func (*EchoRequest) String

func (m *EchoRequest) String() string

func (*EchoRequest) XXX_DiscardUnknown

func (m *EchoRequest) XXX_DiscardUnknown()

func (*EchoRequest) XXX_Marshal

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

func (*EchoRequest) XXX_Merge

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

func (*EchoRequest) XXX_Size

func (m *EchoRequest) XXX_Size() int

func (*EchoRequest) XXX_Unmarshal

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

type EchoResponse

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

func (*EchoResponse) Descriptor

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

func (*EchoResponse) GetMessage

func (m *EchoResponse) GetMessage() string

func (*EchoResponse) ProtoMessage

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) Reset

func (m *EchoResponse) Reset()

func (*EchoResponse) String

func (m *EchoResponse) String() string

func (*EchoResponse) XXX_DiscardUnknown

func (m *EchoResponse) XXX_DiscardUnknown()

func (*EchoResponse) XXX_Marshal

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

func (*EchoResponse) XXX_Merge

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

func (*EchoResponse) XXX_Size

func (m *EchoResponse) XXX_Size() int

func (*EchoResponse) XXX_Unmarshal

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

type EchoTestServiceClient

type EchoTestServiceClient interface {
	Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
	ForwardEcho(ctx context.Context, in *ForwardEchoRequest, opts ...grpc.CallOption) (*ForwardEchoResponse, error)
}

EchoTestServiceClient is the client API for EchoTestService service.

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

func NewEchoTestServiceClient

func NewEchoTestServiceClient(cc *grpc.ClientConn) EchoTestServiceClient

type EchoTestServiceServer

type EchoTestServiceServer interface {
	Echo(context.Context, *EchoRequest) (*EchoResponse, error)
	ForwardEcho(context.Context, *ForwardEchoRequest) (*ForwardEchoResponse, error)
}

EchoTestServiceServer is the server API for EchoTestService service.

type ForwardEchoRequest

type ForwardEchoRequest struct {
	Count                int32     `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	Qps                  int32     `protobuf:"varint,2,opt,name=qps,proto3" json:"qps,omitempty"`
	TimeoutMicros        int64     `protobuf:"varint,3,opt,name=timeout_micros,json=timeoutMicros,proto3" json:"timeout_micros,omitempty"`
	Url                  string    `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	Headers              []*Header `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty"`
	Message              string    `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*ForwardEchoRequest) Descriptor

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

func (*ForwardEchoRequest) GetCount

func (m *ForwardEchoRequest) GetCount() int32

func (*ForwardEchoRequest) GetHeaders

func (m *ForwardEchoRequest) GetHeaders() []*Header

func (*ForwardEchoRequest) GetMessage

func (m *ForwardEchoRequest) GetMessage() string

func (*ForwardEchoRequest) GetQps

func (m *ForwardEchoRequest) GetQps() int32

func (*ForwardEchoRequest) GetTimeoutMicros

func (m *ForwardEchoRequest) GetTimeoutMicros() int64

func (*ForwardEchoRequest) GetUrl

func (m *ForwardEchoRequest) GetUrl() string

func (*ForwardEchoRequest) ProtoMessage

func (*ForwardEchoRequest) ProtoMessage()

func (*ForwardEchoRequest) Reset

func (m *ForwardEchoRequest) Reset()

func (*ForwardEchoRequest) String

func (m *ForwardEchoRequest) String() string

func (*ForwardEchoRequest) XXX_DiscardUnknown

func (m *ForwardEchoRequest) XXX_DiscardUnknown()

func (*ForwardEchoRequest) XXX_Marshal

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

func (*ForwardEchoRequest) XXX_Merge

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

func (*ForwardEchoRequest) XXX_Size

func (m *ForwardEchoRequest) XXX_Size() int

func (*ForwardEchoRequest) XXX_Unmarshal

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

type ForwardEchoResponse

type ForwardEchoResponse struct {
	Output               []string `protobuf:"bytes,1,rep,name=output,proto3" json:"output,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ForwardEchoResponse) Descriptor

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

func (*ForwardEchoResponse) GetOutput

func (m *ForwardEchoResponse) GetOutput() []string

func (*ForwardEchoResponse) ProtoMessage

func (*ForwardEchoResponse) ProtoMessage()

func (*ForwardEchoResponse) Reset

func (m *ForwardEchoResponse) Reset()

func (*ForwardEchoResponse) String

func (m *ForwardEchoResponse) String() string

func (*ForwardEchoResponse) XXX_DiscardUnknown

func (m *ForwardEchoResponse) XXX_DiscardUnknown()

func (*ForwardEchoResponse) XXX_Marshal

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

func (*ForwardEchoResponse) XXX_Merge

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

func (*ForwardEchoResponse) XXX_Size

func (m *ForwardEchoResponse) XXX_Size() int

func (*ForwardEchoResponse) XXX_Unmarshal

func (m *ForwardEchoResponse) XXX_Unmarshal(b []byte) error
type Header struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Header) Descriptor

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

func (*Header) GetKey

func (m *Header) GetKey() string

func (*Header) GetValue

func (m *Header) GetValue() string

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) String

func (m *Header) String() string

func (*Header) XXX_DiscardUnknown

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal

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

func (*Header) XXX_Merge

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

func (*Header) XXX_Size

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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