test_rpc_clients

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyClientFixture

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

func NewDummyClientFixture

func NewDummyClientFixture(client IDummyClient) *DummyClientFixture

func (*DummyClientFixture) TestCrudOperations

func (c *DummyClientFixture) TestCrudOperations(t *testing.T)

type DummyCommandableHttpClient

type DummyCommandableHttpClient struct {
	clients.CommandableHttpClient
}

func NewDummyCommandableHttpClient

func NewDummyCommandableHttpClient() *DummyCommandableHttpClient

func (*DummyCommandableHttpClient) CreateDummy

func (c *DummyCommandableHttpClient) CreateDummy(correlationId string, dummy testrpc.Dummy) (result *testrpc.Dummy, err error)

func (*DummyCommandableHttpClient) DeleteDummy

func (c *DummyCommandableHttpClient) DeleteDummy(correlationId string, dummyId string) (result *testrpc.Dummy, err error)

func (*DummyCommandableHttpClient) GetDummies

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

func (*DummyCommandableHttpClient) GetDummyById

func (c *DummyCommandableHttpClient) GetDummyById(correlationId string, dummyId string) (result *testrpc.Dummy, err error)

func (*DummyCommandableHttpClient) UpdateDummy

func (c *DummyCommandableHttpClient) UpdateDummy(correlationId string, dummy testrpc.Dummy) (result *testrpc.Dummy, err error)

type DummyDirectClient

type DummyDirectClient struct {
	clients.DirectClient
	// contains filtered or unexported fields
}

func NewDummyDirectClient

func NewDummyDirectClient() *DummyDirectClient

func (*DummyDirectClient) CreateDummy

func (c *DummyDirectClient) CreateDummy(correlationId string, dummy testrpc.Dummy) (result *testrpc.Dummy, err error)

func (*DummyDirectClient) DeleteDummy

func (c *DummyDirectClient) DeleteDummy(correlationId string, dummyId string) (result *testrpc.Dummy, err error)

func (*DummyDirectClient) GetDummies

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

func (*DummyDirectClient) GetDummyById

func (c *DummyDirectClient) GetDummyById(correlationId string, dummyId string) (result *testrpc.Dummy, err error)

func (*DummyDirectClient) SetReferences

func (c *DummyDirectClient) SetReferences(references cref.IReferences)

func (*DummyDirectClient) UpdateDummy

func (c *DummyDirectClient) UpdateDummy(correlationId string, dummy testrpc.Dummy) (result *testrpc.Dummy, err error)

type DummyRestClient

type DummyRestClient struct {
	clients.RestClient
}

func NewDummyRestClient

func NewDummyRestClient() *DummyRestClient

func (*DummyRestClient) CreateDummy

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

func (*DummyRestClient) DeleteDummy

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

func (*DummyRestClient) GetDummies

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

func (*DummyRestClient) GetDummyById

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

func (*DummyRestClient) UpdateDummy

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

type IDummyClient

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

Jump to

Keyboard shortcuts

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