entity

package
v0.0.0-...-2cdf4dc Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	UUID      string `json:"uuid" db:"uuid"`
	FirstName string `json:"first_name" db:"first_name"`
	LastName  string `json:"last_name" db:"last_name"`
}

func New

func New(firstName, lastName string) *Account

type AccountRepository

type AccountRepository interface {
	List(ctx context.Context) ([]*Account, error)
	Find(ctx context.Context, id string) (*Account, error)
	Store(ctx context.Context, account *Account) (*Account, error)
	Delete(ctx context.Context, id string) (int, error)
}

Jump to

Keyboard shortcuts

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