doubles

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

MemUser1 is a sample in-memory user.

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

MemUser2 is a sample in-memory user.

Functions

func NewFileSystemStub

func NewFileSystemStub(files map[string][]byte) *filesystemStub

NewFileSystemStub returns a new fs.FS stub with provided files.

func NewGorillaSessionStoreSpy

func NewGorillaSessionStoreSpy(userID string) *storeSpy

NewGorillaSessionStoreSpy return a new gorilla.Store spy

func NewStubTemplatingEngine

func NewStubTemplatingEngine(template string) gotuna.TemplatingEngine

NewStubTemplatingEngine returns new native HTML engine with a stub template

func NewUserRepositoryStub

func NewUserRepositoryStub() gotuna.UserRepository

NewUserRepositoryStub returns a new user repository with two sample users. This is a sample UserRepository implementation with users stored in-memory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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