Documentation ¶
Overview ¶
Code generated by options-gen. DO NOT EDIT.
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
}
func (*Client) CreateTopic ¶
func (c *Client) CreateTopic(ctx context.Context, req CreateTopicReq) error
CreateTopic will create a topic in cluster. Note: it will not return an error when topic already exists.
type CreateTopicReq ¶
type OptOptionsSetter ¶
type OptOptionsSetter func(o *Options)
func WithBootstrapServers ¶
func WithBootstrapServers(opt []string) OptOptionsSetter
func WithLogger ¶
func WithLogger(opt ILogger) OptOptionsSetter
func WithTlsConfig ¶
func WithTlsConfig(opt *tls.Config) OptOptionsSetter
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions( options ...OptOptionsSetter, ) Options
Click to show internal directories.
Click to hide internal directories.