Documentation ¶
Index ¶
- type Client
- func (c *Client) Alter(ctx context.Context, path string, opts ...topicoptions.AlterOption) error
- func (c *Client) Close(_ context.Context) error
- func (c *Client) Create(ctx context.Context, path string, codecs []topictypes.Codec, ...) error
- func (c *Client) Describe(ctx context.Context, path string, opts ...topicoptions.DescribeOption) (res topictypes.TopicDescription, _ error)
- func (c *Client) Drop(ctx context.Context, path string, opts ...topicoptions.DropOption) error
- func (c *Client) StartReader(consumer string, readSelectors topicoptions.ReadSelectors, ...) (*topicreader.Reader, error)
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
}
func New ¶
func New(conn grpc.ClientConnInterface, opts ...topicoptions.TopicOption) *Client
func (*Client) Alter ¶
func (c *Client) Alter(ctx context.Context, path string, opts ...topicoptions.AlterOption) error
Alter topic options
Experimental ¶
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (*Client) Close ¶
Close
Experimental ¶
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (*Client) Create ¶
func (c *Client) Create( ctx context.Context, path string, codecs []topictypes.Codec, opts ...topicoptions.CreateOption, ) error
Create new topic
Experimental ¶
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (*Client) Describe ¶
func (c *Client) Describe( ctx context.Context, path string, opts ...topicoptions.DescribeOption, ) (res topictypes.TopicDescription, _ error)
Describe topic
Experimental ¶
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (*Client) Drop ¶
func (c *Client) Drop(ctx context.Context, path string, opts ...topicoptions.DropOption) error
Drop topic
Experimental ¶
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.
func (*Client) StartReader ¶
func (c *Client) StartReader( consumer string, readSelectors topicoptions.ReadSelectors, opts ...topicoptions.ReaderOption, ) (*topicreader.Reader, error)
StartReader create new topic reader and start pull messages from server it is fast non block call, connection will start in background
Experimental ¶
Notice: This API is EXPERIMENTAL and may be changed or removed in a later release.