util

package
v0.0.0-...-2d8c369 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const HELP_TEXT = `Echo example help..
`

Variables

This section is empty.

Functions

func GenMsgId

func GenMsgId(env string) string

func GetHelp

func GetHelp() string

func ParseData

func ParseData(message string) []string

func ParseDiagnostics

func ParseDiagnostics(message string) []ttsdk.Diagnostics

func ParseTenantID

func ParseTenantID(message string) string

func ValidateRequest

func ValidateRequest(message string) bool

Types

type Message

type Message struct {
	Text string `json:"text"`
}
type ChatPost struct {
	Type      string  `json:"type"`
	EventTime string  `json:"eventTime"`
	Message   Message `json:"message"`
	User      User    `json:"user"`
	Space     Space   `json:"space"`
}

type Space

type Space struct {
	Name string `json:"name"`
}

type User

type User struct {
	DisplayName string `json:"displayName"`
}

Jump to

Keyboard shortcuts

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