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 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 ¶
type FilesystemStub ¶ added in v0.6.0
type FilesystemStub struct {
// contains filtered or unexported fields
}
FilesystemStub implements type FS interface
func NewFileSystemStub ¶
func NewFileSystemStub(files map[string][]byte) *FilesystemStub
NewFileSystemStub returns a new fs.FS stub with provided files.
Click to show internal directories.
Click to hide internal directories.