Documentation ¶
Overview ¶
Package account アカウント作成リクエスト
Package account アカウント作成レスポンス ¶
Package account アカウント取得リクエスト ¶
Package account アカウント取得レスポンス ¶
Package account アカウントトークン取得リクエスト ¶
Package account アカウントトークン取得レスポンス ¶
Package account アカウントログインリクエスト ¶
Package account アカウントログインレスポンス ¶
Package account is a generated GoMock package.
Index ¶
- type AccountCreateRequest
- type AccountCreateRequests
- type AccountCreateResponse
- type AccountCreateResponses
- type AccountGetRequest
- type AccountGetRequests
- type AccountGetResponse
- type AccountGetResponses
- type AccountGetTokenRequest
- type AccountGetTokenRequests
- type AccountGetTokenResponse
- type AccountGetTokenResponses
- type AccountLoginRequest
- type AccountLoginRequests
- type AccountLoginResponse
- type AccountLoginResponses
- type AccountService
- type MockAccountService
- func (m *MockAccountService) Create(ctx context.Context, tx *gorm.DB, req *AccountCreateRequest) (*AccountCreateResponse, error)
- func (m *MockAccountService) CreateUserId(ctx context.Context) (string, error)
- func (m *MockAccountService) EXPECT() *MockAccountServiceMockRecorder
- func (m *MockAccountService) Get(ctx context.Context, req *AccountGetRequest) (*AccountGetResponse, error)
- func (m *MockAccountService) GetToken(ctx context.Context, req *AccountGetTokenRequest) (*AccountGetTokenResponse, error)
- func (m *MockAccountService) Login(ctx context.Context, mtx *gorm.DB, rtx v9.Pipeliner, req *AccountLoginRequest) (*AccountLoginResponse, error)
- type MockAccountServiceMockRecorder
- func (mr *MockAccountServiceMockRecorder) Create(ctx, tx, req interface{}) *gomock.Call
- func (mr *MockAccountServiceMockRecorder) CreateUserId(ctx interface{}) *gomock.Call
- func (mr *MockAccountServiceMockRecorder) Get(ctx, req interface{}) *gomock.Call
- func (mr *MockAccountServiceMockRecorder) GetToken(ctx, req interface{}) *gomock.Call
- func (mr *MockAccountServiceMockRecorder) Login(ctx, mtx, rtx, req interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountCreateRequest ¶
func NewAccountCreateRequest ¶
func NewAccountCreateRequest() *AccountCreateRequest
func SetAccountCreateRequest ¶
func SetAccountCreateRequest(userId string, name string, password string) *AccountCreateRequest
type AccountCreateRequests ¶
type AccountCreateRequests []*AccountCreateRequest
func NewAccountCreateRequests ¶
func NewAccountCreateRequests() AccountCreateRequests
type AccountCreateResponse ¶
type AccountCreateResponse struct {
UserAccount *userAccount.UserAccount
}
func NewAccountCreateResponse ¶
func NewAccountCreateResponse() *AccountCreateResponse
func SetAccountCreateResponse ¶
func SetAccountCreateResponse(userAccount *userAccount.UserAccount) *AccountCreateResponse
type AccountCreateResponses ¶
type AccountCreateResponses []*AccountCreateResponse
func NewAccountCreateResponses ¶
func NewAccountCreateResponses() AccountCreateResponses
type AccountGetRequest ¶
type AccountGetRequest struct {
UserId string
}
func NewAccountGetRequest ¶
func NewAccountGetRequest() *AccountGetRequest
func SetAccountGetRequest ¶
func SetAccountGetRequest(userId string) *AccountGetRequest
type AccountGetRequests ¶
type AccountGetRequests []*AccountGetRequest
func NewAccountGetRequests ¶
func NewAccountGetRequests() AccountGetRequests
type AccountGetResponse ¶
type AccountGetResponse struct {
UserAccount *userAccount.UserAccount
}
func NewAccountGetResponse ¶
func NewAccountGetResponse() *AccountGetResponse
func SetAccountGetResponse ¶
func SetAccountGetResponse(userAccount *userAccount.UserAccount) *AccountGetResponse
type AccountGetResponses ¶
type AccountGetResponses []*AccountGetResponse
func NewAccountGetResponses ¶
func NewAccountGetResponses() AccountGetResponses
type AccountGetTokenRequest ¶
type AccountGetTokenRequest struct {
UserId string
}
func NewAccountGetTokenRequest ¶
func NewAccountGetTokenRequest() *AccountGetTokenRequest
func SetAccountGetTokenRequest ¶
func SetAccountGetTokenRequest(userId string) *AccountGetTokenRequest
type AccountGetTokenRequests ¶
type AccountGetTokenRequests []*AccountGetTokenRequest
func NewAccountGetTokenRequests ¶
func NewAccountGetTokenRequests() AccountGetTokenRequests
type AccountGetTokenResponse ¶
type AccountGetTokenResponse struct {
UserAccountToken *userAccountToken.UserAccountToken
}
func NewAccountGetTokenResponse ¶
func NewAccountGetTokenResponse() *AccountGetTokenResponse
func SetAccountGetTokenResponse ¶
func SetAccountGetTokenResponse(userAccountToken *userAccountToken.UserAccountToken) *AccountGetTokenResponse
type AccountGetTokenResponses ¶
type AccountGetTokenResponses []*AccountGetTokenResponse
func NewAccountGetTokenResponses ¶
func NewAccountGetTokenResponses() AccountGetTokenResponses
type AccountLoginRequest ¶
func NewAccountLoginRequest ¶
func NewAccountLoginRequest() *AccountLoginRequest
func SetAccountLoginRequest ¶
func SetAccountLoginRequest(userId string, password string) *AccountLoginRequest
type AccountLoginRequests ¶
type AccountLoginRequests []*AccountLoginRequest
func NewAccountLoginRequests ¶
func NewAccountLoginRequests() AccountLoginRequests
type AccountLoginResponse ¶
type AccountLoginResponse struct { Token string UserAccount *userAccount.UserAccount }
func NewAccountLoginResponse ¶
func NewAccountLoginResponse() *AccountLoginResponse
func SetAccountLoginResponse ¶
func SetAccountLoginResponse(token string, userAccount *userAccount.UserAccount) *AccountLoginResponse
type AccountLoginResponses ¶
type AccountLoginResponses []*AccountLoginResponse
func NewAccountLoginResponses ¶
func NewAccountLoginResponses() AccountLoginResponses
type AccountService ¶
type AccountService interface { Get(ctx context.Context, req *AccountGetRequest) (*AccountGetResponse, error) GetToken(ctx context.Context, req *AccountGetTokenRequest) (*AccountGetTokenResponse, error) Create(ctx context.Context, tx *gorm.DB, req *AccountCreateRequest) (*AccountCreateResponse, error) CreateUserId(ctx context.Context) (string, error) Login(ctx context.Context, mtx *gorm.DB, rtx redis.Pipeliner, req *AccountLoginRequest) (*AccountLoginResponse, error) }
func NewAccountService ¶
func NewAccountService( shardService shard.ShardService, userAccountMysqlRepository userAccount.UserAccountMysqlRepository, userAccountRedisRepository userAccount.UserAccountRedisRepository, userAccountTokenRedisRepository userAccountToken.UserAccountTokenRedisRepository, ) AccountService
type MockAccountService ¶
type MockAccountService struct {
// contains filtered or unexported fields
}
MockAccountService is a mock of AccountService interface.
func NewMockAccountService ¶
func NewMockAccountService(ctrl *gomock.Controller) *MockAccountService
NewMockAccountService creates a new mock instance.
func (*MockAccountService) Create ¶
func (m *MockAccountService) Create(ctx context.Context, tx *gorm.DB, req *AccountCreateRequest) (*AccountCreateResponse, error)
Create mocks base method.
func (*MockAccountService) CreateUserId ¶
func (m *MockAccountService) CreateUserId(ctx context.Context) (string, error)
CreateUserId mocks base method.
func (*MockAccountService) EXPECT ¶
func (m *MockAccountService) EXPECT() *MockAccountServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccountService) Get ¶
func (m *MockAccountService) Get(ctx context.Context, req *AccountGetRequest) (*AccountGetResponse, error)
Get mocks base method.
func (*MockAccountService) GetToken ¶
func (m *MockAccountService) GetToken(ctx context.Context, req *AccountGetTokenRequest) (*AccountGetTokenResponse, error)
GetToken mocks base method.
func (*MockAccountService) Login ¶
func (m *MockAccountService) Login(ctx context.Context, mtx *gorm.DB, rtx v9.Pipeliner, req *AccountLoginRequest) (*AccountLoginResponse, error)
Login mocks base method.
type MockAccountServiceMockRecorder ¶
type MockAccountServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountServiceMockRecorder is the mock recorder for MockAccountService.
func (*MockAccountServiceMockRecorder) Create ¶
func (mr *MockAccountServiceMockRecorder) Create(ctx, tx, req interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockAccountServiceMockRecorder) CreateUserId ¶
func (mr *MockAccountServiceMockRecorder) CreateUserId(ctx interface{}) *gomock.Call
CreateUserId indicates an expected call of CreateUserId.
func (*MockAccountServiceMockRecorder) Get ¶
func (mr *MockAccountServiceMockRecorder) Get(ctx, req interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockAccountServiceMockRecorder) GetToken ¶
func (mr *MockAccountServiceMockRecorder) GetToken(ctx, req interface{}) *gomock.Call
GetToken indicates an expected call of GetToken.
func (*MockAccountServiceMockRecorder) Login ¶
func (mr *MockAccountServiceMockRecorder) Login(ctx, mtx, rtx, req interface{}) *gomock.Call
Login indicates an expected call of Login.
Source Files ¶
- account_create_request_model.gen.go
- account_create_response_model.gen.go
- account_get_request_model.gen.go
- account_get_response_model.gen.go
- account_get_token_request_model.gen.go
- account_get_token_response_model.gen.go
- account_login_request_model.gen.go
- account_login_response_model.gen.go
- account_service.go
- account_service_mock.gen.go
Directories ¶
Path | Synopsis |
---|---|
Package userAccount ユーザーアカウント
|
Package userAccount ユーザーアカウント |
Package userAccountToken ユーザーアカウントトークン
|
Package userAccountToken ユーザーアカウントトークン |