Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is used to connect and request to other brokers, for example for replication.
func NewClient ¶
func NewClient(conn io.ReadWriter) *Client
NewClient creates a new client to a Jocko server that can be reached over conn.
func (*Client) CreateTopic ¶
func (p *Client) CreateTopic(clientID string, createRequest *protocol.CreateTopicRequest) (*protocol.CreateTopicsResponse, error)
CreateTopic sends request to server to create a topic as per createRequest
func (*Client) FetchMessages ¶
func (p *Client) 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.