client

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MPL-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ChangeUpsert(ctx context.Context, changePartial data.ChangePartial) (*data.Change, error)
	ChangeRead(ctx context.Context, changeId string) (*data.Change, error)
	ChangesRead(ctx context.Context, search data.ChangeSearch) ([]*data.Change, error)
	ChangeDelete(ctx context.Context, changeId string) error

	RegistrationUpsert(ctx context.Context, registrationId string) error
	RegistrationChangesRead(ctx context.Context, registrationId string) ([]*data.Change, error)
	RegistrationChangeAcknowledge(ctx context.Context, registrationId string, changeIds ...string) error
	RegistrationDelete(ctx context.Context, registrationId string) error
}

type Handler

type Handler interface {
	HandlerCreate(handlerFx HandlerFx) (handlerId string, err error)
	HandlerConnected(handlerId string) (bool, error)
	HandlerDelete(handlerId string) (err error)
}

type HandlerFx

type HandlerFx func(...*data.Change) error

Directories

Path Synopsis
Package restclient provides an implementation of a rest client to interact with the employees service.
Package restclient provides an implementation of a rest client to interact with the employees service.

Jump to

Keyboard shortcuts

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