func (o Outcome) String() string {
	switch o {
	case Success:
		return "SUCCESS"
	case Error:
		return "ERROR"
	default:
		panic("unknown outcome")
	}
}
String returns a string representation of the outcome.
package comm
import (
	"sync"
	"time"
	"github.com/drausin/libri/libri/librarian/api"
)
type QueryType int
const (
	Request QueryType = iota
	Response
)
func (qt QueryType) String() string {
	switch qt {
	case Request:
		return "REQUEST"
	case Response:
		return "RESPONSE"
	default:
		panic("unknown query type")
	}
}
type Outcome int
const (
	Success Outcome = iota
	Error
)