Files
api_tmpl/internal/worker/mock/distributor.go
T
FernandoJVideira c4ee0ce4dc chore: rename simple_bank to api_tmpl and clean up for template use
Rename the module, proto service, and all identifiers from simple_bank/
SimpleBank to api_tmpl/ApiTmpl, and regenerate the gRPC/gateway/swagger/
mock code accordingly.

- Scrub real secrets (SMTP password, auth token secret) from api.env/
  api_test.env, untrack them, and add api.env.example/api_test.env.example
- Remove committed build artifacts (tmp/main, tmp/build-errors.log,
  dbml-error.log) and gitignore them going forward
- Fix Dockerfile paths (build target, migrations copy) that referenced a
  stale project layout
- Rewrite README to match the actual cmd/ + internal/ structure and add a
  "using this as a template" section
2026-08-25 03:02:37 +01:00

63 lines
2.2 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/FernandoJVideira/api_tmpl/internal/worker (interfaces: TaskDistributor)
//
// Generated by this command:
//
// mockgen --package mockwk --destination internal/worker/mock/distributor.go github.com/FernandoJVideira/api_tmpl/internal/worker TaskDistributor
//
// Package mockwk is a generated GoMock package.
package mockwk
import (
context "context"
reflect "reflect"
worker "github.com/FernandoJVideira/api_tmpl/internal/worker"
asynq "github.com/hibiken/asynq"
gomock "go.uber.org/mock/gomock"
)
// MockTaskDistributor is a mock of TaskDistributor interface.
type MockTaskDistributor struct {
ctrl *gomock.Controller
recorder *MockTaskDistributorMockRecorder
isgomock struct{}
}
// MockTaskDistributorMockRecorder is the mock recorder for MockTaskDistributor.
type MockTaskDistributorMockRecorder struct {
mock *MockTaskDistributor
}
// NewMockTaskDistributor creates a new mock instance.
func NewMockTaskDistributor(ctrl *gomock.Controller) *MockTaskDistributor {
mock := &MockTaskDistributor{ctrl: ctrl}
mock.recorder = &MockTaskDistributorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockTaskDistributor) EXPECT() *MockTaskDistributorMockRecorder {
return m.recorder
}
// DestributeTaskSendVerifyEmail mocks base method.
func (m *MockTaskDistributor) DestributeTaskSendVerifyEmail(ctx context.Context, payload *worker.SendVerifyEmailPayload, opts ...asynq.Option) error {
m.ctrl.T.Helper()
varargs := []any{ctx, payload}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "DestributeTaskSendVerifyEmail", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// DestributeTaskSendVerifyEmail indicates an expected call of DestributeTaskSendVerifyEmail.
func (mr *MockTaskDistributorMockRecorder) DestributeTaskSendVerifyEmail(ctx, payload any, opts ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{ctx, payload}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DestributeTaskSendVerifyEmail", reflect.TypeOf((*MockTaskDistributor)(nil).DestributeTaskSendVerifyEmail), varargs...)
}