accountsInfosvc

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Copyright 2021 Sander Ruscigno

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountsInfoService

type AccountsInfoService interface {
	Insert(ac *model.AccountInfo) error
	GetByID(accountID int64, infoID string) (*model.AccountInfo, error)
	Update(ac *model.AccountInfo) error
	Delete(accountID int64, infoID string) error
}

AccountsInfoService is a CRUD to the database

func NewAccountsInfoService

func NewAccountsInfoService(ctx context.Context, repo repo.AccountInfoRepository) AccountsInfoService

NewAccountsInfoService creates a service to interact with PostgreSQL

type MockAccountsInfoService

type MockAccountsInfoService struct {
	mock.Mock
}

MockAccountsInfoService is an autogenerated mock type for the AccountsInfoService type

func (*MockAccountsInfoService) Delete

func (_m *MockAccountsInfoService) Delete(infoID int64) error

Delete provides a mock function with given fields: infoID

func (*MockAccountsInfoService) GetByID

GetByID provides a mock function with given fields: infoID

func (*MockAccountsInfoService) Insert

Insert provides a mock function with given fields: ac

func (*MockAccountsInfoService) Update

Update provides a mock function with given fields: ac

Jump to

Keyboard shortcuts

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