services

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package services is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPService

type HTTPService interface {
	Get(ctx context.Context, api string, params map[string]interface{}) (*service.Response, error)
	Bind(resp []byte, i interface{}) error
}

type MockHTTPService

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

MockHTTPService is a mock of HTTPService interface.

func NewMockHTTPService

func NewMockHTTPService(ctrl *gomock.Controller) *MockHTTPService

NewMockHTTPService creates a new mock instance.

func (*MockHTTPService) Bind

func (m *MockHTTPService) Bind(resp []byte, i interface{}) error

Bind mocks base method.

func (*MockHTTPService) EXPECT

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

func (*MockHTTPService) Get

func (m *MockHTTPService) Get(ctx context.Context, api string, params map[string]interface{}) (*service.Response, error)

Get mocks base method.

type MockHTTPServiceMockRecorder

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

MockHTTPServiceMockRecorder is the mock recorder for MockHTTPService.

func (*MockHTTPServiceMockRecorder) Bind

func (mr *MockHTTPServiceMockRecorder) Bind(resp, i interface{}) *gomock.Call

Bind indicates an expected call of Bind.

func (*MockHTTPServiceMockRecorder) Get

func (mr *MockHTTPServiceMockRecorder) Get(ctx, api, params interface{}) *gomock.Call

Get indicates an expected call of Get.

type MockUser

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

MockUser is a mock of User interface.

func NewMockUser

func NewMockUser(ctrl *gomock.Controller) *MockUser

NewMockUser creates a new mock instance.

func (*MockUser) EXPECT

func (m *MockUser) EXPECT() *MockUserMockRecorder

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

func (*MockUser) Get

func (m *MockUser) Get(ctx *gofr.Context, name string) (models.User, error)

Get mocks base method.

type MockUserMockRecorder

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

MockUserMockRecorder is the mock recorder for MockUser.

func (*MockUserMockRecorder) Get

func (mr *MockUserMockRecorder) Get(ctx, name interface{}) *gomock.Call

Get indicates an expected call of Get.

type User

type User interface {
	Get(ctx *gofr.Context, name string) (models.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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