accountdelivery

package
v0.0.0-...-e6e2e8d Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package accountdelivery manages delivery layer of accounts.

Package accountdelivery is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler facilitates account delivery layer logic.

func NewHandler

func NewHandler(as Service) Handler

NewHandler returns account handler.

func (*Handler) Create

func (h *Handler) Create(gctx *gin.Context)

Create handles http request to create account.

func (*Handler) Get

func (h *Handler) Get(gctx *gin.Context)

Get handles http request to get account.

func (*Handler) List

func (h *Handler) List(gctx *gin.Context)

List handles http request to list accounts.

type MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) Create

func (m *MockService) Create(ctx context.Context, owner, currency string) (domain.Account, error)

Create mocks base method.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

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

func (*MockService) Get

func (m *MockService) Get(ctx context.Context, id int32) (domain.Account, error)

Get mocks base method.

func (*MockService) List

func (m *MockService) List(ctx context.Context, owner string, pageSize, pageID int32) ([]domain.Account, error)

List mocks base method.

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) Create

func (mr *MockServiceMockRecorder) Create(ctx, owner, currency interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockServiceMockRecorder) Get

func (mr *MockServiceMockRecorder) Get(ctx, id interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockServiceMockRecorder) List

func (mr *MockServiceMockRecorder) List(ctx, owner, pageSize, pageID interface{}) *gomock.Call

List indicates an expected call of List.

type Service

type Service interface {
	Create(ctx context.Context, owner, currency string) (domain.Account, error)
	Get(ctx context.Context, id int32) (domain.Account, error)
	List(ctx context.Context, owner string, pageSize, pageID int32) ([]domain.Account, error)
}

Service provides service layer interface needed by account delivery layer.

Jump to

Keyboard shortcuts

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