handlers

package
v0.0.0-...-aa9145c Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(r *gin.Engine, envy *Environment)

Types

type Environment

type Environment struct {
	CTX       *context.Context
	Settings  *structs.Settings
	KV        *redis.RedisConn
	DB        *mongo.MongoConn
	Logger    *zap.Logger
	Container string
}

func (*Environment) CheckID

func (envy *Environment) CheckID(c *gin.Context)

func (*Environment) CreateID

func (envy *Environment) CreateID(c *gin.Context)

func (*Environment) FrontendRedirect

func (envy *Environment) FrontendRedirect(c *gin.Context)

func (*Environment) Healthcheck

func (envy *Environment) Healthcheck(c *gin.Context)

func (*Environment) Hostname

func (envy *Environment) Hostname(c *gin.Context)

func (*Environment) Redirect

func (envy *Environment) Redirect(c *gin.Context)

type HealthCheck

type HealthCheck struct {
	Health string `bson:"health"`
}

type Host

type Host struct {
	Name string `bson:"hostname"`
}

Jump to

Keyboard shortcuts

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