Documentation
¶
Index ¶
- func BuildAuditFields(operator *dto.AuthPrincipal) models.AuditFields
- func BuildHTMLSummary(content string) string
- func BuildMessageHTMLForResponse(content string) string
- func BuildRenderableMessage(item *models.Message) (content, payload string)
- func BuildRuntimeMessageText(messageType enums.IMMessageType, content string) string
- func FormatTime(t time.Time) string
- func FormatTimePtr(t *time.Time) string
- func GenerateRandomPassword(length int) (string, error)
- func JoinInt64s(values []int64) string
- func NormalizeMessageHTMLAssets(content string) (string, error)
- func NormalizeNullableString(value *string) *string
- func SanitizeMessageHTML(content string) string
- func SplitInt64s(raw string) []int64
- type ContentChunk
- type ContentChunkType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAuditFields ¶
func BuildAuditFields(operator *dto.AuthPrincipal) models.AuditFields
func BuildHTMLSummary ¶
func BuildRenderableMessage ¶
func BuildRuntimeMessageText ¶
func BuildRuntimeMessageText(messageType enums.IMMessageType, content string) string
func FormatTime ¶
func FormatTimePtr ¶
func GenerateRandomPassword ¶
func JoinInt64s ¶
func NormalizeNullableString ¶
func SanitizeMessageHTML ¶
func SplitInt64s ¶
Types ¶
type ContentChunk ¶
type ContentChunk struct {
Type ContentChunkType //
Content string // text content or image url
AssetID string // image asset id
Provider enums.AssetProvider // image provider
StorageKey string // image storage key
}
func SplitHTMLContentChunks ¶
func SplitHTMLContentChunks(content string) ([]ContentChunk, error)
type ContentChunkType ¶
type ContentChunkType string
const ( ContentChunkTypeText ContentChunkType = "text" ContentChunkTypeImage ContentChunkType = "image" )
Click to show internal directories.
Click to hide internal directories.