serviceutil

package
v0.0.1-beta.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2023 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log log.Logger, m Metrics) suture.EventHook

Types

type Exception

type Exception struct {
	Value        interface{} `json:"value" cbor:"value"`
	Parent       string      `json:"parent" cbor:"parent"`
	Restart      bool        `json:"restart" cbor:"restart"`
	Backpressure float64     `json:"backpressure" cbor:"backpressure"`
	Service      string      `json:"service" cbor:"service"`
}

Exception is thrown asynchronously from services.

func (Exception) GoString

func (e Exception) GoString() string

func (Exception) Loggable

func (e Exception) Loggable() map[string]interface{}

type Metrics

type Metrics interface {
	Incr(string)
	Duration(string, time.Duration)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL