core

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func GetImageProxy

func GetImageProxy(c *fiber.Ctx) string

func GetToken

func GetToken(c *fiber.Ctx) string

func RemoveSessionValue

func RemoveSessionValue(c *fiber.Ctx, name string) error

func SetSessionValue

func SetSessionValue(c *fiber.Ctx, name, value string) error

func SetupStorage

func SetupStorage()

Types

type ServerConfig

type ServerConfig struct {
	// Required
	Token       string
	ProxyServer string

	// One of two is required
	Port       string
	UnixSocket string

	BaseURL        string
	UserAgent      string
	AcceptLanguage string

	StartingTime string
	Version      string
}
var GlobalServerConfig ServerConfig

func (*ServerConfig) InitializeConfig

func (s *ServerConfig) InitializeConfig() error

func (*ServerConfig) SetAcceptLanguage

func (s *ServerConfig) SetAcceptLanguage(v string)

func (*ServerConfig) SetBaseURL

func (s *ServerConfig) SetBaseURL(v string)

func (*ServerConfig) SetPort

func (s *ServerConfig) SetPort(v string)

func (*ServerConfig) SetProxyServer

func (s *ServerConfig) SetProxyServer(v string)

func (*ServerConfig) SetToken

func (s *ServerConfig) SetToken(v string)

func (*ServerConfig) SetUnixSocket

func (s *ServerConfig) SetUnixSocket(v string)

func (*ServerConfig) SetUserAgent

func (s *ServerConfig) SetUserAgent(v string)

Jump to

Keyboard shortcuts

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