github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/database/client/dqlite_linux.go (about)

     1  //go:build dqlite && linux
     2  
     3  // Copyright 2023 Canonical Ltd.
     4  // Licensed under the AGPLv3, see LICENCE file for details.
     5  
     6  package client
     7  
     8  import (
     9  	"github.com/canonical/go-dqlite/client"
    10  )
    11  
    12  type Client = client.Client
    13  
    14  // YamlNodeStore persists a list addresses of dqlite nodes in a YAML file.
    15  type YamlNodeStore = client.YamlNodeStore
    16  
    17  // NewYamlNodeStore creates a new YamlNodeStore backed by the given YAML file.
    18  func NewYamlNodeStore(path string) (*YamlNodeStore, error) {
    19  	return client.NewYamlNodeStore(path)
    20  }
    21  
    22  // LogFunc is a function that can be used for logging.
    23  type LogFunc = client.LogFunc
    24  
    25  // LogLevel defines the logging level.
    26  type LogLevel = client.LogLevel
    27  
    28  // Available logging levels.
    29  const (
    30  	LogNone  = client.LogNone
    31  	LogDebug = client.LogDebug
    32  	LogInfo  = client.LogInfo
    33  	LogWarn  = client.LogWarn
    34  	LogError = client.LogError
    35  )