options

package
v0.0.0-...-572c485 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeliverPolicyTypeAll        deliverPolicyType = 1
	DeliverPolicyTypeLatest     deliverPolicyType = 2
	DeliverPolicyTypeStartFrom  deliverPolicyType = 3
	DeliverPolicyTypeStartAfter deliverPolicyType = 4

	DeliverFilterTypeTimeTickGT  deliverFilterType = 1
	DeliverFilterTypeTimeTickGTE deliverFilterType = 2
	DeliverFilterTypeVChannel    deliverFilterType = 3
)

Variables

This section is empty.

Functions

func GetFilterFunc

func GetFilterFunc(filters []DeliverFilter) (func(message.ImmutableMessage) bool, error)

GetFilterFunc returns the filter function.

func IsDeliverFilterTimeTick

func IsDeliverFilterTimeTick(filter DeliverFilter) bool

IsDeliverFilterTimeTick checks if the filter is time tick filter.

Types

type DeliverFilter

type DeliverFilter = *streamingpb.DeliverFilter

func DeliverFilterTimeTickGT

func DeliverFilterTimeTickGT(timeTick uint64) DeliverFilter

DeliverFilterTimeTickGT delivers messages by time tick greater than the specified time tick.

func DeliverFilterTimeTickGTE

func DeliverFilterTimeTickGTE(timeTick uint64) DeliverFilter

DeliverFilterTimeTickGTE delivers messages by time tick greater than or equal to the specified time tick.

func DeliverFilterVChannel

func DeliverFilterVChannel(vchannel string) DeliverFilter

DeliverFilterVChannel delivers messages filtered by vchannel.

type DeliverPolicy

type DeliverPolicy = *streamingpb.DeliverPolicy

func DeliverPolicyAll

func DeliverPolicyAll() DeliverPolicy

DeliverPolicyAll delivers all messages.

func DeliverPolicyLatest

func DeliverPolicyLatest() DeliverPolicy

DeliverLatest delivers the latest message.

func DeliverPolicyStartAfter

func DeliverPolicyStartAfter(messageID message.MessageID) DeliverPolicy

DeliverPolicyStartAfter delivers the message after the specified message.

func DeliverPolicyStartFrom

func DeliverPolicyStartFrom(messageID message.MessageID) DeliverPolicy

DeliverEarliest delivers the earliest message.

Jump to

Keyboard shortcuts

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