Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUserNotFound is user not found. ErrUserNotFound = errors.NotFound(v1.ErrorReason_USER_NOT_FOUND.String(), "user not found") )
View Source
var ProviderSet = wire.NewSet(NewGreeterUseCase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type GreeterRepo ¶
type GreeterRepo interface { Save(context.Context, *Greeter) (*Greeter, error) Update(context.Context, *Greeter) (*Greeter, error) FindByID(context.Context, int64) (*Greeter, error) ListByHello(context.Context, string) ([]*Greeter, error) ListAll(context.Context) ([]*Greeter, error) }
GreeterRepo is a Greater repo.
type GreeterUseCase ¶
type GreeterUseCase struct {
// contains filtered or unexported fields
}
GreeterUseCase is a Greeter useCase.
func NewGreeterUseCase ¶
func NewGreeterUseCase(repo GreeterRepo, logger log.Logger) *GreeterUseCase
NewGreeterUseCase new a Greeter useCase.
func (*GreeterUseCase) CreateGreeter ¶
CreateGreeter creates a Greeter, and returns the new Greeter.
Click to show internal directories.
Click to hide internal directories.