syncer

package
v0.0.0-...-fe998d3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateService

type GenerateService interface {
	//add obj to target service
	Add(obj interface{}) (interface{}, error)

	//update obj
	Update(objOld interface{}, objNew interface{}) error

	Delete(name string) error
}

func NewGenerateService

func NewGenerateService(g Generator) GenerateService

type Generator

type Generator interface {
	Create(obj interface{}) (interface{}, error)
	//update obj
	Update(objOld interface{}, objNew interface{}) error

	Delete(name string) error

	GetByName(name string) (interface{}, error)

	GetByID(id int) (interface{}, error)

	List(key string) (interface{}, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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