user

package
v0.0.0-...-49bf833 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package user is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUserBiz

type MockUserBiz struct {
	// contains filtered or unexported fields
}

MockUserBiz is a mock of UserBiz interface.

func NewMockUserBiz

func NewMockUserBiz(ctrl *gomock.Controller) *MockUserBiz

NewMockUserBiz creates a new mock instance.

func (*MockUserBiz) ChangePassword

func (m *MockUserBiz) ChangePassword(arg0 context.Context, arg1 string, arg2 *v1.ChangePasswordRequest) error

ChangePassword mocks base method.

func (*MockUserBiz) Create

func (m *MockUserBiz) Create(arg0 context.Context, arg1 *v1.CreateUserRequest) error

Create mocks base method.

func (*MockUserBiz) Delete

func (m *MockUserBiz) Delete(arg0 context.Context, arg1 string) error

Delete mocks base method.

func (*MockUserBiz) EXPECT

func (m *MockUserBiz) EXPECT() *MockUserBizMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserBiz) Get

func (m *MockUserBiz) Get(arg0 context.Context, arg1 string) (*v1.GetUserResponse, error)

Get mocks base method.

func (*MockUserBiz) List

func (m *MockUserBiz) List(arg0 context.Context, arg1, arg2 int) (*v1.ListUserResponse, error)

List mocks base method.

func (*MockUserBiz) Login

func (m *MockUserBiz) Login(arg0 context.Context, arg1 *v1.LoginRequest) (*v1.LoginResponse, error)

Login mocks base method.

func (*MockUserBiz) Update

func (m *MockUserBiz) Update(arg0 context.Context, arg1 string, arg2 *v1.UpdateUserRequest) error

Update mocks base method.

type MockUserBizMockRecorder

type MockUserBizMockRecorder struct {
	// contains filtered or unexported fields
}

MockUserBizMockRecorder is the mock recorder for MockUserBiz.

func (*MockUserBizMockRecorder) ChangePassword

func (mr *MockUserBizMockRecorder) ChangePassword(arg0, arg1, arg2 interface{}) *gomock.Call

ChangePassword indicates an expected call of ChangePassword.

func (*MockUserBizMockRecorder) Create

func (mr *MockUserBizMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUserBizMockRecorder) Delete

func (mr *MockUserBizMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockUserBizMockRecorder) Get

func (mr *MockUserBizMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockUserBizMockRecorder) List

func (mr *MockUserBizMockRecorder) List(arg0, arg1, arg2 interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockUserBizMockRecorder) Login

func (mr *MockUserBizMockRecorder) Login(arg0, arg1 interface{}) *gomock.Call

Login indicates an expected call of Login.

func (*MockUserBizMockRecorder) Update

func (mr *MockUserBizMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type UserBiz

type UserBiz interface {
	Create(ctx context.Context, r *v1.CreateUserRequest) error
	Get(ctx context.Context, id string) (*v1.GetUserResponse, error)
	List(ctx context.Context, offset, limit int) (*v1.ListUserResponse, error)
	Update(ctx context.Context, username string, r *v1.UpdateUserRequest) error
	Delete(ctx context.Context, username string) error
	ChangePassword(ctx context.Context, username string, r *v1.ChangePasswordRequest) error
	Login(ctx context.Context, r *v1.LoginRequest) (*v1.LoginResponse, error)
}

UserBiz defines the methods implemented in the user module at the biz layer implement the specific implementations of the REST resources for the user

func NewUserBiz

func NewUserBiz(ds store.IStore) UserBiz

NewUserBiz create an instance of type UserBiz

Jump to

Keyboard shortcuts

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