attributes

package
v0.10.3-0...-74752f2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChannelAssignmentInfoFromAttributes

func GetChannelAssignmentInfoFromAttributes(attrs *Attributes) *types.StreamingNodeAssignment

GetChannelAssignmentInfoFromAttributes get the channel info fetched from streamingcoord. Generated by the channel assignment discoverer and sent to channel assignment balancer.

func GetServerID

func GetServerID(attr *Attributes) *int64

GetServerID returns the serverID in the given Attributes.

func GetSessionFromAttributes

func GetSessionFromAttributes(attrs *Attributes) *sessionutil.SessionRaw

GetSessionFromAttributes get session from attributes.

func WithChannelAssignmentInfo

func WithChannelAssignmentInfo(attr *Attributes, assignment *types.StreamingNodeAssignment) *attributes.Attributes

WithChannelAssignmentInfo returns a new Attributes containing the given channelInfo.

func WithSession

func WithSession(attr *Attributes, val *sessionutil.SessionRaw) *attributes.Attributes

WithSession returns a new Attributes containing the given session.

Types

type Attributes

type Attributes = attributes.Attributes

func WithServerID

func WithServerID(attr *Attributes, serverID int64) *Attributes

WithServerID returns a new Attributes containing the given serverID.

Jump to

Keyboard shortcuts

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