helpers

package
v0.0.0-...-955c200 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortEventSlice

func SortEventSlice(evs []*flipbookv1.Event)

Types

type FlagBinder

type FlagBinder interface {
	BindInt64(string, int64, string)
	BindDuration(string, time.Duration, string)
	BindBool(string, bool, string)
	BindString(string, string, string)
	BindStringSlice(string, []string, string)
}

type FlagController

type FlagController interface {
	FlagBinder
	FlagGetter
}

func NewFlagController

func NewFlagController(v *viper.Viper, f *pflag.FlagSet) FlagController

type FlagGetter

type FlagGetter interface {
	GetInt64(string) int64
	GetDuration(string) time.Duration
	GetBool(string) bool
	GetString(string) string
	GetStringSlice(string) []string
}

type SortedEventMap

type SortedEventMap map[string][]*flipbookv1.Event

func NewSortedEventMap

func NewSortedEventMap(evs []*flipbookv1.Event) SortedEventMap

func (SortedEventMap) GetByPartitionKey

func (s SortedEventMap) GetByPartitionKey(partKey string) []*flipbookv1.Event

func (SortedEventMap) GetKeys

func (s SortedEventMap) GetKeys() []string

func (SortedEventMap) Set

func (s SortedEventMap) Set(ev *flipbookv1.Event)

Jump to

Keyboard shortcuts

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