mirror of
https://github.com/aljazceru/ark.git
synced 2026-02-06 20:14:44 +01:00
* api-spec: move the api-spec to root and init go.mod * go mod tidy * move buf files in the root as well * gh action for api-spec changes only * gh action for api-spec on push and pr * introduce go.work and remove all replaces * solve dependencies and force btcd/btcec@v2.3.3 * go work sync * force btcd/btcec@v2.3.3 * go mod tidy
24 lines
614 B
Go
24 lines
614 B
Go
//go:build !kvdb_etcd
|
|
// +build !kvdb_etcd
|
|
|
|
package kvdb
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/ark-network/ark/server/pkg/kvdb/etcd"
|
|
)
|
|
|
|
// EtcdBackend is conditionally set to false when the kvdb_etcd build tag is not
|
|
// defined. This will allow testing of other database backends.
|
|
const EtcdBackend = false
|
|
|
|
var errEtcdNotAvailable = fmt.Errorf("etcd backend not available")
|
|
|
|
// StartEtcdTestBackend is a stub returning nil, and errEtcdNotAvailable error.
|
|
func StartEtcdTestBackend(path string, clientPort, peerPort uint16,
|
|
logFile string) (*etcd.Config, func(), error) {
|
|
|
|
return nil, func() {}, errEtcdNotAvailable
|
|
}
|