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 ¶
- func RegisterKafkaPixyServer(s *grpc.Server, srv KafkaPixyServer)
 - type ConsReq
 - type ConsRes
 - func (*ConsRes) Descriptor() ([]byte, []int)
 - func (m *ConsRes) GetKeyUndefined() bool
 - func (m *ConsRes) GetKeyValue() []byte
 - func (m *ConsRes) GetMessage() []byte
 - func (m *ConsRes) GetOffset() int64
 - func (m *ConsRes) GetPartition() int32
 - func (*ConsRes) ProtoMessage()
 - func (m *ConsRes) Reset()
 - func (m *ConsRes) String() string
 
- type KafkaPixyClient
 - type KafkaPixyServer
 - type ProdReq
 - func (*ProdReq) Descriptor() ([]byte, []int)
 - func (m *ProdReq) GetAsyncMode() bool
 - func (m *ProdReq) GetKeyUndefined() bool
 - func (m *ProdReq) GetKeyValue() []byte
 - func (m *ProdReq) GetMessage() []byte
 - func (m *ProdReq) GetProxy() string
 - func (m *ProdReq) GetTopic() string
 - func (*ProdReq) ProtoMessage()
 - func (m *ProdReq) Reset()
 - func (m *ProdReq) String() string
 
- type ProdRes
 
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) ProtoMessage ¶
func (*ConsReq) ProtoMessage()
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) GetKeyUndefined ¶
func (*ConsRes) GetKeyValue ¶
func (*ConsRes) GetMessage ¶
func (*ConsRes) GetPartition ¶
func (*ConsRes) ProtoMessage ¶
func (*ConsRes) ProtoMessage()
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 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) GetAsyncMode ¶
func (*ProdReq) GetKeyUndefined ¶
func (*ProdReq) GetKeyValue ¶
func (*ProdReq) GetMessage ¶
func (*ProdReq) ProtoMessage ¶
func (*ProdReq) ProtoMessage()
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) GetPartition ¶
func (*ProdRes) ProtoMessage ¶
func (*ProdRes) ProtoMessage()
 Click to show internal directories. 
   Click to hide internal directories.