database

package
v0.0.0-...-ef87031 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserStorage

type UserStorage interface {
	GetByName(name string) *model.User
}

interface UserStorage it can be used in Mock & real transaction

type UserStorageMock

type UserStorageMock struct {
	Mock mock.Mock
}

parent mock variable to set & accessing all data test

func (*UserStorageMock) GetByName

func (storage *UserStorageMock) GetByName(name string) *model.User

replication of actual get user from database

Jump to

Keyboard shortcuts

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