httpapi

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelNotifier

type ChannelNotifier interface {
	NotifyChannelUpdated(ch channel.Channel)
	NotifyChannelDeleted(id channel.ID)
}

type Handler

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

func NewHandler

func NewHandler(users *user.Service, devices *device.Service, channels *channel.Service, auth *auth.Service, invites *serverinvite.Service, presence PresenceProvider, notifier ChannelNotifier, userNotify UserNotifier, adminToken string) *Handler

func (*Handler) Register

func (h *Handler) Register(mux *http.ServeMux)

type PresenceProvider

type PresenceProvider interface {
	IsOnline(userID user.ID) bool
}

type UserNotifier

type UserNotifier interface {
	NotifyUserProfileUpdated(id user.ID)
}

Jump to

Keyboard shortcuts

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