api

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderComment

func RenderComment(c models.Comment) string

func RenderPostComments

func RenderPostComments(p models.Post) string

func RenderViewers

func RenderViewers(id string, count int) string

Types

type Connected

type Connected struct {
	// contains filtered or unexported fields
}

func NewConnected

func NewConnected(id, html string) *Connected

func (*Connected) Marshal

func (c *Connected) Marshal() ([]byte, error)

type Message

type Message interface {
	Marshal() ([]byte, error)
}

type Morph

type Morph struct {
	// contains filtered or unexported fields
}

func NewMorph

func NewMorph(id, html string) *Morph

func (*Morph) Marshal

func (m *Morph) Marshal() ([]byte, error)

type Prepend

type Prepend struct {
	// contains filtered or unexported fields
}

func NewPrepend

func NewPrepend(id, html string) *Prepend

func (*Prepend) Marshal

func (p *Prepend) Marshal() ([]byte, error)

Jump to

Keyboard shortcuts

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