Documentation ¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) PutToken(ctx context.Context, audience, token string) error
- func (c *Client) PutTokenContinuously(ctx context.Context, audience string, cred *sas.Credentials, ...) error
- func (c *Client) Sess() *amqp.Session
- func (c *Client) SubscribePartitions(ctx context.Context, name, group string, f func(*amqp.Message)) error
- type Credentials
- type Option
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 eventhub client.
func (*Client) PutTokenContinuously ¶
func (c *Client) PutTokenContinuously( ctx context.Context, audience string, cred *sas.Credentials, done <-chan struct{}, ) error
PutTokenContinuously writes token first time in blocking mode and returns maintaining token updates in the background until stopCh is closed.
type Credentials ¶
Credentials is an evenhub connection string representation.
func ParseConnectionString ¶
func ParseConnectionString(cs string) (*Credentials, error)
ParseConnectionString parses the given connection string into Credentials structure.
type Option ¶
type Option func(c *Client)
func WithConnOption ¶
func WithConnOption(opt amqp.ConnOption) Option
func WithLogger ¶
func WithSASLPlain ¶
func WithTLSConfig ¶
Click to show internal directories.
Click to hide internal directories.