mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 14:07:02 +09:00
17 lines
344 B
Go
17 lines
344 B
Go
package nodeconf
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
)
|
|
|
|
const CNameSource = "common.nodeconf.source"
|
|
|
|
var (
|
|
ErrConfigurationNotChanged = errors.New("configuration not changed")
|
|
ErrNetworkNeedsUpdate = errors.New("network needs update")
|
|
)
|
|
|
|
type Source interface {
|
|
GetLast(ctx context.Context, currentId string) (c Configuration, err error)
|
|
}
|