handler

package
v0.0.0-...-71e9963 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRightChannelsCountForNavBar

func GetRightChannelsCountForNavBar(channels []model.Channel) []model.Channel

Types

type Handler

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

func NewHandler

func NewHandler(serviceManager *service.Manager, cookieStoreSecret string, log *logger.Logger) *Handler

func (Handler) InitRouter

func (h Handler) InitRouter() *mux.Router

type PageData

type PageData struct {
	Type           string
	Title          string
	Channels       []model.Channel
	ChannelsLength int
	WebUserEmail   interface{}
	WebUserID      int
}

type UserPageData

type UserPageData struct {
	DefaultPageData PageData
	User            model.User
	Messages        []model.FullMessage
	MessagesLength  int
}

Jump to

Keyboard shortcuts

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