kafkasource

package
v1.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAdapter

NewAdapter satisfies pkgadapter.AdapterConstructor.

func NewEnvConfig

func NewEnvConfig() adapter.EnvConfigAccessor

NewEnvConfig satisfies pkgadapter.EnvConfigConstructor.

Types

type StaleList added in v1.23.3

type StaleList struct {
	// contains filtered or unexported fields
}

StaleList is a list of items that timeout lazily, only checking for item expiration when a new one is added.

This should not be used for storing a big number of items.

func NewStaleList added in v1.23.3

func NewStaleList(timeout time.Duration) *StaleList

func (*StaleList) AddAndCount added in v1.23.3

func (sl *StaleList) AddAndCount(object interface{}) int

AddAndCount adds a new element to the list and updates the count, removing any stale items from it.

func (*StaleList) Count added in v1.23.3

func (sl *StaleList) Count() int

Count updates the count removing any stale items from it.

type XDGSCRAMClient added in v1.23.0

type XDGSCRAMClient struct {
	*scram.Client
	*scram.ClientConversation
	scram.HashGeneratorFcn
}

func (*XDGSCRAMClient) Begin added in v1.23.0

func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error)

func (*XDGSCRAMClient) Done added in v1.23.0

func (x *XDGSCRAMClient) Done() bool

func (*XDGSCRAMClient) Step added in v1.23.0

func (x *XDGSCRAMClient) Step(challenge string) (response string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL