Documentation ¶
Index ¶
- Constants
- func New(appContext modules.ApplicationContext, chatManager *chatmanager.Manager, ...) modules.NativeModule
- type MessageAttachmentApplicationPageStorage
- type MessageAttachmentApplicationPageView
- func (a *MessageAttachmentApplicationPageView) SerializeForAPI(context.Context) *proto.ChatMessageAttachment
- func (a *MessageAttachmentApplicationPageView) SerializeForJS(ctx context.Context, vm *goja.Runtime) map[string]interface{}
- func (a *MessageAttachmentApplicationPageView) SerializeForModLog(context.Context) string
Constants ¶
View Source
const MessageAttachmentTypeApplicationPage = "apppage"
MessageAttachmentTypeApplicationPage is the identifier for attachments of the application page type
View Source
const ModuleName = "jungletv:chat"
ModuleName is the name by which this module can be require()d in a script
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(appContext modules.ApplicationContext, chatManager *chatmanager.Manager, pagesModule pages.PagesModule, userSerializer gojautil.UserSerializer) modules.NativeModule
New returns a new chat module
Types ¶
type MessageAttachmentApplicationPageStorage ¶
type MessageAttachmentApplicationPageStorage struct { ApplicationID string `json:"application_id"` ApplicationVersion types.ApplicationVersion `json:"application_version"` PageID string `json:"page_id"` Height int `json:"height"` }
MessageAttachmentApplicationPageStorage is the storage model for an application page attachment. Implements MessageAttachmentStorage
func (MessageAttachmentApplicationPageStorage) AttachmentType ¶
func (a MessageAttachmentApplicationPageStorage) AttachmentType() string
func (*MessageAttachmentApplicationPageStorage) SerializeForDatabase ¶
func (a *MessageAttachmentApplicationPageStorage) SerializeForDatabase(context.Context) string
type MessageAttachmentApplicationPageView ¶
type MessageAttachmentApplicationPageView struct { pages.PageInfo ApplicationID string PageID string ApplicationVersion types.ApplicationVersion Height int }
MessageAttachmentApplicationPageView is the view model for an application page attachment. Implements MessageAttachmentView
func (*MessageAttachmentApplicationPageView) SerializeForAPI ¶
func (a *MessageAttachmentApplicationPageView) SerializeForAPI(context.Context) *proto.ChatMessageAttachment
func (*MessageAttachmentApplicationPageView) SerializeForJS ¶
func (*MessageAttachmentApplicationPageView) SerializeForModLog ¶
func (a *MessageAttachmentApplicationPageView) SerializeForModLog(context.Context) string
Click to show internal directories.
Click to hide internal directories.