Documentation
¶
Index ¶
- func AddPublicEndpoints(s sparq.Server, mux *mux.Router)
- func PostTootHandler(svr sparq.Server) http.HandlerFunc
- func TootMap(db *sqlx.DB, sid string) (map[string]interface{}, error)
- func TootsForHome(db *sqlx.DB) (map[string]interface{}, error)
- type Instance
- type Poll
- type StreamEvent
- type Streamer
- type Toot
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostTootHandler ¶
func PostTootHandler(svr sparq.Server) http.HandlerFunc
Types ¶
type StreamEvent ¶
func NewEvent ¶
func NewEvent(name string, data string) StreamEvent
func NewJsonEvent ¶
func NewJsonEvent(name string, data any) StreamEvent
type Streamer ¶
type Streamer struct {
// contains filtered or unexported fields
}
func NewStreamer ¶
func (*Streamer) Fanout ¶
func (s *Streamer) Fanout(key any, event StreamEvent)
Click to show internal directories.
Click to hide internal directories.