pfb

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPFB

func GetPFB() string

func GetPFBByNamingService

func GetPFBByNamingService(ctx context.Context, platformUserID string) string

GetPFBByNamingService 通过查询naming service获取PFB

func InjectPfbGetter

func InjectPfbGetter(getter PfbGetterFunc)

func InjectPfbGetterByNamingService

func InjectPfbGetterByNamingService(getter PfbGetterByNamingServiceFunc)

Types

type PfbGetterByNamingServiceFunc

type PfbGetterByNamingServiceFunc func(ctx context.Context, platformUserID string) string

PfbGetterByNamingServiceFunc 获取当前上下文(一般指处理请求/消息的协程上下文)的PFB的函数类型

type PfbGetterFunc

type PfbGetterFunc func() string

PfbGetterFunc 获取当前上下文(一般指处理请求/消息的协程上下文)的SourceType的函数类型

Jump to

Keyboard shortcuts

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