examples

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Execute(statement string) error
}

func NewMockDB

func NewMockDB(execute func(statement string) error) DB

type MockDb

type MockDb struct {
	ExecuteMock func(statement string) error
}

func (*MockDb) Execute

func (db *MockDb) Execute(statement string) error

type UserStore

type UserStore interface {
	CreateUser(name string) error
	DeleteUser(name string) error
}

func NewUserStore

func NewUserStore(db DB) UserStore

Jump to

Keyboard shortcuts

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