mockplugin

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PluginName = "testmock"

Variables

This section is empty.

Functions

func New

func New() plugins.PluginInstance

func NewGetAll

func NewGetAll(ctx context.Context) (*pb.SyncData, error)

func SetCreateService

func SetCreateService(handler func(ctx context.Context, domainProject string, service *pb.SyncService) (string, error))

func SetDeleteService

func SetDeleteService(handler func(ctx context.Context, domainProject, serviceId string) error)

func SetGetAll

func SetGetAll(handler func(ctx context.Context) (*pb.SyncData, error))

func SetHeartbeat

func SetHeartbeat(handler func(ctx context.Context, domainProject, serviceId, instanceId string) error)

func SetRegisterInstance

func SetRegisterInstance(handler func(ctx context.Context, domainProject, serviceId string, instance *pb.SyncInstance) (string, error))

func SetServiceExistence

func SetServiceExistence(handler func(ctx context.Context, domainProject string, source *pb.SyncService) (string, error))

func SetUnregisterInstance

func SetUnregisterInstance(handler func(ctx context.Context, domainProject, serviceId, instanceId string) error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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