example_clients

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyRestClient

type DummyRestClient struct {
	clients.RestClient
}

func NewDummyRestClient

func NewDummyRestClient() *DummyRestClient

func (*DummyRestClient) CheckCorrelationId

func (c *DummyRestClient) CheckCorrelationId(correlationId string) (result map[string]string, err error)

func (*DummyRestClient) CheckErrorPropagation

func (c *DummyRestClient) CheckErrorPropagation(correlationId string) error

func (*DummyRestClient) CreateDummy

func (c *DummyRestClient) CreateDummy(correlationId string, dummy edata.Dummy) (result *edata.Dummy, err error)

func (*DummyRestClient) DeleteDummy

func (c *DummyRestClient) DeleteDummy(correlationId string, dummyId string) (result *edata.Dummy, err error)

func (*DummyRestClient) GetDummies

func (c *DummyRestClient) GetDummies(correlationId string, filter *cdata.FilterParams,
	paging *cdata.PagingParams) (result *edata.DummyDataPage, err error)

func (*DummyRestClient) GetDummyById

func (c *DummyRestClient) GetDummyById(correlationId string, dummyId string) (result *edata.Dummy, err error)

func (*DummyRestClient) UpdateDummy

func (c *DummyRestClient) UpdateDummy(correlationId string, dummy edata.Dummy) (result *edata.Dummy, err error)

type IDummyClient

type IDummyClient interface {
	GetDummies(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (result *edata.DummyDataPage, err error)
	GetDummyById(correlationId string, dummyId string) (result *edata.Dummy, err error)
	CreateDummy(correlationId string, dummy edata.Dummy) (result *edata.Dummy, err error)
	UpdateDummy(correlationId string, dummy edata.Dummy) (result *edata.Dummy, err error)
	DeleteDummy(correlationId string, dummyId string) (result *edata.Dummy, err error)

	CheckCorrelationId(correlationId string) (result map[string]string, err error)

	CheckErrorPropagation(correlationId string) error
}

Jump to

Keyboard shortcuts

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