fullapp

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var User1 = gotuna.InMemoryUser{
	UniqueID: "123",
	Email:    "john@example.com",
	Name:     "John",
	Password: "pass123",
}

User1 is a sample user #1.

View Source
var User2 = gotuna.InMemoryUser{
	UniqueID: "456",
	Email:    "bob@example.com",
	Name:     "Bob",
	Password: "bobby5",
}

User2 is a sample user #2.

Functions

func NewUserRepository

func NewUserRepository() gotuna.UserRepository

NewUserRepository returns a new in-memory user repository with two sample users.

Types

type App

type App struct {
	gotuna.App
	Csrf mux.MiddlewareFunc // app-specific config
}

App is a main dependency store.

func MakeApp

func MakeApp(app App) App

MakeApp creates an App with sample dependencies.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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