serverContext

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT-0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	Authentication contracts.Authentication
	Storage        contracts.MessagesStorage
	Config         config.AppConfig
	HttpSession    *session.Store
	Sharing        contracts.MessageSharing
}

func (*Context) GetHttpAuthenticatedUser

func (context *Context) GetHttpAuthenticatedUser(ctx *fiber.Ctx) (string, error)

func (*Context) GetHttpSession

func (context *Context) GetHttpSession(c *fiber.Ctx) *session.Session

func (*Context) HttpBindAddr

func (context *Context) HttpBindAddr() string

func (*Context) PathWithPrefix

func (context *Context) PathWithPrefix(path string) string

func (*Context) SetHttpAuthenticatedUser

func (context *Context) SetHttpAuthenticatedUser(ctx *fiber.Ctx, username string) (string, error)

func (*Context) SmtpBindAddr

func (context *Context) SmtpBindAddr() string

Jump to

Keyboard shortcuts

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