package topicclientinternal
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/topic/topicclientinternal"
Index ¶
- type Client
- func New( ctx context.Context, conn grpc.ClientConnInterface, cred credentials.Credentials, opts ...topicoptions.TopicOption, ) (*Client, error)
- 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, opts ...topicoptions.CreateOption, ) 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, opts ...topicoptions.ReaderOption, ) (*topicreader.Reader, error)
- func (c *Client) StartWriter(topicPath string, opts ...topicoptions.WriterOption) (*topicwriter.Writer, error)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New( ctx context.Context, conn grpc.ClientConnInterface, cred credentials.Credentials, opts ...topicoptions.TopicOption, ) (*Client, error)
func (*Client) Alter ¶
func (c *Client) Alter(ctx context.Context, path string, opts ...topicoptions.AlterOption) error
Alter topic options
func (*Client) Close ¶
Close the client
func (*Client) Create ¶
func (c *Client) Create( ctx context.Context, path string, opts ...topicoptions.CreateOption, ) error
Create new topic
func (*Client) Describe ¶
func (c *Client) Describe( ctx context.Context, path string, opts ...topicoptions.DescribeOption, ) (res topictypes.TopicDescription, _ error)
Describe topic
func (*Client) Drop ¶
func (c *Client) Drop(ctx context.Context, path string, opts ...topicoptions.DropOption) error
Drop topic
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
func (*Client) StartWriter ¶
func (c *Client) StartWriter(topicPath string, opts ...topicoptions.WriterOption) (*topicwriter.Writer, error)
StartWriter create new topic writer wrapper
Source Files ¶
- Version
- v3.55.0
- Published
- Jan 22, 2024
- Platform
- windows/amd64
- Imports
- 15 packages
- Last checked
- 3 minutes ago –
Tools for package owners.