common

package
v0.0.0-...-f09f64d Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

@/graph/common/context.go

@/graph/common/db.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateContext

func CreateContext(args *CustomContext, next http.Handler) http.Handler

func InitDb

func InitDb() (*gorm.DB, error)

Types

type CustomContext

type CustomContext struct {
	Database *gorm.DB
}

func GetContext

func GetContext(ctx context.Context) *CustomContext

Jump to

Keyboard shortcuts

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