restapi

package
v0.0.0-...-15a86da Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticator

func Authenticator(next http.Handler) http.Handler

func Router

func Router(db *gorm.DB, locationFinder location.LocationFinder) (http.Handler, error)

Router sets up the go-chi routes for the server

Types

type GoogleClaims

type GoogleClaims struct {
	Email string `mapstructure:"email"`
	Hd    string `mapstructure:"hd"`
}

type TaggedStory

type TaggedStory struct {
	models.Story
	Tags []string `json:"tags"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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