mock

package
v0.0.0-...-5aa440a Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Person = &models.Person{
	FirstName: "First",
	LastName:  "Name",
	Email:     "email@email.com",
	ID:        "1",
	Encodings: []string{"1 2 3"},
}

Person used in mock model

Functions

This section is empty.

Types

type PersonModel

type PersonModel struct {
}

func (*PersonModel) Get

func (*PersonModel) Get(id string) (*models.Person, error)

func (*PersonModel) GetAll

func (*PersonModel) GetAll() ([]*models.Person, error)

func (*PersonModel) Remove

func (*PersonModel) Remove(id string) (int64, error)

func (*PersonModel) Update

func (*PersonModel) Update(id, firstName, lastName, email string, encodings []string) (string, error)

Jump to

Keyboard shortcuts

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