Documentation ¶
Overview ¶
TODO XXX remove all this in favor of mfs
Index ¶
- Variables
- func Error(message string) error
- func ErrorE(message string, err error) error
- func ErrorEF(message string, err error, fields log.Fields) error
- func ErrorF(message string, fields log.Fields) error
- func EtcdClient() (*clientv3.Client, error)
- func InitLogging(logname string)
- func TrackTime(start time.Time)
- type CountSet
- type TxnBuilder
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GRPCMaxMessage = grpc.WithDefaultCallOptions( grpc.MaxCallRecvMsgSize(maxMessageSize), grpc.MaxCallSendMsgSize(maxMessageSize), ) GRPCMaxServer = []grpc.ServerOption{ grpc.MaxRecvMsgSize(maxMessageSize), grpc.MaxSendMsgSize(maxMessageSize), } )
View Source
var DataError = fmt.Errorf("data error")
View Source
var DbError = fmt.Errorf("database error")
View Source
var TxError = fmt.Errorf("transaction failure")
View Source
var Version = "undefined"
Version will be set by the make system at link time.
Functions ¶
func Error ¶
Encapsulate err in a structured log and return an abstracted high-level error with message as the payload
func ErrorE ¶
Encapsulate err in a structured log and return an abstracted high-level error with message as the payload
func ErrorEF ¶
Encapsulate fields and err in a structured log and return an abstracted high-level error with message as the payload
func ErrorF ¶
Encapsulate fields in a structured log and return an abstracted high-level error with message as the payload
func EtcdClient ¶
EtcdClient -----------------------------------------------------------------
Return a pointer to an etcd client suitable for using. The connection should *not* be closed as it's cached. EtcdClient() takes care to handle the connection deatails.
func InitLogging ¶
func InitLogging(logname string)
Types ¶
type TxnBuilder ¶
func (*TxnBuilder) Else ¶
func (t *TxnBuilder) Else(x clientv3.Op) *TxnBuilder
func (*TxnBuilder) If ¶
func (t *TxnBuilder) If(x clientv3.Cmp) *TxnBuilder
func (*TxnBuilder) Merge ¶
func (t *TxnBuilder) Merge(x TxnBuilder)
func (*TxnBuilder) Then ¶
func (t *TxnBuilder) Then(x clientv3.Op) *TxnBuilder
Click to show internal directories.
Click to hide internal directories.