handler

package
Version: v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GraphqlHandler

func GraphqlHandler(db *gorm.DB, cfg *config.Config) http.Handler

GraphqlHandler constructs and returns a http handler

Types

type Cache

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

func (*Cache) Add

func (c *Cache) Add(ctx context.Context, key string, value interface{})

func (*Cache) Get

func (c *Cache) Get(ctx context.Context, key string) (interface{}, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL