serverContext

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT-0 Imports: 9 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 authentication.Authentication
	Storage        storage.Storage
	Config         config.AppConfig
	HttpSession    *session.Store
}

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) 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