service

package
v0.0.0-...-0d0896c Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: MIT Imports: 7 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 {
	// contains filtered or unexported fields
}

Account service

func NewAccount

func NewAccount(repo repo.UserRepo) *Account

NewAccount create new account service

func (*Account) BulkInsert

func (a *Account) BulkInsert(ctx context.Context, users []*model.User, batchSize int) error

BulkInsert bulk insert

func (*Account) Register

func (a *Account) Register(ctx context.Context, user *model.User) (*model.User, error)

Register create new account

type AccountService

type AccountService interface {
	Register(ctx context.Context, user *model.User, batchSize int) (*model.User, error)
	BulkInsert(ctx context.Context, users []model.User) error
}

AccountService account service interface

Jump to

Keyboard shortcuts

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