Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy acts as a proxy for an existing Jocko server It forwards requests to server over provided connection and returns server response to caller
func NewProxy ¶
func NewProxy(conn io.ReadWriter) *Proxy
NewProxy creates a new proxy to a Jocko server that can be reached over conn
func (*Proxy) CreateTopic ¶
func (p *Proxy) CreateTopic(clientID string, createRequest *protocol.CreateTopicRequest) (*protocol.CreateTopicsResponse, error)
CreateTopic sends request to server to create a topic as per createRequest
func (*Proxy) FetchMessages ¶
func (p *Proxy) FetchMessages(clientID string, fetchRequest *protocol.FetchRequest) (*protocol.FetchResponses, error)
FetchMessages of topics from server as per fetchRequest
Click to show internal directories.
Click to hide internal directories.