env

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiEnv

type ApiEnv struct {
	DS       data.Datastore
	EF       entitymodel.EntityFactory
	Services *services.Services
}

ApiEnv the environment

func GetApiEnv

func GetApiEnv(isTest bool) *ApiEnv

GetApiEnv return new initialized environment for serving api

func GetEnv

func GetEnv() *ApiEnv

type ApiEnvContext

type ApiEnvContext struct {
	echo.Context
	ApiEnv *ApiEnv
}

ApiEnvContext extends echo.Context to provide the application environment

Jump to

Keyboard shortcuts

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