Documentation ¶
Index ¶
- Variables
- func GetChatSpaceByEnv(env string) (string, bool)
- func GetClientID() string
- func GetEnvByChatspace(aSpace string) (string, bool)
- func GetEnvByMessageId(messageId string) (string, error)
- func GetTTBToken() string
- func InitNetwork(configContext *tccore.ConfigContext)
- func IsKernelPluginMode() bool
- func IsSpaceAuthorized(aSpace string) (string, bool)
- func RunDiagnostics(ctx context.Context, req *ttsdk.DiagnosticRequest) (*ttsdk.DiagnosticResponse, func(), error)
- type EchoBus
- type EchoNetwork
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalEchoNetwork *cmap.ConcurrentMap[string, *EchoBus]
Complex map indexing EchoBus by both env and chatspace.
View Source
var GlobalSupportedEnvMap map[string]bool
Functions ¶
func GetClientID ¶
func GetClientID() string
func GetEnvByChatspace ¶
func GetEnvByMessageId ¶
Utility function to extract environment of message
func GetTTBToken ¶
func GetTTBToken() string
func InitNetwork ¶
func InitNetwork(configContext *tccore.ConfigContext)
func IsKernelPluginMode ¶
func IsKernelPluginMode() bool
func IsSpaceAuthorized ¶
Return true if space is authorized
func RunDiagnostics ¶
func RunDiagnostics(ctx context.Context, req *ttsdk.DiagnosticRequest) (*ttsdk.DiagnosticResponse, func(), error)
Types ¶
type EchoBus ¶
type EchoBus struct { Env string ChatSpace string RequestsChan chan *ttsdk.DiagnosticRequest ResponseChan chan *ttsdk.DiagnosticResponse }
Click to show internal directories.
Click to hide internal directories.