kafkasource

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 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. nolint:gocyclo

func NewEnvConfig

func NewEnvConfig() adapter.EnvConfigAccessor

NewEnvConfig satisfies pkgadapter.EnvConfigConstructor.

Types

type StaleList

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

func NewStaleList(timeout time.Duration) *StaleList

func (*StaleList) AddAndCount

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

func (sl *StaleList) Count() int

Count updates the count removing any stale items from it.

type XDGSCRAMClient

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

func (*XDGSCRAMClient) Begin

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

func (*XDGSCRAMClient) Done

func (x *XDGSCRAMClient) Done() bool

func (*XDGSCRAMClient) Step

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