initialize

package
v0.0.0-...-18a73b7 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContriHubDB *gorm.DB
View Source
var Db *gorm.DB
View Source
var GoogleOAuthConfig *oauth2.Config
View Source
var SessionCookieStore *sessions.CookieStore

Functions

func InitTemplateRenderer

func InitTemplateRenderer(e *echo.Echo)

Types

type Env

type Env struct {
	BaseUrl              string
	Port                 string
	RegistrationDeadline int64
	DeclareResult        bool
	// contains filtered or unexported fields
}

Env is a struct that contains all the environment variables.

var EnvVars *Env

type TemplateRenderer

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

TemplateRenderer is a custom html/template renderer for Echo framework

func (*TemplateRenderer) Render

func (t *TemplateRenderer) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Render renders a template document

Jump to

Keyboard shortcuts

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