ring

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keyable

type Keyable interface {
	Key() (key string)
}

type Ring

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

func New

func New(values ...Keyable) (r *Ring)

func (*Ring) Append

func (r *Ring) Append(v Keyable)

func (*Ring) Get

func (r *Ring) Get(key string) (value Keyable)

func (*Ring) Next

func (r *Ring) Next() (value Keyable)

func (*Ring) Remove

func (r *Ring) Remove(v Keyable)

func (*Ring) Size

func (r *Ring) Size() (size int)

func (*Ring) String

func (r *Ring) String() (value string)

Jump to

Keyboard shortcuts

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