_example

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 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 User

type User struct {
	Name, Address string
	CreateAt      time.Time
}

type UserRepo

type UserRepo interface {
	Save(context.Context, *User) error
}

type UserUsecase

type UserUsecase struct {
	Repo UserRepo
}

func (*UserUsecase) Register

func (uu *UserUsecase) Register(ctx context.Context, name, address string) error

Directories

Path Synopsis
Package mock_example is a generated GoMock package.
Package mock_example is a generated GoMock package.

Jump to

Keyboard shortcuts

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