juju: github.com/wallyworld/juju/worker/raft/raftutil Index | Files

package raftutil

import "github.com/wallyworld/juju/worker/raft/raftutil"


Package Files


type Logger Uses

type Logger interface {
    Logf(loggo.Level, string, ...interface{})

Logger defines the logging methods the LoggoWriter requires.

type LoggoWriter Uses

type LoggoWriter struct {
    Logger Logger
    Level  loggo.Level

LoggoWriter is an io.Writer that will call the embedded logger's Log method for each Write, using the specified log level.

func (*LoggoWriter) Write Uses

func (w *LoggoWriter) Write(p []byte) (int, error)

Write is part of the io.Writer interface.

Package raftutil imports 1 packages (graph). Updated 2018-07-08. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).