dataservice

package
v0.0.0-...-59ffee2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	mock.Mock
}

func (*MockClient) GetThesis

func (m *MockClient) GetThesis(ctx context.Context, id int) (result api.Thesis, err error)

func (*MockClient) SaveThesis

func (m *MockClient) SaveThesis(ctx context.Context, data api.Thesis) (result int, err error)

type Service

type Service interface {
	SaveThesis(ctx context.Context, data api.Thesis) (result int, err error)
	GetThesis(ctx context.Context, id int) (result api.Thesis, err error)
}

Service implements Service interface

func NewService

func NewService(creator errorCreator) Service

NewService ...

Jump to

Keyboard shortcuts

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