pb

package
v0.12.0 Latest Latest
Warning

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

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

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

grpc.proto

It has these top-level messages:

ProdReq
ProdRes
ConsReq
ConsRes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterKafkaPixyServer

func RegisterKafkaPixyServer(s *grpc.Server, srv KafkaPixyServer)

Types

type ConsReq

type ConsReq struct {
	Proxy string `protobuf:"bytes,1,opt,name=proxy" json:"proxy,omitempty"`
	Topic string `protobuf:"bytes,2,opt,name=topic" json:"topic,omitempty"`
	Group string `protobuf:"bytes,3,opt,name=group" json:"group,omitempty"`
}

func (*ConsReq) Descriptor

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

func (*ConsReq) GetGroup

func (m *ConsReq) GetGroup() string

func (*ConsReq) GetProxy

func (m *ConsReq) GetProxy() string

func (*ConsReq) GetTopic

func (m *ConsReq) GetTopic() string

func (*ConsReq) ProtoMessage

func (*ConsReq) ProtoMessage()

func (*ConsReq) Reset

func (m *ConsReq) Reset()

func (*ConsReq) String

func (m *ConsReq) String() string

type ConsRes

type ConsRes struct {
	Partition    int32  `protobuf:"varint,1,opt,name=partition" json:"partition,omitempty"`
	Offset       int64  `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
	KeyValue     []byte `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
	KeyUndefined bool   `protobuf:"varint,4,opt,name=key_undefined,json=keyUndefined" json:"key_undefined,omitempty"`
	Message      []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
}

func (*ConsRes) Descriptor

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

func (*ConsRes) GetKeyUndefined

func (m *ConsRes) GetKeyUndefined() bool

func (*ConsRes) GetKeyValue

func (m *ConsRes) GetKeyValue() []byte

func (*ConsRes) GetMessage

func (m *ConsRes) GetMessage() []byte

func (*ConsRes) GetOffset

func (m *ConsRes) GetOffset() int64

func (*ConsRes) GetPartition

func (m *ConsRes) GetPartition() int32

func (*ConsRes) ProtoMessage

func (*ConsRes) ProtoMessage()

func (*ConsRes) Reset

func (m *ConsRes) Reset()

func (*ConsRes) String

func (m *ConsRes) String() string

type KafkaPixyClient

type KafkaPixyClient interface {
	Produce(ctx context.Context, in *ProdReq, opts ...grpc.CallOption) (*ProdRes, error)
	Consume(ctx context.Context, in *ConsReq, opts ...grpc.CallOption) (*ConsRes, error)
}

func NewKafkaPixyClient

func NewKafkaPixyClient(cc *grpc.ClientConn) KafkaPixyClient

type KafkaPixyServer

type KafkaPixyServer interface {
	Produce(context.Context, *ProdReq) (*ProdRes, error)
	Consume(context.Context, *ConsReq) (*ConsRes, error)
}

type ProdReq

type ProdReq struct {
	Proxy        string `protobuf:"bytes,1,opt,name=proxy" json:"proxy,omitempty"`
	Topic        string `protobuf:"bytes,2,opt,name=topic" json:"topic,omitempty"`
	KeyValue     []byte `protobuf:"bytes,3,opt,name=key_value,json=keyValue,proto3" json:"key_value,omitempty"`
	KeyUndefined bool   `protobuf:"varint,4,opt,name=key_undefined,json=keyUndefined" json:"key_undefined,omitempty"`
	Message      []byte `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	AsyncMode    bool   `protobuf:"varint,6,opt,name=async_mode,json=asyncMode" json:"async_mode,omitempty"`
}

func (*ProdReq) Descriptor

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

func (*ProdReq) GetAsyncMode

func (m *ProdReq) GetAsyncMode() bool

func (*ProdReq) GetKeyUndefined

func (m *ProdReq) GetKeyUndefined() bool

func (*ProdReq) GetKeyValue

func (m *ProdReq) GetKeyValue() []byte

func (*ProdReq) GetMessage

func (m *ProdReq) GetMessage() []byte

func (*ProdReq) GetProxy

func (m *ProdReq) GetProxy() string

func (*ProdReq) GetTopic

func (m *ProdReq) GetTopic() string

func (*ProdReq) ProtoMessage

func (*ProdReq) ProtoMessage()

func (*ProdReq) Reset

func (m *ProdReq) Reset()

func (*ProdReq) String

func (m *ProdReq) String() string

type ProdRes

type ProdRes struct {
	Partition int32 `protobuf:"varint,1,opt,name=partition" json:"partition,omitempty"`
	Offset    int64 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
}

func (*ProdRes) Descriptor

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

func (*ProdRes) GetOffset

func (m *ProdRes) GetOffset() int64

func (*ProdRes) GetPartition

func (m *ProdRes) GetPartition() int32

func (*ProdRes) ProtoMessage

func (*ProdRes) ProtoMessage()

func (*ProdRes) Reset

func (m *ProdRes) Reset()

func (*ProdRes) String

func (m *ProdRes) String() string

Jump to

Keyboard shortcuts

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